Define a custom CHOP operator with a program that edits channel values.
The CHOP context allows users to change values of channels in a CHOP. Each CHOP function works on a single sample of a single channel of a CHOP.
Sample rate for the channel.
Index of the start of the current channel. This is the index of the first sample.
Total number of channels the CHOP will affect.
Index or sample number of the current channel.
Channel number for the current channel. When processing multiple channels, this is the index of the channel currently being evaluated.
Length of the channel (total number of samples).
value of the current sample. This variable should be set to the new value by the function. The variable is initialized to the value of the first input’s channels.
Index of the last sample (end sample).