Max

Adjustable Tempo

This example explores some approaches to recording and playing events in Max.

The mtr object is made for recording messages and playing them back in the same rhythm as they were recorded––see the top-left portion of the patch.

Timed ouput of list elements

This patch is one method of outputting a list of integers individually spread out over time. The iter object outputs each integer in the list one at a time. The trigger ‘b i’ sends the integer to the pipe which adds the specified time interval to the current value in the accum which changes the delay time of the next object sent to pipe. The patch could be easily adapted to work for floats as well.

MIDIGlissando

This example shows how to control glissando using MIDI. A little bit of revision: MIDI notes can only be played with whole numbers 0-127. Some synths allow you to specify an alternate tuning other than 12-tone equal temperament, but that’s not what we’re after in this case. So, let’s say, if you’re converting frequency to midi note values you will need to calculate the desired pitchbend from the fractional part of the value you obtain from ftom.