Function ssp::channel_value
source · pub fn channel_value(channel: usize) -> Result<ChannelValue>Expand description
Gets the ChannelValue of the given channel index.
Channels are one-indexed, since many events use zero as a special value when returning the channel index. For example, Read uses zero to indicate a note is still being processed, and non-zero values to indicate the channel a validated note moves into.
Example:
// Channels are one-indexed, zero is a special value
let _val = ssp::channel_value(1)?;