Struct synfx_dsp::TrigSignal
source · [−]pub struct TrigSignal { /* private fields */ }
Expand description
Trigger signal generator for HexoDSP nodes.
A trigger in HexoSynth and HexoDSP is commonly 2.0 milliseconds. This generator generates a trigger signal when TrigSignal::trigger is called.
Implementations
sourceimpl TrigSignal
impl TrigSignal
sourcepub fn set_sample_rate(&mut self, srate: f32)
pub fn set_sample_rate(&mut self, srate: f32)
Set the sample rate to calculate the amount of samples for the trigger signal.
sourcepub fn trigger(&mut self)
pub fn trigger(&mut self)
Enable sending a trigger impulse the next time TrigSignal::next is called.
Trait Implementations
sourceimpl Clone for TrigSignal
impl Clone for TrigSignal
sourcefn clone(&self) -> TrigSignal
fn clone(&self) -> TrigSignal
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 TrigSignal
impl Debug for TrigSignal
sourceimpl Default for TrigSignal
impl Default for TrigSignal
impl Copy for TrigSignal
Auto Trait Implementations
impl RefUnwindSafe for TrigSignal
impl Send for TrigSignal
impl Sync for TrigSignal
impl Unpin for TrigSignal
impl UnwindSafe for TrigSignal
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