Skip to content

Commit

Permalink
Add movable do for grace notes
Browse files Browse the repository at this point in the history
  • Loading branch information
nozomu-y committed Nov 16, 2022
1 parent 648cc3b commit 29eb564
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions movable-do.qml
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ MuseScore {
}
}

function renderGraceNoteNames(cursor, list, text, small) {
function renderGraceNoteNames(cursor, list, text, small, movableDoOffset, notationIndex) {
if (list.length > 0) {
// Check for existence.
// Now render grace note's names...
for (var chordNum = 0; chordNum < list.length; chordNum++) {
// iterate through all grace chords
var chord = list[chordNum]
// Set note text, grace notes are shown a bit smaller
nameChord(chord.notes, text, small)
nameChord(chord.notes, text, small, movableDoOffset, notationIndex)
if (text.text)
cursor.add(text)
// X position the note name over the grace chord
Expand Down Expand Up @@ -237,7 +237,7 @@ MuseScore {

// Next process the leading grace notes, should they exist...
text = renderGraceNoteNames(cursor, leadingLifo,
text, true)
text, true, movableDoOffset, notationIndex)

// Now handle the note names on the main chord...
var notes = cursor.element.notes
Expand All @@ -259,7 +259,7 @@ MuseScore {

// Finally process trailing grace notes if they exist...
text = renderGraceNoteNames(cursor, trailingFifo,
text, true)
text, true, movableDoOffset, notationIndex)
} // end if CHORD
cursor.next()
} // end while segment
Expand Down

0 comments on commit 29eb564

Please sign in to comment.