pub struct SoundSettings { /* private fields */ }
Expand description
A sound’s settings.
Implementations§
source§impl SoundSettings
impl SoundSettings
sourcepub fn set_chromatic_mode(&mut self, chromatic_mode: SoundSettingsChromaticMode)
pub fn set_chromatic_mode(&mut self, chromatic_mode: SoundSettingsChromaticMode)
Sets the chromatic mode of the sound.
sourcepub fn set_env_reset_filter(&mut self, env_reset_filter: bool)
pub fn set_env_reset_filter(&mut self, env_reset_filter: bool)
Sets the env reset filter switch of the sound.
sourcepub fn set_velocity_to_volume(&mut self, velocity_to_volume: bool)
pub fn set_velocity_to_volume(&mut self, velocity_to_volume: bool)
Sets the velocity to volume switch of the sound.
sourcepub fn set_legacy_fx_send(&mut self, legacy_fx_send: bool)
pub fn set_legacy_fx_send(&mut self, legacy_fx_send: bool)
Sets the legacy fx send switch of the sound.
sourcepub fn set_velocity_modulation_amt_1(
&mut self,
velocity_modulation_amt_1: isize
) -> Result<(), RytmError>
pub fn set_velocity_modulation_amt_1( &mut self, velocity_modulation_amt_1: isize ) -> Result<(), RytmError>
Sets the velocity modulation amount 1 of the sound.
Range: -127..=128
sourcepub fn set_velocity_modulation_target_1(
&mut self,
velocity_modulation_target_1: SoundModTarget
)
pub fn set_velocity_modulation_target_1( &mut self, velocity_modulation_target_1: SoundModTarget )
Sets the velocity modulation target 1 of the sound.
sourcepub fn set_velocity_modulation_amt_2(
&mut self,
velocity_modulation_amt_2: isize
) -> Result<(), RytmError>
pub fn set_velocity_modulation_amt_2( &mut self, velocity_modulation_amt_2: isize ) -> Result<(), RytmError>
Sets the velocity modulation amount 2 of the sound.
Range: -127..=128
sourcepub fn set_velocity_modulation_target_2(
&mut self,
velocity_modulation_target_2: SoundModTarget
)
pub fn set_velocity_modulation_target_2( &mut self, velocity_modulation_target_2: SoundModTarget )
Sets the velocity modulation target 2 of the sound.
sourcepub fn set_velocity_modulation_amt_3(
&mut self,
velocity_modulation_amt_3: isize
) -> Result<(), RytmError>
pub fn set_velocity_modulation_amt_3( &mut self, velocity_modulation_amt_3: isize ) -> Result<(), RytmError>
Sets the velocity modulation amount 3 of the sound.
Range: -127..=128
sourcepub fn set_velocity_modulation_target_3(
&mut self,
velocity_modulation_target_3: SoundModTarget
)
pub fn set_velocity_modulation_target_3( &mut self, velocity_modulation_target_3: SoundModTarget )
Sets the velocity modulation target 3 of the sound.
sourcepub fn set_velocity_modulation_amt_4(
&mut self,
velocity_modulation_amt_4: isize
) -> Result<(), RytmError>
pub fn set_velocity_modulation_amt_4( &mut self, velocity_modulation_amt_4: isize ) -> Result<(), RytmError>
Sets the velocity modulation amount 4 of the sound.
Range: -127..=128
sourcepub fn set_velocity_modulation_target_4(
&mut self,
velocity_modulation_target_4: SoundModTarget
)
pub fn set_velocity_modulation_target_4( &mut self, velocity_modulation_target_4: SoundModTarget )
Sets the velocity modulation target 4 of the sound.
sourcepub fn set_after_touch_modulation_amt_1(
&mut self,
after_touch_modulation_amt_1: isize
) -> Result<(), RytmError>
pub fn set_after_touch_modulation_amt_1( &mut self, after_touch_modulation_amt_1: isize ) -> Result<(), RytmError>
Sets the after touch modulation amount 1 of the sound.
Range: -127..=128
sourcepub fn set_after_touch_modulation_target_1(
&mut self,
after_touch_modulation_target_1: SoundModTarget
)
pub fn set_after_touch_modulation_target_1( &mut self, after_touch_modulation_target_1: SoundModTarget )
Sets the after touch modulation target 1 of the sound.
sourcepub fn set_after_touch_modulation_amt_2(
&mut self,
after_touch_modulation_amt_2: isize
) -> Result<(), RytmError>
pub fn set_after_touch_modulation_amt_2( &mut self, after_touch_modulation_amt_2: isize ) -> Result<(), RytmError>
Sets the after touch modulation amount 2 of the sound.
Range: -127..=128
sourcepub fn set_after_touch_modulation_target_2(
&mut self,
after_touch_modulation_target_2: SoundModTarget
)
pub fn set_after_touch_modulation_target_2( &mut self, after_touch_modulation_target_2: SoundModTarget )
Sets the after touch modulation target 2 of the sound.
Range: -127..=128
sourcepub fn set_after_touch_modulation_amt_3(
&mut self,
after_touch_modulation_amt_3: isize
) -> Result<(), RytmError>
pub fn set_after_touch_modulation_amt_3( &mut self, after_touch_modulation_amt_3: isize ) -> Result<(), RytmError>
Sets the after touch modulation amount 3 of the sound.
Range: -127..=128
sourcepub fn set_after_touch_modulation_target_3(
&mut self,
after_touch_modulation_target_3: SoundModTarget
)
pub fn set_after_touch_modulation_target_3( &mut self, after_touch_modulation_target_3: SoundModTarget )
Sets the after touch modulation target 3 of the sound.
sourcepub fn set_after_touch_modulation_amt_4(
&mut self,
after_touch_modulation_amt_4: isize
) -> Result<(), RytmError>
pub fn set_after_touch_modulation_amt_4( &mut self, after_touch_modulation_amt_4: isize ) -> Result<(), RytmError>
Sets the after touch modulation amount 4 of the sound.
Range: -127..=128
sourcepub fn set_after_touch_modulation_target_4(
&mut self,
after_touch_modulation_target_4: SoundModTarget
)
pub fn set_after_touch_modulation_target_4( &mut self, after_touch_modulation_target_4: SoundModTarget )
Sets the after touch modulation target 4 of the sound.
sourcepub const fn machine(&self) -> MachineType
pub const fn machine(&self) -> MachineType
Returns the machine type of the sound.
sourcepub const fn chromatic_mode(&self) -> SoundSettingsChromaticMode
pub const fn chromatic_mode(&self) -> SoundSettingsChromaticMode
Returns the chromatic mode of the sound.
sourcepub const fn env_reset_filter(&self) -> bool
pub const fn env_reset_filter(&self) -> bool
Returns the env reset filter switch of the sound.
sourcepub const fn velocity_to_volume(&self) -> bool
pub const fn velocity_to_volume(&self) -> bool
Returns the velocity to volume switch of the sound.
sourcepub const fn legacy_fx_send(&self) -> bool
pub const fn legacy_fx_send(&self) -> bool
Returns the legacy fx send switch of the sound.
sourcepub const fn velocity_modulation_amt_1(&self) -> isize
pub const fn velocity_modulation_amt_1(&self) -> isize
Returns the velocity modulation amount 1 of the sound.
Range: -127..=128
sourcepub const fn velocity_modulation_target_1(&self) -> SoundModTarget
pub const fn velocity_modulation_target_1(&self) -> SoundModTarget
Returns the velocity modulation target 1 of the sound.
sourcepub const fn velocity_modulation_amt_2(&self) -> isize
pub const fn velocity_modulation_amt_2(&self) -> isize
Returns the velocity modulation amount 2 of the sound.
Range: -127..=128
sourcepub const fn velocity_modulation_target_2(&self) -> SoundModTarget
pub const fn velocity_modulation_target_2(&self) -> SoundModTarget
Returns the velocity modulation target 2 of the sound.
sourcepub const fn velocity_modulation_amt_3(&self) -> isize
pub const fn velocity_modulation_amt_3(&self) -> isize
Returns the velocity modulation amount 3 of the sound.
Range: -127..=128
sourcepub const fn velocity_modulation_target_3(&self) -> SoundModTarget
pub const fn velocity_modulation_target_3(&self) -> SoundModTarget
Returns the velocity modulation target 3 of the sound.
sourcepub const fn velocity_modulation_amt_4(&self) -> isize
pub const fn velocity_modulation_amt_4(&self) -> isize
Returns the velocity modulation amount 4 of the sound
Range: -127..=128
sourcepub const fn velocity_modulation_target_4(&self) -> SoundModTarget
pub const fn velocity_modulation_target_4(&self) -> SoundModTarget
Returns the velocity modulation target 4 of the sound.
sourcepub const fn after_touch_modulation_amt_1(&self) -> isize
pub const fn after_touch_modulation_amt_1(&self) -> isize
Returns the after touch modulation amount 1 of the sound.
Range: -127..=128
sourcepub const fn after_touch_modulation_target_1(&self) -> SoundModTarget
pub const fn after_touch_modulation_target_1(&self) -> SoundModTarget
Returns the after touch modulation target 1 of the sound.
sourcepub const fn after_touch_modulation_amt_2(&self) -> isize
pub const fn after_touch_modulation_amt_2(&self) -> isize
Returns the after touch modulation amount 2 of the sound.
Range: -127..=128
sourcepub const fn after_touch_modulation_target_2(&self) -> SoundModTarget
pub const fn after_touch_modulation_target_2(&self) -> SoundModTarget
Returns the after touch modulation target 2 of the sound.
sourcepub const fn after_touch_modulation_amt_3(&self) -> isize
pub const fn after_touch_modulation_amt_3(&self) -> isize
Returns the after touch modulation amount 3 of the sound.
Range: -127..=128
sourcepub const fn after_touch_modulation_target_3(&self) -> SoundModTarget
pub const fn after_touch_modulation_target_3(&self) -> SoundModTarget
Returns the after touch modulation target 3 of the sound.
sourcepub const fn after_touch_modulation_amt_4(&self) -> isize
pub const fn after_touch_modulation_amt_4(&self) -> isize
Returns the after touch modulation amount 4 of the sound.
Range: -127..=128
sourcepub const fn after_touch_modulation_target_4(&self) -> SoundModTarget
pub const fn after_touch_modulation_target_4(&self) -> SoundModTarget
Returns the after touch modulation target 4 of the sound.
pub fn try_default_for_track(track_index: usize) -> Result<Self, RytmError>
Trait Implementations§
source§impl Clone for SoundSettings
impl Clone for SoundSettings
source§fn clone(&self) -> SoundSettings
fn clone(&self) -> SoundSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SoundSettings
impl Debug for SoundSettings
source§impl Default for SoundSettings
impl Default for SoundSettings
source§impl<'de> Deserialize<'de> for SoundSettings
impl<'de> Deserialize<'de> for SoundSettings
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 Hash for SoundSettings
impl Hash for SoundSettings
source§impl Ord for SoundSettings
impl Ord for SoundSettings
source§fn cmp(&self, other: &SoundSettings) -> Ordering
fn cmp(&self, other: &SoundSettings) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SoundSettings
impl PartialEq for SoundSettings
source§fn eq(&self, other: &SoundSettings) -> bool
fn eq(&self, other: &SoundSettings) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SoundSettings
impl PartialOrd for SoundSettings
source§fn partial_cmp(&self, other: &SoundSettings) -> Option<Ordering>
fn partial_cmp(&self, other: &SoundSettings) -> Option<Ordering>
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