Creating chords from notes of a broken chord within a bar
I have a lot (thousands) of broken chords written in musescore for use as sight reading flash cards. Is there a way (plugin or anything) to change the broken chord in each bar into a chord? This will save me a lot of time
If there is none, I would like to have a beginner course (qml) on how to target the individual notes in every bar, storing the notes in an array, delete the notes in the bar and create a chord with the notes in the array.
Attachment | Size |
---|---|
change.png | 64.59 KB |
Comments
Maybe https://musescore.org/en/project/chord-identifier-musescore-3-port helps?
The attached plugin change.qml does what you want and will get you started. Qml files are just text files with code in javascript (lots of tutorials on the internet). Open them in Visual Studio Code (free software). Study the code and the code of other MuseScore plugins and you will get the hang of it pretty quickly. Run the plugin via the Plugin Creator menu, File Open, so you’ll see the console.log messages.
Coding can be pretty frustrating but also lots of fun!
In reply to The attached plugin change… by elsewhere
Copy measure 2 of change.mscz into measure 1 to test again
In reply to Copy measure 2 of change… by elsewhere
I'm going through the documentation at musescore.github.io and I'm understanding some of the stuff in the file. I however didn't understand what the new Array(2048) code does. What's the array about?
In reply to I'm going through the… by [DELETED] 4546171
That stores the melody notes, not really needed for your plugin. I threw this code together from my own plugins for reading and writing melody notes, chords & chord symbols (see the commented out section on Element. HARMONY)
In reply to The attached plugin change… by elsewhere
Wow! Thanks a lot for the effort. I'm looking at it and I'll tell you if I managed. I love coding so much. I'm pretty sure I'll make it. Thanks again