pub fn try_from_channel(channel: u32) -> Option<MidiChannel> {
        // In reality, the channel is off by one
        match Self::new(channel - 1) {
            v @ MidiChannel::Valid { .. } => Some(v),
            _ => None,
        }
    }
/// Creates a new MidiChannel and returns Some if the value is within the valid channel range.
Creates a new MidiChannel and returns Some if the value is within the valid channel range.
Creates a new MidiChannel and returns Some if the value is within the valid channel range .
pub fn try_from_channel(channel: u32) -> Option<MidiChannel> {
        // In reality, the channel is off by one
        match Self::new(channel - 1) {
            v @ MidiChannel::Valid { .. } => Some(v),
            _ => None,
        }
    }
pub fn try_from_channel ( channel : u32 ) -> Option < MidiChannel > { // In reality, the channel is off by one match Self :: new ( channel - 1 ) { v @ MidiChannel :: Valid { .. } => Some ( v ) , _ => None , } }
Creates a new MidiChannel and returns Some if the value is within the valid channel range.
Creates a new MidiChannel and returns Some if the value is within the valid channel range .
channel
u32