float

Pack without Pack

Int, float, and list are all (normally hidden) message selectors that are assumed whenever Max encounters a message that consists of (respectively) a single int, a single float, or a multi-item message that starts with a number. Similarly, typing a single int, a single float, or any multi-item list that starts with a number directly into an object box assumes an object of type int (or i), float (or f), or list (or pack).

Create a stop motion effect using jit.qt.movie

To create a stop motion effect, calculate the ratio of the movie’s framerate to your desired (stopframe) framerate. Use that value to calculate a metro interval. Then move ahead the desired number of frames with each bang of the metro. In order to avoid any errors caused by using int instead of float, calculate and store the current frame number as a float (outside of the jit.qt.movie object). Finally, send a frame message to jit.qt.movie.

Windowing an audio signal

In signal processing, a "window" is a function (shape) that is nonzero for some period of time, and zero before and after that period. When multiplied by another signal, it produces an output of 0 except during the nonzero portion of the window, when it exposes the other signal. The simplest example is a rectangular window, which is 0, then briefly is 1, then reverts to 0. The windowed signal will be audible only when it is being multiplied by 1––i.e., during the time when the rectangular windowing occurs.