pub struct GateSignal { /* private fields */ }
Expand description
Gate signal generator for HexoDSP nodes.
This generator generates a gate signal when GateSignal::trigger is called. The length is given as parameter to GateSignal::next.
Implementations§
Source§impl GateSignal
impl GateSignal
Sourcepub fn set_sample_rate(&mut self, srate: f32)
pub fn set_sample_rate(&mut self, srate: f32)
Set the sample rate
Sourcepub fn trigger(&mut self)
pub fn trigger(&mut self)
Start a new gate the next time TrigSignal::next is called.
Trait Implementations§
Source§impl Clone for GateSignal
impl Clone for GateSignal
Source§fn clone(&self) -> GateSignal
fn clone(&self) -> GateSignal
Returns a duplicate 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 GateSignal
impl Debug for GateSignal
Source§impl Default for GateSignal
impl Default for GateSignal
impl Copy for GateSignal
Auto Trait Implementations§
impl Freeze for GateSignal
impl RefUnwindSafe for GateSignal
impl Send for GateSignal
impl Sync for GateSignal
impl Unpin for GateSignal
impl UnwindSafe for GateSignal
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