abc2svg
Check-in [4363f29821]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:play: fix: playback loop when no bar at end of tune
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1: 4363f2982148c25423a20568dc757497dff5edb1
User & Date: jef 2026-05-18 06:03:58.534
Context
2026-05-18
06:03
play: fix: playback loop when no bar at end of tune ... (Leaf check-in: 4363f29821 user: jef tags: trunk)
2026-05-17
09:32
batch: toabc: don't put the bars before %%staves ... (check-in: 94cff37162 user: jef tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to util/sndgen.js.
793
794
795
796
797
798
799

800
801
802
803
804
805
806
807
			break
		}
		if (!s.bar_type) {
			if (s.ts_next) {
				s = s.ts_next
				if (s.ptim != s.ts_prev.ptim)
					t = po.stim + s.ptim / po.conf.speed

			} else if (s.p_dur) {
				t += s.pdur / po.conf.speed
				s = null
			}
			continue
		}
		if (s.rep_p) {			// right repeat
			if (s.rep_v) {		// if variants







>
|







793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
			break
		}
		if (!s.bar_type) {
			if (s.ts_next) {
				s = s.ts_next
				if (s.ptim != s.ts_prev.ptim)
					t = po.stim + s.ptim / po.conf.speed
			} else {
			    if (s.p_dur)
				t += s.pdur / po.conf.speed
				s = null
			}
			continue
		}
		if (s.rep_p) {			// right repeat
			if (s.rep_v) {		// if variants