Struct xsynth_core::soundfont::EnvelopeOptions
source · pub struct EnvelopeOptions {
pub attack_curve: EnvelopeCurveType,
pub decay_curve: EnvelopeCurveType,
pub release_curve: EnvelopeCurveType,
}
Expand description
Options for the curves of a specific envelope.
Fields§
§attack_curve: EnvelopeCurveType
Controls the type of curve of the attack envelope stage. See the
documentation of the EnvelopeCurveType
enum for available options.
Default: Exponential
decay_curve: EnvelopeCurveType
Controls the type of curve of the decay envelope stage. See the
documentation of the EnvelopeCurveType
enum for available options.
Default: Linear
release_curve: EnvelopeCurveType
Controls the type of curve of the release envelope stage. See the
documentation of the EnvelopeCurveType
enum for available options.
Default: Linear
Trait Implementations§
source§impl Clone for EnvelopeOptions
impl Clone for EnvelopeOptions
source§fn clone(&self) -> EnvelopeOptions
fn clone(&self) -> EnvelopeOptions
Returns a copy 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 EnvelopeOptions
impl Debug for EnvelopeOptions
source§impl Default for EnvelopeOptions
impl Default for EnvelopeOptions
source§impl PartialEq for EnvelopeOptions
impl PartialEq for EnvelopeOptions
impl Copy for EnvelopeOptions
impl StructuralPartialEq for EnvelopeOptions
Auto Trait Implementations§
impl Freeze for EnvelopeOptions
impl RefUnwindSafe for EnvelopeOptions
impl Send for EnvelopeOptions
impl Sync for EnvelopeOptions
impl Unpin for EnvelopeOptions
impl UnwindSafe for EnvelopeOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)