Hi Jeanette,
If you want to reduce the amount of table elements, you could calculate
the offset from the key base note, take it mod 12 and have a 12-element
array for every scale you want to implement (pseudo-C ahead):
bool minor[] = [true, false, true, true, false, true, false, true,
true, f
Thanks Roman. For the actual pitch quantisation I used a similar approach in
the end. Though for the MIDI case I stuck with the temporary 128 element
array. Though this is simply calculated from the same set of 12 element
arrays.
Best wishes,
Jeanette
Jan 1 2022, Roman Sommer has written: