pub struct DynNode1x1Context {
nframes: usize,
alpha: ProcBuf,
beta: ProcBuf,
gamma: ProcBuf,
delta: ProcBuf,
led_value: Arc<AtomicFloat>,
phase_value: Arc<AtomicFloat>,
}
Expand description
A context structure for supporting the DynamicNode1x1::process function.
It provides access to the input slices of the alpha
, beta
, gamma
and delta
values. And to the LED and phase values, which are basically two AtomicFloat
values that you can read out in the frontend thread using the crate::SynthConstructor
or crate::NodeConfigurator API.
Fields
nframes: usize
alpha: ProcBuf
beta: ProcBuf
gamma: ProcBuf
delta: ProcBuf
led_value: Arc<AtomicFloat>
phase_value: Arc<AtomicFloat>
Implementations
sourceimpl DynNode1x1Context
impl DynNode1x1Context
pub fn alpha_slice(&self) -> &[f32]
pub fn beta_slice(&self) -> &[f32]
pub fn gamma_slice(&self) -> &[f32]
pub fn delta_slice(&self) -> &[f32]
pub fn led_value(&self) -> &Arc<AtomicFloat>
pub fn phase_value(&self) -> &Arc<AtomicFloat>
Auto Trait Implementations
impl RefUnwindSafe for DynNode1x1Context
impl Send for DynNode1x1Context
impl Sync for DynNode1x1Context
impl Unpin for DynNode1x1Context
impl UnwindSafe for DynNode1x1Context
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