Jitter

Output matrix values to a number box

To output matrix values to a number box, use metro 1000 to bang a counter object, and use that output as the matrix coordinate for the getcell message. Please note that the third outlet of counter does not send out a bang unless you tell it to (with a carrybang message). It sends out a 1 when the counter reaches its maximum, and a 0 on the next output. This causes a double trigger.

Calculating the mean of each cell of a series of matrices

To calculate the mean value of each cell of a series of Jitter matrices, you can keep the running sums in a matrix, and then divide by the number of instances received. That is, use jit.+ to keep the sum of all matrices received, use a counter to keep track of how many matrices you’ve received, and use jit./ to divide by that number (or jit.* to multiply by one over that number). In this example, a subpatch generates fake input data, and the rest of the patch shows the procedure for calculating the mean.

Simple video file player with controls

This patch demonstrates a simple video file player with simple controls.

Simple video file player

This patch demonstrates a simple way to play a video file.

Get timescale and duration of a movie

This example demonstrates how to retrieve the timescale and duration values associated with a movie file.

Upsampling number lists with Jitter

The term "upsample" is used in digital audio and video to mean increasing the sampling resolution of a sound or an image. More generally the term can be used to mean increasing the size of a set of numbers by some factor, keeping the original numbers and using interpolation to determine the values of the new intermediate numbers.

Reveal sections of an image with alphablend

This example demonstrates how to use an alpha channel to reveal certain sections of an image. Refer to Tutorial 29: Using the Alpha Channel.

Checkerboard pattern in a matrix

This example shows a way to set the contents of a 2D Jitter matrix. The task in this case is to fill the matrix with a checkerboard pattern of alternating black and white squares, which is to say alternating 0 and 1 cells.

jit.gt.movie loopstart

This example lets you loop a movie, and jump to the beginning of the loop point by defining with a ‘looppoints’ attribute, and using ‘getloopstart’ to retrieve the loop’s starting time to be set to the time attribute for the jit.qt.movie object.

Stitch MOV frames

Q: I would like to stitch the frames of a MOV and create one big frame in another matrix by stitching all of the frames one after another vertically so I can save it as one bmp. Basically, I would like to create a concatenated film strip image like you can do with ImageMagick or Image Stitcher.