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

Methods

impl Channel
[src]

[src]

Get a MIDI channel from an index that is between 0 and 15 inclusive.

[src]

The index of this midi channel. The returned value is between 0 and 15 inclusive.

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Channel
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Channel
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Channel
[src]