Simpler way re: pitch/octave dividing?


    Dec 10 2009 | 8:33 am
    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:

    • Dec 10 2009 | 8:41 am
      You're essentially just converting from pitch to pitch-class, yes? There's a much simpler way - use [% 12].
      best, Zachary
    • Dec 10 2009 | 8:49 am
      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...
    • Dec 10 2009 | 1:25 pm
      Thanks to both of you! Seems I need to read through the documentation again. That's another object that as slipped through my knowledge.
    • Dec 11 2009 | 8:56 am
      ...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!