Enum wmidi::Channel
[−]
[src]
pub enum Channel { Ch1, Ch2, Ch3, Ch4, Ch5, Ch6, Ch7, Ch8, Ch9, Ch10, Ch11, Ch12, Ch13, Ch14, Ch15, Ch16, }
The MIDI channel. There are 16 channels. They are numbered between 1 and 16 inclusive, or indexed between 0 and 15 inclusive.
Variants
Ch1
Ch2
Ch3
Ch4
Ch5
Ch6
Ch7
Ch8
Ch9
Ch10
Ch11
Ch12
Ch13
Ch14
Ch15
Ch16
Methods
impl Channel
[src]
fn from_index(i: u8) -> Result<Channel, Error>
[src]
Get a MIDI channel from an index that is between 0 and 15 inclusive.
fn index(&self) -> u8
[src]
The index of this midi channel. The returned value is between 0 and 15 inclusive.
fn number(&self) -> u8
[src]
The number of this midi channel. The returned value is between 1 and 16 inclusive.
Trait Implementations
impl Copy for Channel
[src]
impl Clone for Channel
[src]
fn clone(&self) -> Channel
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Channel
[src]
impl PartialEq for Channel
[src]
fn eq(&self, __arg_0: &Channel) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.