import QtQuick 2.0 import MuseScore 3.0 MuseScore { menuPath: "Plugins.Add Parenthesed Note" description: "Add parenthesed octave lowered note to chord" version: "1.0" onRun: { var el = curScore.selection.elements[0]; if (el && el.type == Element.NOTE){ var chord = el.parent; var note = el.clone(); note.pitch -= 12; note.offsetX += 1; note.small = true chord.add(note); curScore.selection.select(note); cmd("add-parentheses"); } Qt.quit() } }