Context(s) | chop |
<type> chinput(int channel_index, float|intsample)
<type> chinput(int opinput, int channel_index, float|intsample)
Read a sample from the channel at the given index.
The version without opinput
assumes the first input (0).
<type> chinput(string channel_name, float|intsample)
<type> chinput(int opinput, string channel_name, float|intsample)
Read a sample from the channel with the given name.
The version without opinput
assumes the first input (0).
int chinput(int channel_index, float|intsample, vector &t, vector &r, vector &s)
int chinput(int opinput, int channel_index, float|intsample, vector &t, vector &r, vector &s)
Read samples from the 9 channels starting at the given index.
The samples are returned in the 3 vector output arguments.
Returns 1 on success or 0 on failure.
The version without opinput
assumes the first input (0).
int chinput(string channel_name, float|intsample, vector &t, vector &r, vector &s)
int chinput(int opinput, string channel_name, float|intsample, vector &t, vector &r, vector &s)
Read samples from the 9 channels starting at the given channel name.
The samples are returned in the 3 vector output arguments.
Returns 1 on success or 0 on failure.
The version without opinput
assumes the first input (0).
opinput
The input number to read from, starting from 0. For example, the first input is 0, the second input is 1, and so on.
sample
If this is fractional, the value is linearly interpolated from the two nearest points.
Returns
The value of a channel at the specified sample in an input.
chop |
|