Skip to content

Dynamic_performer: avoid programming error

Dan Eble requested to merge dev/eble/6345-midi-dynamics into master

Explicitly ending the current span at the final moment avoids breaking an invariant if a note begins there: no note is ever associated with the open end of a non-empty dynamic span; instead, it is associated with the start of the next span.

There are at least two ways to start a note at the final moment:

  • force an early end, e.g., { c1 \fine c1 }
  • end with a zero-duration note, e.g., { c1 c1*0 }

Closes #6345 (closed).

Edited by Dan Eble

Merge request reports