To access and modify this information, we use a series of dict.unpack and array objects. The image below shows the basic blocks required to extract and modify note data from Live
The array.map object lets us iterate through and modify elements of an array. The image below shows what happens when we send an array into an array.map object.
An array is a collection of elements, each identified by an index. In this case, each element in the array contains information about a MIDI note inside of the clip. If you were to select 8 notes to transform, the live.miditool.in object would output an array with 8 elements… 1 for each note.
The transform algorithm gets executed by sending a “bang” message into the live.miditool.in object, which then outputs an array of note data from live.
Want to learn more?
Dig into Swing… Our free Midi Transformer used in this lesson
Cycling74 also has a great lesson on Midi tools here…
https://docs.cycling74.com/max8/vignettes/live_miditools?q=array