abc2svg
Check-in [c20387737a]
Not logged in

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

Overview
Comment:core: reload the start/stop annotation on generation start
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c20387737add50473ca5046b7e87283767edf08f
User & Date: jef 2022-02-03 17:05:13.269
Context
2022-02-03
17:36
util: abcweb: accept page formatting - asked by Gary Billey ... (check-in: c3760cb350 user: jef tags: trunk)
17:05
core: reload the start/stop annotation on generation start ... (check-in: c20387737a user: jef tags: trunk)
14:17
modules: jazzchord: let 6/9 as notmal characters - issue [3ea16aa40d] ... (check-in: 0112e98383 user: jef tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to core/svg.js.
427
428
429
430
431
432
433

434
435
436
437
438
439
440
441
442
	anno_out(s, t, user.anno_start)
}
function a_stop(s, t) {
	anno_out(s, t, user.anno_stop)
}
function empty_function() {
}

var	anno_start = user.anno_start ? a_start : empty_function,
	anno_stop = user.anno_stop ? a_stop : empty_function

// output the stop user annotations
function anno_put() {
    var	s
	while (1) {
		s = anno_a.shift()
		if (!s)







>
|
|







427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
	anno_out(s, t, user.anno_start)
}
function a_stop(s, t) {
	anno_out(s, t, user.anno_stop)
}
function empty_function() {
}
	// the values are updated on generate()
    var	anno_start = empty_function,
	anno_stop = empty_function

// output the stop user annotations
function anno_put() {
    var	s
	while (1) {
		s = anno_a.shift()
		if (!s)
Changes to core/tune.js.
1
2
3
4
5
6
7
8
9
10
// abc2svg - tune.js - tune generation
//
// Copyright (C) 2014-2021 Jean-Francois Moine
//
// This file is part of abc2svg-core.
//
// abc2svg-core is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.


|







1
2
3
4
5
6
7
8
9
10
// abc2svg - tune.js - tune generation
//
// Copyright (C) 2014-2022 Jean-Francois Moine
//
// This file is part of abc2svg-core.
//
// abc2svg-core is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
1337
1338
1339
1340
1341
1342
1343




1344
1345
1346
1347
1348
1349
1350
		get_vover(vover.bar ? '|' : ')')
	}

	voice_adj();
	sort_all()			/* define the time / vertical sequences */
	if (!tsfirst)
		return




	self.set_bar_num()
	pit_adj()

	if (info.P)
		tsfirst.parts = info.P	// for play

	// give the parser result to the application







>
>
>
>







1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
		get_vover(vover.bar ? '|' : ')')
	}

	voice_adj();
	sort_all()			/* define the time / vertical sequences */
	if (!tsfirst)
		return
	if (user.anno_start)
		anno_start = a_start
	if (user.anno_stop)
		anno_stop = a_stop
	self.set_bar_num()
	pit_adj()

	if (info.P)
		tsfirst.parts = info.P	// for play

	// give the parser result to the application