Enum midi_msg::ExtendedSampleDumpMsg[][src]

pub enum ExtendedSampleDumpMsg {
    Header {
        sample_num: u16,
        format: u8,
        sample_rate: f64,
        length: u64,
        sustain_loop_start: u64,
        sustain_loop_end: u64,
        loop_type: ExtendedLoopType,
        num_channels: u8,
    },
    SampleNameRequest {
        sample_num: u16,
    },
    SampleName {
        sample_num: u16,
        name: AsciiString,
    },
    LoopPointsRequest {
        sample_num: u16,
        loop_num: LoopNumber,
    },
    LoopPointTransmission {
        sample_num: u16,
        loop_num: LoopNumber,
        loop_type: ExtendedLoopType,
        start_addr: u64,
        end_addr: u64,
    },
}

The extended sample dump messages described in CA-019, used to allow for longer, named samples. Used by UniversalNonRealTimeMsg::SampleDump.

Variants

Header

Fields of Header

sample_num: u16

The ID of the sample, between 0-16383.

format: u8sample_rate: f64

Sample rate in Hz. The f64 is used to approximate the two 28bit fixed point sent over the wire.

length: u64

Sample length in words, 0-34359738368

sustain_loop_start: u64

Sustain loop start point word number, 0-34359738367

sustain_loop_end: u64

Sustain loop end point word number, 0-34359738367

loop_type: ExtendedLoopTypenum_channels: u8

Number of audio channels, 0-127

SampleNameRequest

Request the given sample’s name.

Fields of SampleNameRequest

sample_num: u16

The ID of the sample, between 0-16383.

SampleName

Describe the name of a given sample.

Fields of SampleName

sample_num: u16

The ID of the sample, between 0-16383.

name: AsciiString

An up to 127 character name.

LoopPointsRequest

Request that the receiver return data about the loop points for a given sample.

Fields of LoopPointsRequest

sample_num: u16

The ID of the sample, between 0-16383.

loop_num: LoopNumber
LoopPointTransmission

Used to send additional loop points for a given sample.

Fields of LoopPointTransmission

sample_num: u16

The ID of the sample, between 0-16383.

loop_num: LoopNumberloop_type: ExtendedLoopTypestart_addr: u64

Loop start address (in samples)

end_addr: u64

Loop end address (in samples)

Trait Implementations

impl Clone for ExtendedSampleDumpMsg[src]

impl Debug for ExtendedSampleDumpMsg[src]

impl PartialEq<ExtendedSampleDumpMsg> for ExtendedSampleDumpMsg[src]

impl StructuralPartialEq for ExtendedSampleDumpMsg[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.