Struct midi_msg::SoundFileMap[][src]

pub struct SoundFileMap {
    pub dst_bank: u16,
    pub dst_prog: u8,
    pub src_bank: u16,
    pub src_prog: u8,
    pub src_drum: bool,
    pub dst_drum: bool,
    pub volume: u8,
}

How to map a DLS or SF2 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

src_bank: u16

MIDI bank number referenced in file’s instrument header. 0-16383

src_prog: u8

MIDI program number referenced in file’s instrument header. 0-127

src_drum: bool

The selected instrument is a drum instrument

dst_drum: bool

The selected instrument should be loaded as a drum instrument

volume: u8

Initial volume 0-127

Trait Implementations

impl Clone for SoundFileMap[src]

impl Copy for SoundFileMap[src]

impl Debug for SoundFileMap[src]

impl Default for SoundFileMap[src]

impl PartialEq<SoundFileMap> for SoundFileMap[src]

impl StructuralPartialEq for SoundFileMap[src]

Auto Trait Implementations

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.