Slow OSC messages
To slow the flow of OSC messages, store the most recent value for each parameter using the combine object, but only send it out as an OSC message at the desired rate.
To slow the flow of OSC messages, store the most recent value for each parameter using the combine object, but only send it out as an OSC message at the desired rate.
This example shows how to run a function at event rate.
This is an example that generates a sixteenth-note rhythm, formats the information as MIDI note messages with midiformat, and stores them in a seq object, which can be saved as a MIDI file with the write message.
This patch demonstrates an application of modular arithmetic to wrap a series of numbers around within a defined range. The algorithm produces a series of expanding steps: 0, 1, 3, 6, 10, 15, 21, etc. The difference between each number and its predecessor in the series increases with each step—1-0=1, then 3-1=2, 6-3=3, 10-6=4, and so on. We do this by incrementing a counter and adding its output to the previous output of the + object.
Here is a way to create text that moves across the surface of a sphere. Click the jit.window object in the patch to see the animated result.
To create a poly-rhythm generator, this example chooses a division and articulates every attack point of that division. Use a metro synched to the transport to specify the divisions (or the tempo object, if preferred), and then use a counter (or a % object with the output of tempo) to specify the articulation points.
This example uses Jitter to reveal text pixel by pixel. The text is written into the jit.lcd and then revealed by increasing x value of the source and destination end positions sent out of the jit.matrix.
This example shows how to change the size and rotation position of an image or video displayed using Jitter. The x-y orientation of the image is manipulated via the rotate message sent to jit.gl.videoplane and the size of the image is altered via the camera message sent to jit.gl.render.
The simplest way to remove objects after a set duration using jit.lcd – because jit.lcd doesn’t support sprites – is to keep track of the individual drawing components and then redraw the whole stage. The example does so by storing the paintoval messages in a coll then sending the output of the coll to the jit.lcd.