This is an example of a patch loaded in a poly~ which uses midi values to load and transpose samples of guitar strings in a groove~. This patch is used as an abstraction inside of the Sampling Synthesizer in Max patch which includes pitch bend and mod wheel functionality and contains the buffer~ objects that the groove~ in this patch refers to.
The example shows how to display the note value of a midi note input in a jit.window as a rectangle. The x position of the rectangle is determined by the value of the midi note input.
This example shows how to create a MIDI “trill” effect, with a randomized rhythm, triggered when a particular incoming MIDI value is detected or when a specified audio amplitude threshold has been reached.
This example shows how to play sound files preloaded into sfplay~ using a MIDI keyboard with the select object.
This example shows a way to visualize the pitch of a MIDI note on the x axis of a lcd object. The same thing could be done in Jitter with jit.lcd. Whenever you're trying to visualize music or sound, some decisions have to be made about how parameters from one domain (music) will be mapped to the other domain (image). In this case, we've decided to visualize pitch in terms of a circle's left-to-right position.
The timepoint object sends out a bang when the transport reaches a specified time position. This can be useful for causing something to happen—or for starting an entire process—at a particular instant during the transport's progress. A timepoint might, for example, even trigger a new time position value to be sent to the transport object itself, thus causing the transport to leap to a different time.
The line object sends out a periodic series of numbers that progress to some new value over a certain amount of time. The input to line is a destination value (where it should eventually arrive), a transition time (how long it should take to get there), and a time interval between outputs (how often it should send out intermediate values along the way). The left part of this patch shows the use of line to generate integers that are used as pitches.