Max
Schedule event on next bar
Output the difference between a current and previous value
This example shows a simple way to calculate the difference between an incoming value, and the previously received value (for integers).
Interweave Lists
While zl lace interweaves two lists, zl group allows you to interweave more than two lists. Retrieve the length of the list using zl, send it to uzi to retrieve the data in each index stored in the coll files, and pack them all to be interweaved by zl group.
Preload Sound Files
This example shows how to preload a folder containing a large number of sound files into an sflist~ object by using the umenu and uzi objects.
Using A Loop to Set Master Tempo
The groove~ object can be used to record a loop on the fly and use the loop length to set a master tempo which can send MIDI clock messages to other machines. The groove~ object sends out its right outlet a signal that goes from 0. to 1. as the current playback location of groove~ goes from its ‘loopstart’ point to its ‘loopend’ point. By default, groove~’s ‘loopstart’ point is 0 and its ‘loopend’ point is the end of the associated buffer~.
Using delay for inactivity trigger
What's the best way to detect lack of activity?
Let's say you want to Max to notify you if it has received no input for ten seconds. You could use a metro or a clocker to monitor activity constantly, and use a >= object to check when a time period 10,000 ms has been reached. However, by doing that, you're going to do lots of tests, only the last of which will give the looked-for result. There's an easier way.
Sequencer with Tempo
Move LCD Pen
To write and draw in an lcd object, the moveto message is used to move the lcd pen into position for the next drawing operation.
Dump list into another coll
To transfer all or part of a list into another coll object, the dump message can be sent to the sending coll object.