From 4fc944cc8e184dbbee571b780e84eba352618222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismael=20Venegas=20Castell=C3=B3?= <4594825+Ismael-VC@users.noreply.github.com> Date: Sun, 19 Mar 2023 11:32:03 -0600 Subject: [PATCH] Verison for MuseScore4 Listed here but not versioned https://musescore.org/en/project/harmonica-tablature-harp --- harmonica_tablature.qml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/harmonica_tablature.qml b/harmonica_tablature.qml index a35d294..893f661 100644 --- a/harmonica_tablature.qml +++ b/harmonica_tablature.qml @@ -21,6 +21,7 @@ MuseScore { description: "Harmonica Tab plugin" menuPath: "Plugins.Harmonica Tablature" pluginType: "dialog" + title: "Harmonica Tab" // ------ OPTIONS ------- property string sep : "\n" // change to "," if you want tabs horizontally @@ -92,6 +93,7 @@ MuseScore { ListElement { text: "Power Bender (Brendan Power), valved"; tuning: 11 } ListElement { text: "Power Draw (Brendan Power), valved"; tuning: 12 } ListElement { text: "Standard Chromatic"; tuning: 4 } + ListElement { text: "Chromatic 16Hole"; tuning: 13 } } width: 100 onCurrentIndexChanged: { @@ -123,13 +125,13 @@ MuseScore { text: "Ok" onClicked: { apply() - Qt.quit() + quit() } } Button { id: closeButton text: "Close" - onClicked: { Qt.quit() } + onClicked: { quit() } } } @@ -163,7 +165,7 @@ MuseScore { "+4", "+4s", "-5", "-5s", "+6", "-6", "-6s", "+7", "+7s", "-7", "-7s", "-8", "+8", "+8s", "-9", "-9s", "+10", "-10", "-10s", "+11", "+11s", "-11", "-11s", "-12", "+12", "+12s", "-12", "-12s" ]; - + var zirkValved = ["+1", "-1b", "-1", "+2b", "+2", "-2", "+3b", "+3", "-3b", "-3", "+4", "-4b", "-4", "+5b", "+5", "-5b", "-5", "+6", "-6b", "-6", "+7b", "+7", "-7", "+8b", "+8", "-8b", "-8", "+9b", "+9", "-9", "10b", "+10", "-10b", "-10" ]; // Circular/Spiral tuned diatonic @@ -205,6 +207,12 @@ MuseScore { "-10" ]; powerDraw[-2] = "+1bb"; powerDraw[-1] = "+1b"; //Two notes below the key at blow 1 // Brendan Power's tuning, half valved + + var chromatic16H = ["+1.", "+1.s", "-1.", "-1.s", "+2.", "-2.", "-2.s", "+3.", "+3.s", "-3.", "-3.s","-4.", + "+1", "+1s", "-1", "-1s", "+2", "-2", "-2s", "+3", "+3s", "-3", "-3s","-4", + "+4", "+4s", "-5", "-5s", "+6", "-6", "-6s", "+7", "+7s", "-7", "-7s", "-8", + "+8", "+8s", "-9", "-9s", "+10", "-10", "-10s", "+11", "+11s", "-11", "-11s", "-12", + "+12", "+12s", "-12", "-12s" ]; var tuning = richter switch (harp.tuning) { @@ -220,6 +228,7 @@ MuseScore { case 10: tuning = paddyRichter; break; case 11: tuning = powerBender; break; case 12: tuning = powerDraw; break; + case 13: tuning = chromatic16H; break; default: tuning = richter; break; } @@ -246,7 +255,7 @@ MuseScore { function applyToSelection(func) { if (typeof curScore === 'undefined') - Qt.quit(); + quit(); var cursor = curScore.newCursor(); var startStaff; var endStaff; @@ -312,7 +321,7 @@ MuseScore { } // end while segment } // end for voice } // end for staff - Qt.quit(); + quit(); } // end applyToSelection() function apply() { @@ -323,6 +332,6 @@ MuseScore { onRun: { if (typeof curScore === 'undefined') - Qt.quit(); + quit(); } }