Enum midi_msg::SampleDumpMsg [−][src]
Used to request and transmit sampler data.
Used by UniversalNonRealTimeMsg::SampleDump
.
Variants
Request that the receiver send the given sample.
Fields of Request
sample_num: u16
The ID of the sample, between 0-16383.
The first message in a sample dump, used to describe the data contained in the following packets.
Fields of Header
sample_num: u16
The ID of the sample, between 0-16383.
format: u8
period: u32
Sample period (1/sample rate) in nanoseconds, 0-2097151
length: u32
Sample length in words, 0-2097151
sustain_loop_start: u32
Sustain loop start point word number, 0-2097151
sustain_loop_end: u32
Sustain loop end point word number, 0-2097151
loop_type: LoopType
A single packet of sample data.
Use SampleDumpMsg::packet
to construct.
Fields of Packet
Request that the receiver return data about the loop points for a given sample.
Fields of LoopPointsRequest
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: LoopNumber
loop_type: LoopType
start_addr: u32
Loop start address (in samples)
end_addr: u32
Loop end address (in samples)
Implementations
impl SampleDumpMsg
[src]
pub fn packet(num: u32, data: [u8; 120]) -> Self
[src]
Construct a packet of exactly 120 7-bit “bytes”.
num
is the number of this packet.
Trait Implementations
impl Clone for SampleDumpMsg
[src]
fn clone(&self) -> SampleDumpMsg
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SampleDumpMsg
[src]
impl PartialEq<SampleDumpMsg> for SampleDumpMsg
[src]
fn eq(&self, other: &SampleDumpMsg) -> bool
[src]
fn ne(&self, other: &SampleDumpMsg) -> bool
[src]
impl StructuralPartialEq for SampleDumpMsg
[src]
Auto Trait Implementations
impl RefUnwindSafe for SampleDumpMsg
impl Send for SampleDumpMsg
impl Sync for SampleDumpMsg
impl Unpin for SampleDumpMsg
impl UnwindSafe for SampleDumpMsg
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,