Use the count~ object count samples elapsed and thus drive processes tightly synchronized to the sample rate. It outputs a signal increasing by 1 for each sample elapsed. It can be set to loop, and can be used to drive objects such as index~ with sample accuracy.
Counter initial value
Set a count limit for a looping counter, or 0 for no count limit. Note that the limit value is never reached.
Specify whether the count~ object is off (0) or on (1) initially.
When enabled, the internal counter is reset to the initial value whenever audio is turned on (see themessage).
Reset the counter to the initial value when audio turns on
Common Box Attributes
Multichannel Group Attributes
Right inlet: Set limit value without reset
Multichannel Group Messages
When the audio is first turned on, count~ always sends out its current initial value. When a or is received, the count begins increasing from the current initial value.
|MSP Sampling Tutorial 1: Recording and Playback||MSP Sampling Tutorial 1: Recording and Playback|