tracert ·
i have do this simple note scale tool, but it is only for one octave, some idea for next 4 octave ? (i dont wont to repeat same code 4 times!) thanks....
From the original SynthMaker forum (2004–2014), with its members’ names and dates.
tracert ·
i have do this simple note scale tool, but it is only for one octave, some idea for next 4 octave ? (i dont wont to repeat same code 4 times!) thanks....
philter5 ·
tracert wrote: (i dont wont to repeat same code 4 times!) thanks....
why not?
lesobrod ·
Oh I feel the same many times, man! Are you programmer? 😀 I remember from ALGOL and PASCAL - "Always make arrays and loops; don't use x,y,z,w, but arr[1..4]" and etc. Well the rules are for breaking and for to trial by reality sense. Copy-Paste 4 or even 8 modules IMO better than to make huge and awful complicated logical design ))
oddson ·
Modulus divide the note number by 12 and the result will give you the scale degree {edit}should read: 'pitch distance from C'{/edit} separate from the octave.
I haven't studied the image carefully to see what you're doing so I may be off base.
oddson ·
I took another look...
You're filtering non-diatonic notes out of a MIDI stream. Correct?
I think there might be one of these somewhere on the site... if not I'll have a look after dinner (2 hours) and post something.
oddson ·
Very similar issue in a chord gererator problem from way back (so far back the included version of my GUI Keyboard doesn't work).
So it was pretty simple to make this:
tracert ·
hi oddson, brlliant your schematic!, but if i need to correct note out of the scale ?
oddson ·
tracert wrote: ... if i need to correct note out of the scale ?
You need to provide a table to correct non-diatonic offsets 1,3,6,8,10 and tell it which direction to correct (and even how far if you want although that would be a bit weird).
I've done it with -1 and +1 values for these indexes in the lookup table.
tracert ·
Oddson, I dont know the array, i have do this, it seem to work, what you think about ? Thanks for your attention.
Wrote something here? To have a post removed or your name hidden, write to [email protected].