|
Post by Hansson on Nov 17, 2018 15:01:35 GMT
Anyone has any ideas to remap all incoming notes to one specific octave, ex, mapp all incoming notes to c3-c4
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Nov 19, 2018 11:13:39 GMT
I think I would keep it simple and just do a lookup table but populate the table mathematically. The following code would map all notes to the corresponding C3 to B3 octave. (Note, I used this table to get the hex notes for the range to populate the lookup table with) IF LOAD # define range (C3 to B3) ASS K0 = 3C 47
# populate table with # repeating range ASS I0 = 0 K0 IF I0 < 80 +L
# set lookup table entry (I0) # with current note from range (I1) ASS LI0 = I1
# calculate next note in range # (cycle back at end of range) MAT I1 = I1 + 1 IF I1 > K1 ASS I1 = K0 END
# loop increment MAT I0 = I0 + 1 END END
# remap notes from # lookup table IF M0 < A0 ASS M1 = LM1 ENDRegards, Nic.
|
|