Help from a musican sought
Im a programmer who likes music and im using Musescore (which is excellent) to partly help me to understand
music structure by developing plugins.
Im trying to produce a plugin that will take a selection from a simple staff conaining only rests and
single note chords, and change the notes to full chords (triads etc.). The idea is that you go through a
melody and just enter root notes where you want chords. Then usingthe plugin you select regions
to change to chords of different types and experiment.
I would appreciate comments n the following. Please free to correct my terminology etc.
1. By taking the MIDI pitch value of a note and dividing it by 12, the remainder is 0 for C, 1for C# etc.
By converting the key signature to the same number I can then determine the interval position
of the note in the key by subtracting the key from the note (or note + 12.
(Im aware that a key signiture of C may indicate a mixture of keys and so will allow a choice.)
2. Having got the interval of the note in the key I can use it as the root note for the common type of chords:
0, 5 and 7 are major I, IV and V
2, 4 and 9 are minor II, III and VI
11 is diminished VII
Im not sure if I should do any thing with ther other intervals???
3. Given the root and the chord type I can then obtain generate the rest of each chord.
Major is 0 (Root), +4 (Third) +7 (Fifth) and +11 (Seventh)
Minor 0, +3, +7 and +10
Dim 0, +3, +6 and +10
4. The menu options are currently:
Triad RTF as above
1st Inversion TFR +3, +7 and +12
Base RFT 0, +7 and +15
Strings FTR +7, +15 and +24???? or +7, +12 and +15???
Plus the option of adding a seventh which I assume would be the same note regardless of the order
of the others but which octave?
Is the above correct?
Should I add or change anything?
Thanks in advance