another script/patch challenge for a math boss?
I am trying to take some note scales (for example major, minor, etc) based on intervals starting at 0 and applying it to incoming values of a step sequence. I have had great success just mapping the incoming values to the scale values using a mapper values module but this method is limited because i have to enter the scale values manually for as many octaves as are needed which quickly becomes hard to deal with. so I am trying to devise a way to take only one octave of a scale and use some kind of recursive math? to force the incoming values to increase by one octave each time the incoming values reach the maximum of the scale creating a seamless scale all the way from 0 up to the 127th midi note number. I hope this makes sense. any ideas? thanks.
I'm not sure to understand exactly, but you should try to use a "A mod B" module in conjonction with a "counter max with reset". The counter will count octave to switched on until the max value . If incoming value are equal or > to the max counter value, then, reset the counter.
that sounds interesting. I will study this. thanks
yup A mod B, and A div B.
if i well understood, another method is to make a 12 size array, then the incoming note moded by 12 output is used as index for a getArrayEmt module, to get the correct value for all octaves from this single 'scale' octave array.
then to recompose the modified note, pick the out of getArrayElmt and add this to the actual octave: (note div 12)*12
if i well understood, another method is to make a 12 size array, then the incoming note moded by 12 output is used as index for a getArrayEmt module, to get the correct value for all octaves from this single 'scale' octave array.
then to recompose the modified note, pick the out of getArrayElmt and add this to the actual octave: (note div 12)*12
It's the better solution 23fx23....
a less elegant solution would be:

a less elegant solution would be:

Seb.Dub
Thanks for all the suggestions everyone. The a mod b is definitely the way to go. here is something i came up with.
http://www.sensomusic.com/forums/upload ... ale_01.pat
not sure if its the most efficient way to do this but it works.
http://www.sensomusic.com/forums/upload ... ale_01.pat
not sure if its the most efficient way to do this but it works.
Found this thread when I was experiencing the same challenge!
this works also!
the first division is by 12
and the multiplications are also *12

this works also!
the first division is by 12
and the multiplications are also *12

Who is online
Users browsing this forum: No registered users and 24 guests
