note scaling?


    Aug 10 2010 | 4:37 pm
    hey guys, i have a patch that can generate 8 independent midi notes. i would like to add a menu to select scales. so the first note you can select would be a C2 and all the rest of the 8 notes would set up according to the scale..
    can someone give me a hint?
    right now it seems like a mass of math to me..
    thank you

    • Aug 10 2010 | 5:33 pm
      The [coll] object applies here I think; see Cycling74/examples/max-tricks/notes-and-pitch, there's a useful [coll] in there that you can modify to suit.
      Brendan
    • Aug 10 2010 | 6:32 pm
      not much math, just have 7 [+] objects with the right offset. So for major:
      0 2 4 5 7 9 11
      where 0 is the first chosen note, in your example, C2. But it could be anything.
      Have int boxes (probably restrict min and max to 0 and 12?) attached to each number box. Use a preset on the int boxes and you can have any scale you want. Use [zl group] on the output of the boxes to make a scale list, then you can use [zl rot] to transpose.
      [% 12] is also useful with scale stuff...
    • Aug 10 2010 | 6:36 pm
      I have an example called ScaleMaster which can be found here http://xfade.com/max/
      It is a scale database with a couple different flavors of note quantizers.
    • Aug 11 2010 | 12:54 pm