|
Post by jon on Jan 7, 2019 1:29:41 GMT
# rotator # map incoming MIDI notes to rotating chords
IF LOAD ASS L0 = 4 # number of rotating intervals ASS K0 = 7 # fixed interval (positive) ASS K1 = 8 5 7 1 # rotating intervals (negative) ASS G0 = 1 # current rotation SET LB0 G0 +D END
# blanket convert all note on+vel0 to off 9X XX 00 = 8X
MAT I0 = M0 & E0
IF I0 == 80 # is this a note on/off IF M0 >= 90 # if this is note on ASS GM1 = G0 # remember rotation for this note SET LB1 M1 +D MAT G0 = G0 + 1 # increment rotation IF G0 > L0 ASS G0 = 1 END SET LB0 G0 +D END MAT J0 = M1 + K0 # fixed interval ASS J1 = GM1 MAT J1 = M1 - KJ1 # rotating interval SND M0 J0 M2 SND M0 J1 M2 END
|
|
|
Post by jon on Jan 7, 2019 1:33:52 GMT
oops, meant to post that to code boutique
also looks like indents got eaten
How can I fix that?
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jan 7, 2019 10:45:05 GMT
Hi Jon,
No problem, I will move this thread to the Boutique for you - thanks!
Aaah, indents always get wiped with the boards unless you paste into a 'code' (the button in the edit screen with a big C in it). I have become really fast at re-indenting code manually, so I will do it for your code too.
Regards, Nic.
|
|
|
Post by Jon on Jan 8, 2019 4:28:15 GMT
Thanks Nic! Oddly I did use the C block but still lost the indents. I'll pay closer attention next time to see if there's anything else I might have missed.
|
|
|
Post by Jon on Jan 8, 2019 4:32:46 GMT
additional background/detail: Michael Brecker pioneered this technique for using monophonic (one-note-at-a-time) input from an EWI breath controller to drive an alternating sequence of chords, producing an effect somewhat similar to a harmonizer, but with some potentially dissonant variation mixed in. Not random, but often unexpected. Here's an early example: www.youtube.com/watch?v=8dxlYxs-qHYMichael used an Oberheim Xpander to do this. Here's an article explaining how it worked: robbykilgore.com/?p=19&fbclid=IwAR3mg2KysrqikZT4t5F1fjrBhXSu-ZoFjDpFEQaYsBqDYTD8TAGadu9ISJIThere are a few ways that a similar rotator effect can be accomplished on an iPad, including at least one app that was designed specifically for that purpose, but I've had trouble getting that one to work reliably for me. With StreamByter, now I have a rotator that loads/saves cohesively as part of an AUM scene, and I can freely tweak the script to add more layers or make other adjustments to how the rotation works.
|
|