Struct ittech::Sample[][src]

pub struct Sample {
    pub name: Name,
    pub filename: DOSFilename,
    pub global_volume: u8,
    pub default_volume: u8,
    pub default_panning: u8,
    pub loop_: Option<SampleLoop>,
    pub sustain_loop: Option<SampleLoop>,
    pub samplerate_c5: u32,
    pub vibrato_speed: u8,
    pub vibrato_depth: u8,
    pub vibrato_rate: u8,
    pub vibrato_type: u8,
    pub data: Option<Vec<f32>>,
}

Fields

name: Name

Sample Name, null-terminated (but may also contain nulls)

filename: DOSFilename

DOS Filename, null-terminated

global_volume: u8

Global Volume

default_volume: u8

Default Volume

default_panning: u8

Default Panning

loop_: Option<SampleLoop>

Loop after the note has been released (Off ==) command, or directly after reaching the end point if the sustain loop is off.

sustain_loop: Option<SampleLoop>

Loop after reching the end point while holding the note.

samplerate_c5: u32

C-5 playback frequency.

If set to the native sampling rate of the sound sample playing the sample at C-5 will play it back unchanged.

vibrato_speed: u8

Auto-Vibrato Rate (called Sweep in IT)

vibrato_depth: u8

Auto-Vibrato Depth

vibrato_rate: u8

Auto-Vibrato Sweep (called Rate in IT)

vibrato_type: u8

Auto-Vibrato Type

data: Option<Vec<f32>>

Sample samples converted to a normalized f32 representation (values from -1.0 to 1.0)

Trait Implementations

impl Clone for Sample[src]

impl Debug for Sample[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.