Simpler way re: pitch/octave dividing?
Just solving an issue I had but wanted to make sure there isn't an easier way to go about this. The patch in question takes MIDI note numbers then reduces then down to a single octave. 24 becomes 0, 49 becomes 1, 14 becomes 2, and so on. Lots of "if/then" going on here. Lately I've been trying to make all my patches have as few objects as possible. Here's the patch as I've figured it:
You're essentially just converting from pitch to pitch-class, yes? There's a much simpler way - use [% 12].
best,
Zachary
Just as Zachary said, mod is your friend in this case. Since you seem to be running Max 4 I converted the Max 5 patch for ya as well...
Thanks to both of you! Seems I need to read through the documentation again. That's another object that as slipped through my knowledge.
...and when you get to making scales, look into matrixctrl with a preset, zl rot to transpose, zl mth to test whether the pitch is in the scale or not...it's never-ending!