Struct synfx_dsp::GateSignal
source · [−]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
sourceimpl 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
sourceimpl Clone for GateSignal
impl Clone for GateSignal
sourcefn clone(&self) -> GateSignal
fn clone(&self) -> GateSignal
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GateSignal
impl Debug for GateSignal
sourceimpl Default for GateSignal
impl Default for GateSignal
impl Copy for GateSignal
Auto Trait Implementations
impl RefUnwindSafe for GateSignal
impl Send for GateSignal
impl Sync for GateSignal
impl Unpin for GateSignal
impl UnwindSafe for GateSignal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more