pub struct Sampler {
pub number: u8,
pub name: String,
pub transpose: bool,
pub table_tick: u8,
pub synth_params: SynthParams,
pub sample_path: String,
pub play_mode: SamplePlayMode,
pub slice: u8,
pub start: u8,
pub loop_start: u8,
pub length: u8,
pub degrade: u8,
}
Fields§
§number: u8
§name: String
§transpose: bool
§table_tick: u8
§synth_params: SynthParams
§sample_path: String
§play_mode: SamplePlayMode
§slice: u8
§start: u8
§loop_start: u8
§length: u8
§degrade: u8
Implementations§
Source§impl Sampler
impl Sampler
pub const MOD_OFFSET: usize = 29usize
pub fn command_name(&self, _ver: Version) -> &'static [&'static str]
pub fn destination_names(&self, _ver: Version) -> &'static [&'static str]
Sourcepub fn filter_types(&self, _ver: Version) -> &'static [&'static str]
pub fn filter_types(&self, _ver: Version) -> &'static [&'static str]
List of all the applyable filter types for the instrument
pub fn write(&self, ver: Version, w: &mut Writer)
pub fn from_reader( ver: Version, reader: &mut Reader, start_pos: usize, number: u8, version: Version, ) -> M8Result<Self>
Trait Implementations§
impl StructuralPartialEq for Sampler
Auto Trait Implementations§
impl Freeze for Sampler
impl RefUnwindSafe for Sampler
impl Send for Sampler
impl Sync for Sampler
impl Unpin for Sampler
impl UnwindSafe for Sampler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more