Chord inserted incorrectly when spams multiple measures

• Jan 1, 2024 - 19:13

I posted something similar but I just cannot figure it out. The notes to a chord should be added in one place but I just get this weird behavior when chord spans more then one measure

import QtQuick 2.0
import MuseScore 3.0

MuseScore {
menuPath: "Plugins.pluginName"
description: "Description goes here"
version: "1.0"

onRun: {
    var cursor = curScore.newCursor();
    cursor.rewind(1);
    cursor.setDuration(2, 1);


    cursor.addNote(70);

    cursor.addNote(72, true);

    cursor.addNote(76, true);

    Qt.quit();
}

}

Attachment Size
moremore.png 9.54 KB

Comments

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