Spilt chords in to voices.
I'd like to write a plug-in that, when run, would split the notes of the chords in a score in to the 4 different voices. For instance, if I ran it on a C7 chord, the C would remain as the 1st voice, but the E would become the 2nd voice, the G the 3rd voice, and the B the 4th voice. I'd imagine this being possible, perhaps by running the cursor through the piece, until it finds a chord with more than one note. Once it finds that, it stores the values of each of the notes in the chord, deletes the chord, then replaces it note by note, changing the current voice of the cursor for each note.
There's only one, tiny little problem with that approach. I'm brand new to writing with Musescore. I'm familiar with java script, I've taken a semester class just about writing in it, but the current plugin documentation on Musescore.com is ancient, it's really not easy to get started when the manual is 7 or so years old. Could any one point me in the right direction, or help me find out where to start?