Struct Voice
pub struct Voice {
pub note: Option<NoteKey>,
pub phase: VoicePhase,
pub velocity: f32,
pub release_velocity: f32,
pub expression: Expression,
/* private fields */
}Expand description
One slot’s state. The DSP owner calls finish after its release envelope ends.
Fields§
§note: Option<NoteKey>§phase: VoicePhase§velocity: f32§release_velocity: f32§expression: ExpressionImplementations§
§impl Voice
impl Voice
pub fn sostenuto_held(&self) -> bool
pub fn sostenuto_held(&self) -> bool
Whether CC66 captured this note on its off-to-on transition. The latch remains while its pedal is on, including after note-off; later notes are not captured. Finishing, stealing, killing or resetting clears it.
Trait Implementations§
impl Copy for Voice
impl StructuralPartialEq for Voice
Auto Trait Implementations§
impl Freeze for Voice
impl RefUnwindSafe for Voice
impl Send for Voice
impl Sync for Voice
impl Unpin for Voice
impl UnsafeUnpin for Voice
impl UnwindSafe for Voice
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