Max

Play a movie in Jitter, fade in and out, and jump around

This patch shows the basics of displaying a movie with Jitter, and also shows the use of movie attributes to learn and use important information about the movie, how to jump around randomly within the movie, an easy way to fade the movie in or out, and how to fill the computer screen with the movie.

Soundfile player in MSP

This patch shows the use of sfplay~ to play pre-recorded sound files, the use of gain~ to control their loudness, and a few other features of controlling soundfile playback in MSP.

Minimal loops using a portion of a table

This patch composes a melody in Minimal style, playing periodically-varying diatonic melodic loops of different lengths. A 16-stage sequence of velocity values is stored in one table, and a 32-stage sequence of pitch values is stored in another table.

Draw random multicolored lines

This patch shows the use of random number generators, the lcd object for drawing graphics, and the use of replaceable ‘\$’ arguments in a message box. It also uses the counter and select objects to note how many times something has happened and take an action when a certain number is reached.

Count numbers and use them to play notes

This patch shows several of the most basic and useful Max objects.

A metro object (a scheduler of timed, repeated triggering messages) to trigger a counter (which keeps track of, and reports how many events it has received), and then uses the numbers from the counter to play notes on a MIDI synthesizer.

List to 3plane 2D matrix

This example shows a way to divide your list into three-item groups with zl.group, then put each of those values into one of the three planes of jit.matrix.

Plot an exponential curve

This patch allows you to see the effect of different exponents in a formula that maps input values to output values with a power function. Input values between 0 and 1, taken to some power, will always yield output values from 0 to 1, provided that the exponent is greater than or equal to 0. (When the exponent is 0, the output values will all be 1.

Avoid groove~ sync output initial jump

To avoid an initial spike on the sync output of a groove~ object, make sure that its associated buffer~ is given a nonzero size.

qlim timing workaround

Here is a workaround for instantly changing the time interval of a qlim object without waiting for the current cycle to end.