This patch shows how to initialize UI objects using loadbang, loadmess, and pattr objects.
The object loadbang sends a bang when a patcher is opened. This object is very useful if you want to automate the start of some objects or messages in your patch. In this example, the movie starts automatically by sending loadbang to read the movie file and the toggle when the patch is loaded.
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 “theremin” where the mouse position controls pitch and amplitude of a cycle~ with the x and y position respectively.
This example plays the first sixteen harmonics based on a fundamental frequency where the rate at which each harmonic play is period / # of harmonic. For example, with a period of 10000 ms—meaning the fundamental plays every 10000 ms—the 4th harmonic will be heard every 10000/4 ms, or 2500 ms.
This example shows how to play sound files preloaded into sfplay~ using a MIDI keyboard with the select object.
This example shows how to convert a value expressing “notes per second” into "milliseconds per note", which is a more useful value for the metro object. The right side of the patch shows how to use the tempo object to specify tempo in bpm, and to specify the division of the whole note at which to output numbers indicating which division of the measure it's on.
This patch demonstrates how to use gain~ to smoothly scale a signal.
This exmaple demonstrates a simple way to ramp amplitude with number~.
This example shows how to retrieve a list of MIDI input devices and display them in a umenu object.