Measure time recorded into a buffer
Use the timer object to measure the time between when you turn on recording and when you stop recording.
Use the timer object to measure the time between when you turn on recording and when you stop recording.
In the I/O Mappings window within the Audio Status… window you can map the outputs numbered 3-16 to play through outputs 1 or 2 of your available stereo output device (say, Built-In Audio, for example). This allows for testing patches on hardware that has less than the desired number of channels.
This patch shows how you might use one set of four toggle objects to control the states of four on/off switches in each of eight different "tracks" or "banks" of four. There are four toggles to control the states in each track. The toggle states will be routed only to the selected track number.
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 shows how you can turn on and off audio files with a single toggle –– as in swapping between one and the other. Since 1 is on and 0 is off, you can use a == 0 object to produce the opposite (to turn one thing off when you turn the other on and vice versa). This can be seen in action in the example on the left.
This example demonstrates how to assign an index number to an incoming number. Storage to the coll object is triggered with the keypress object.
A trill can be thought of as a fast back-and-forth alternation between two pitches—or more generally as fast back-and-forth alternation between any two things or states. A back-and-forth or on-off switch can be implemented in any programming language by setting a boolean variable (a variable that's capable of having only one of two states) to its opposite state, with an expression in the form of "If it's 'X', set it to 'NOT X', otherwise, set it to 'X'."