Setting note.playEvents[i].pitch has no effect anymore in MuseScore 4

• Mar 9, 2024 - 22:19

Hi there,

I used note.playEvents from my plugin Nn2GS to change the actual playing pitch so that the notes in the tabulature sound correct.

function fixPlayedNotePitch(note, originalPitch) {
    for (let i = 0; i < note.playEvents.length; i++) {
        note.playEvents[i].pitch = originalPitch - note.pitch
    }
}

In MuseScore 3.6 it worked but in MuseScore 4.1.1 and 4.2.1 it does not.

For each note one object in playEvents actually exist but setting pitch seem to have no effect. Also, calling Score.createPlayEvents() as suggested in the doc doesn't make a difference.

Any idea what changed and how I can work around?

Do you still have an unanswered question? Please log in first to post your question.