|
JesusDoesVegas posted:
I'm not 100% following along with what you want to accomplish, so I apologize if this solution isn't what you're looking to do, but I think you might be able to solve the problem like this: 1) Start with an array of pitch freqencies by semitone, which sounds like the midiTable referred to in the Google Group post you linked. 2) Create constants for each note you'll use as an entry point into the pitch array. Basically, your starting index value for accessing the array. E.g., C = 60 3) Create arrays for each type of scale you plan to use, with the values being the tone pattern. E.g., Major = 2,2,1,2,2,2,1 / Minor = 2,1,2,2,1,2,2 Putting it all together, if you wanted a C major scale... You'd start by looking up the array index for C (60) and the tone pattern of the major scale and then retrieve the relevant pitch frequencies starting with 60 then incrementing the index by 2, 2, 1, 2, etc.
|
# ¿ Nov 7, 2012 18:38 |
|
|
# ¿ May 15, 2024 15:38 |