Struct midi_msg::WAVMap[][src]

pub struct WAVMap {
    pub dst_bank: u16,
    pub dst_prog: u8,
    pub base: u8,
    pub lokey: u8,
    pub hikey: u8,
    pub fine: i16,
    pub volume: u8,
}

How to map a WAV file for MIDI reference. Used by SelectMap.

Fields

dst_bank: u16

MIDI bank number required to select sound for playing. 0-16383

dst_prog: u8

MIDI program number required to select sound for playing. 0-127

base: u8

MIDI note where sound plays at original pitch

lokey: u8

Lowest MIDI note that plays

hikey: u8

Highest MIDI note that plays

fine: i16

Fine tuning offset -8192-8191, representing the fractional cents to shift in 1/8192ths of a cent

volume: u8

Initial volume 0-127

Trait Implementations

impl Clone for WAVMap[src]

impl Copy for WAVMap[src]

impl Debug for WAVMap[src]

impl Default for WAVMap[src]

impl PartialEq<WAVMap> for WAVMap[src]

impl StructuralPartialEq for WAVMap[src]

Auto Trait Implementations

impl RefUnwindSafe for WAVMap

impl Send for WAVMap

impl Sync for WAVMap

impl Unpin for WAVMap

impl UnwindSafe for WAVMap

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.