This example shows how to delay incoming midi notes by a specified note duration. In order to achieve this we are introducing a pipe object in the middle of the notein and noteout objects that can be found by default on a max for live midi device. Furthermore, we need to define pipe’s ‘delaytime’ attribute to ‘0 ticks’ and set the ‘quantize’ attribute to the desired note duration.
Max for Live
This example shows how to listen to a specific MIDI CC in Max for Live. Implementing MIDI reception for Max for Live is a little different from implementing it for straight ol’ Max. Instead of using, for example, the ctlin object, we need to use midiin, and then use midiselect to look for exactly what we want. Also, we need to make sure our plug-in is in a Live MIDI track, and that the MIDI monitoring is set to IN.
Following the “Tap Tempo” example, this is a translation of that patch it into a Max for Live device that controls the Live transport (using the mouse instead of the t key). For the purpose of the example demonstration the code that would reside inside an amxd file is included here inside a Max patch, so you can just see in Max without having to load it into Live.
This patch shows one possible implementation of a tremolo effect as a Max for Live (M4L) device.
This patch demonstrates some of the steps necessary to change a parameter automatically in a Max for Live device using the Live API. To use this patch, you will need the Ableton Live Studio application, and you'll need to paste the contents of this patch into the edit window of a Max for Live device.
This patch is, in many ways, identical to the patch shown in "Tap to teach tempo to Max", but in this instance it's implemented in a way that will work as a device in Max for Live. Instead of setting the tempo attribute of the Max transport object, we're setting the tempo property of the live_set object in the Live Object Model.