chop
VEX context
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.
Globals
|
SR (read-only) |
Sample rate for the channel. |
|
S (read-only) |
Index of the start of the current channel. This is the index of the first sample. |
|
NC (read-only) |
Total number of channels the CHOP will affect. |
|
I (read-only) |
Index or sample number of the current channel. |
|
C (read-only) |
Channel number for the current channel. When processing multiple channels, this is the index of the channel currently being evaluated. |
|
L (read-only) |
Length of the channel (total number of samples). |
|
V |
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. |
|
E (read-only) |
Index of the last sample (end sample). |