zupfnoter
zupfnoter copied to clipboard
Pitch of a rest at end of repetition shall be the previous note
Request
if a repeated section ends with a rest, the pitch of the rest shall not be the one of next note. This is because we do not continue to play at the next note but at the beginning of the repetition.
Therefore it is irritating to place the rest adjacent to the net note.
Solution
- set the pitch to the one of the previous note in case a repetition ends with a rest.
- investigate,
- if the pitch of rests shall always be the one of the previous note.
- behavior on variant endings
- refactor handling of pitch in rests, @previous_note, prev_pitch etc.
Status
- does not work if there are more than one rests at the end of the repeated section.
- does not work properly in case of variant ending
I guess the whole thing needs to be reworked. Even the code is hard to understand.
see also #58