(maxmsp) Lecture Notes: selecting and comparing

Todays example patch is posted (day5.txt).

We’re building a toolbox of objects that can help us automate a MIDI performance environment. Today we covered:

  • stripnote: only passes MIDI noteon messages through
  • comparison operators, like <, >, <=, >=, ==, and !=. If the result of the comparison is true, then the resulting output is 1; false and the output is 0. The results could be used to start and stop processes, especially if you can start it with a toggle.
  • select: looks for input to match its arguments. A match sends a bang message out the appropriate outlet. Non-matching input is passed through and out the left outlet. Multiple arguments make select look for multiple matches. Any match causes a bang, but it goes out the outlet that matches the order of the arguments.
  • %: modulo math. % 12 returns the remainder of the input divided by 12, which can be used to give integer notation numbers for pitch classes.
  • pack: takes individual inputs and creates a list.
  • histo: keeps track of the number of iterations of a message (histogram), outputting the data message (left) and the count (right) for that message.
  • table: input a list and you store the second value at the index location represented by the first value.


Leave a Reply