abc2svg
Check-in [9ae45538bd]
Not logged in

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

Overview
Comment:core: accept decorations at end of line
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9ae45538bdbbcb52a61ab9d16540a57350e41394
User & Date: jef 2022-03-24 07:52:33.502
Context
2022-03-24
13:57
core: fix: lack of staff for the clefs of voices starting on %%staves ... (check-in: 073ddfe65b user: jef tags: trunk)
07:52
core: accept decorations at end of line ... (check-in: 9ae45538bd user: jef tags: trunk)
2022-03-23
09:52
core: fix: crash when clicking in the last SVGs due to bad tune index ... (check-in: c2810bed82 user: jef tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to core/parse.js.
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
	if (tp.length) {
		parse.tp = tp
		parse.tps = tps
		parse.tpn = tpn
	}
	if (sls.length)
		syntax(1, "Start of slur without note")
	if (a_dcn.length) {
		syntax(1, "Decoration without symbol")
		a_dcn = []
	}
	if (grace) {
		syntax(1, "No end of grace note sequence");
		curvoice.last_sym = grace.prev;
		curvoice.last_note = last_note_sav
		if (grace.prev)
			grace.prev.next = null
	}







<
<
<
<







2958
2959
2960
2961
2962
2963
2964




2965
2966
2967
2968
2969
2970
2971
	if (tp.length) {
		parse.tp = tp
		parse.tps = tps
		parse.tpn = tpn
	}
	if (sls.length)
		syntax(1, "Start of slur without note")




	if (grace) {
		syntax(1, "No end of grace note sequence");
		curvoice.last_sym = grace.prev;
		curvoice.last_note = last_note_sav
		if (grace.prev)
			grace.prev.next = null
	}
Changes to core/tune.js.
1329
1330
1331
1332
1333
1334
1335





1336
1337
1338
1339
1340
1341
1342
		break
	}
}

/* -- generate a piece of tune -- */
function generate(in_mc) {
    var s, v, p_voice;






	if (parse.tp) {
		syntax(1, "No end of tuplet")
		s = parse.tps
		if (s)
			delete s.tp
		delete parse.tp







>
>
>
>
>







1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
		break
	}
}

/* -- generate a piece of tune -- */
function generate(in_mc) {
    var s, v, p_voice;

	if (a_dcn.length) {
		syntax(1, "Decoration without symbol")
		a_dcn = []
	}

	if (parse.tp) {
		syntax(1, "No end of tuplet")
		s = parse.tps
		if (s)
			delete s.tp
		delete parse.tp