Enum Note Expression
pub enum NoteExpression {
Volume,
Pan,
Tuning,
Vibrato,
Expression,
Brightness,
Pressure,
}Expand description
Standard voice-expression units. Values replace the preceding expression; receiver DSP owns application relative to its voice defaults and smoothing.
Variants§
Volume
Linear volume multiplier, 0..=4. Zero explicitly mutes the voice. Backends with a narrower range, including CLAP’s positive-only volume, reject unrepresentable values rather than clamp them.
Pan
0 left, 0.5 center, 1 right.
Tuning
Relative equal-tempered semitones, -120..=120.
Vibrato
Expression
Brightness
Pressure
Implementations§
§impl NoteExpression
impl NoteExpression
pub fn is_valid_value(self, value: f64) -> bool
pub fn is_valid_value(self, value: f64) -> bool
Standard finite range; vibrato/expression/brightness/pressure use 0..=1.
Trait Implementations§
§impl Clone for NoteExpression
impl Clone for NoteExpression
§fn clone(&self) -> NoteExpression
fn clone(&self) -> NoteExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoteExpression
§impl Debug for NoteExpression
impl Debug for NoteExpression
impl Eq for NoteExpression
§impl PartialEq for NoteExpression
impl PartialEq for NoteExpression
impl StructuralPartialEq for NoteExpression
Auto Trait Implementations§
impl Freeze for NoteExpression
impl RefUnwindSafe for NoteExpression
impl Send for NoteExpression
impl Sync for NoteExpression
impl Unpin for NoteExpression
impl UnsafeUnpin for NoteExpression
impl UnwindSafe for NoteExpression
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more