pub struct SynthParams {Show 15 fields
pub volume: u8,
pub pitch: u8,
pub fine_tune: u8,
pub filter_type: u8,
pub filter_cutoff: u8,
pub filter_res: u8,
pub amp: u8,
pub limit: LimitType,
pub mixer_pan: u8,
pub mixer_dry: u8,
pub mixer_mfx: u8,
pub mixer_delay: u8,
pub mixer_reverb: u8,
pub associated_eq: u8,
pub mods: [Mod; 4],
}
Fields§
§volume: u8
§pitch: u8
§fine_tune: u8
§filter_type: u8
§filter_cutoff: u8
§filter_res: u8
§amp: u8
§limit: LimitType
§mixer_pan: u8
§mixer_dry: u8
§mixer_mfx: u8
§mixer_delay: u8
§mixer_reverb: u8
§associated_eq: u8
§mods: [Mod; 4]
Implementations§
Source§impl SynthParams
impl SynthParams
pub const MODULATOR_COUNT: usize = 4usize
pub fn set_eq(&mut self, eq: u8)
pub fn mod_only2(_reader: &mut Reader) -> M8Result<Self>
pub fn mod_only3(reader: &mut Reader, mod_offset: usize) -> M8Result<Self>
pub fn from_reader2( reader: &mut Reader, volume: u8, pitch: u8, fine_tune: u8, ) -> M8Result<Self>
pub fn write(&self, ver: Version, w: &mut Writer, mod_offset: usize)
pub fn write_modes(&self, w: &mut Writer, mod_offset: usize)
pub fn from_reader3( version: Version, reader: &mut Reader, volume: u8, pitch: u8, fine_tune: u8, eq: u8, mod_offset: usize, ) -> M8Result<Self>
Trait Implementations§
Source§impl Clone for SynthParams
impl Clone for SynthParams
Source§fn clone(&self) -> SynthParams
fn clone(&self) -> SynthParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SynthParams
impl Debug for SynthParams
Source§impl DescribableWithDictionary for SynthParams
impl DescribableWithDictionary for SynthParams
fn describe_with_dic<PG: ParameterGatherer>( &self, pg: PG, filters: &[&str], ver: Version, ) -> PG
Source§impl PartialEq for SynthParams
impl PartialEq for SynthParams
impl StructuralPartialEq for SynthParams
Auto Trait Implementations§
impl Freeze for SynthParams
impl RefUnwindSafe for SynthParams
impl Send for SynthParams
impl Sync for SynthParams
impl Unpin for SynthParams
impl UnwindSafe for SynthParams
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