Playing a pattern
These patches use timed counting—in both cases using a metro object and a counter—to step through a series of MIDI notes.
These patches use timed counting—in both cases using a metro object and a counter—to step through a series of MIDI notes.
This patch shows how to play a loaded movie file in short chunks.
In this example, when you turn on the two metro objects, one of the three movies are chosen randomly by the urm object every three seconds to be read by the jit.qt.movie object. Since the urm generates random numbers without duplicate, it can be used to switch to a new movie at a certain interval while playing.
This example shows a series of events that causes a movie to start playing.
First, when you click on the message read blading.mov or read, the message is sent to the object jit.qt.move, which then reports read <movie_name> 1 from the right outlet if successful.
This patch converts MIDI velocity values to create an amplitude envelope to control a *~. The Test MIDI velocity to amplitude (vtoa) abstraction patch shows how this abstraction can be used.
This patch shows how to create a linear crescendo using MIDI velocity.
This patch uses a counter to send out MIDI pitch and velocity values using makenote and noteout. Once the counter reaches 12 a 0 message is sent to the toggle attached to the metro stopping it.
This patch will send out a MIDI command to play middle C (60) when the "c" key on the computer keyboard is pressed.
The key object tracks and outputs the ASCII values of the keys you press on the computer keyboard. You can then use those ASCII values to trigger other objects as shown in the example above. In the example, the 'c' key is used to trigger the note middle C (MIDI key number 60), and the 'r' key is used to turn on a stream of randomly-chosen notes C across the entire MIDI range (every multiple of 12 from 0 to 120) at a rate of ten notes per second.
This patch shows how to switch between which of three different video files is being displayed on jit.window.