#[non_exhaustive]pub struct PresetRegion { /* private fields */ }Expand description
Represents a preset region. A preset region indicates how the parameters of the instrument should be modified in the preset.
Implementations§
Source§impl PresetRegion
impl PresetRegion
Sourcepub fn contains(&self, key: i32, velocity: i32) -> bool
pub fn contains(&self, key: i32, velocity: i32) -> bool
Checks if the region covers the given key and velocity.
Returns true if the region covers the given key and velocity.
§Arguments
key- The key of a note.velocity- The velocity of a note.
pub fn get_modulation_lfo_to_pitch(&self) -> i32
pub fn get_vibrato_lfo_to_pitch(&self) -> i32
pub fn get_modulation_envelope_to_pitch(&self) -> i32
pub fn get_initial_filter_cutoff_frequency(&self) -> f32
pub fn get_initial_filter_q(&self) -> f32
pub fn get_modulation_lfo_to_filter_cutoff_frequency(&self) -> i32
pub fn get_modulation_envelope_to_filter_cutoff_frequency(&self) -> i32
pub fn get_modulation_lfo_to_volume(&self) -> f32
pub fn get_chorus_effects_send(&self) -> f32
pub fn get_reverb_effects_send(&self) -> f32
pub fn get_pan(&self) -> f32
pub fn get_delay_modulation_lfo(&self) -> f32
pub fn get_frequency_modulation_lfo(&self) -> f32
pub fn get_delay_vibrato_lfo(&self) -> f32
pub fn get_frequency_vibrato_lfo(&self) -> f32
pub fn get_delay_modulation_envelope(&self) -> f32
pub fn get_attack_modulation_envelope(&self) -> f32
pub fn get_hold_modulation_envelope(&self) -> f32
pub fn get_decay_modulation_envelope(&self) -> f32
pub fn get_sustain_modulation_envelope(&self) -> f32
pub fn get_release_modulation_envelope(&self) -> f32
pub fn get_key_number_to_modulation_envelope_hold(&self) -> i32
pub fn get_key_number_to_modulation_envelope_decay(&self) -> i32
pub fn get_delay_volume_envelope(&self) -> f32
pub fn get_attack_volume_envelope(&self) -> f32
pub fn get_hold_volume_envelope(&self) -> f32
pub fn get_decay_volume_envelope(&self) -> f32
pub fn get_sustain_volume_envelope(&self) -> f32
pub fn get_release_volume_envelope(&self) -> f32
pub fn get_key_number_to_volume_envelope_hold(&self) -> i32
pub fn get_key_number_to_volume_envelope_decay(&self) -> i32
pub fn get_key_range_start(&self) -> i32
pub fn get_key_range_end(&self) -> i32
pub fn get_velocity_range_start(&self) -> i32
pub fn get_velocity_range_end(&self) -> i32
pub fn get_initial_attenuation(&self) -> f32
pub fn get_coarse_tune(&self) -> i32
pub fn get_fine_tune(&self) -> i32
pub fn get_scale_tuning(&self) -> i32
pub fn get_instrument_id(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PresetRegion
impl RefUnwindSafe for PresetRegion
impl Send for PresetRegion
impl Sync for PresetRegion
impl Unpin for PresetRegion
impl UnwindSafe for PresetRegion
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