pub struct Amplitude { /* private fields */ }
Expand description
Represents parameters in the amp page of a sound.
Implementations§
source§impl Amplitude
impl Amplitude
sourcepub fn set_attack(&mut self, attack: usize) -> Result<(), RytmError>
pub fn set_attack(&mut self, attack: usize) -> Result<(), RytmError>
Sets the attack of the amplitude envelope.
Range: 0..=127
sourcepub fn set_hold(&mut self, hold: usize) -> Result<(), RytmError>
pub fn set_hold(&mut self, hold: usize) -> Result<(), RytmError>
Sets the hold of the amplitude envelope.
Range: 0..=127
0
is no hold, 127
is infinite hold.
sourcepub fn set_decay(&mut self, decay: usize) -> Result<(), RytmError>
pub fn set_decay(&mut self, decay: usize) -> Result<(), RytmError>
Sets the decay of the amplitude envelope.
Range: 0..=127
sourcepub fn set_overdrive(&mut self, overdrive: usize) -> Result<(), RytmError>
pub fn set_overdrive(&mut self, overdrive: usize) -> Result<(), RytmError>
Sets the overdrive amount applied to the amplitude.
Range: 0..=127
sourcepub fn set_delay_send(&mut self, delay_send: usize) -> Result<(), RytmError>
pub fn set_delay_send(&mut self, delay_send: usize) -> Result<(), RytmError>
Sets the delay send of the amplitude envelope.
Range: 0..=127
sourcepub fn set_reverb_send(&mut self, reverb_send: usize) -> Result<(), RytmError>
pub fn set_reverb_send(&mut self, reverb_send: usize) -> Result<(), RytmError>
Sets the reverb send of the amplitude envelope.
Range: 0..=127
sourcepub fn set_pan(&mut self, pan: isize) -> Result<(), RytmError>
pub fn set_pan(&mut self, pan: isize) -> Result<(), RytmError>
Sets the pan of the amplitude envelope.
Range: -64..=63
sourcepub fn set_volume(&mut self, volume: usize) -> Result<(), RytmError>
pub fn set_volume(&mut self, volume: usize) -> Result<(), RytmError>
Sets the volume of the amplitude envelope.
Range: 0..=127
sourcepub const fn attack(&self) -> usize
pub const fn attack(&self) -> usize
Returns the attack of the amplitude envelope.
Range: 0..=127
sourcepub const fn hold(&self) -> usize
pub const fn hold(&self) -> usize
Returns the hold of the amplitude envelope.
Range: 0..=127
0
is no hold, 127
is infinite hold.
sourcepub const fn overdrive(&self) -> usize
pub const fn overdrive(&self) -> usize
Returns the overdrive amount applied to the amplitude.
Range: 0..=127
sourcepub const fn delay_send(&self) -> usize
pub const fn delay_send(&self) -> usize
Returns the delay send of the amplitude envelope.
Range: 0..=127
sourcepub const fn reverb_send(&self) -> usize
pub const fn reverb_send(&self) -> usize
Returns the reverb send of the amplitude envelope.
Range: 0..=127
Trait Implementations§
source§impl<'de> Deserialize<'de> for Amplitude
impl<'de> Deserialize<'de> for Amplitude
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Ord for Amplitude
impl Ord for Amplitude
source§impl PartialEq for Amplitude
impl PartialEq for Amplitude
source§impl PartialOrd for Amplitude
impl PartialOrd for Amplitude
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more