Differences From Artifact [f55cf0efcb]:
- File core/tune.js — part of check-in [54b612833d] at 2020-05-08 14:42:19 on branch trunk — core: change the representation of the end of line (user: jef size: 47454)
To Artifact [95bd071fa5]:
- File core/tune.js — part of check-in [c393282487] at 2020-05-10 12:51:44 on branch trunk — core: fix: don't let the decorations of the multi-rest on the first rest after expansion (user: jef size: 47469)
| ︙ | |||
110 111 112 113 114 115 116 117 118 119 120 121 122 123 | 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | + |
function mrest_expand(s) {
var p_voice, s2, next,
nb = s.nmes,
dur = s.dur / nb
/* change the multi-rest (type bar) to a single rest */
var a_dd = s.a_dd;
s.a_dd = null
s.type = C.REST;
s.dur = s.dur_orig = dur;
/* add the bar(s) and rest(s) */
next = s.next;
p_voice = s.p_v;
p_voice.last_sym = s;
|
| ︙ |