pub(crate) struct SharedNodeExec {
pub(crate) node_ctx_values: Vec<Arc<AtomicFloat>>,
pub(crate) graph_update_con: Consumer<GraphMessage>,
pub(crate) graph_drop_prod: Producer<DropMsg>,
pub(crate) graph_event_prod: Producer<GraphEvent>,
pub(crate) monitor_backend: MonitorBackend,
pub(crate) sample_rate: Arc<AtomicFloat>,
}
Expand description
Contains anything that connects the NodeExecutor with the frontend part.
Fields
node_ctx_values: Vec<Arc<AtomicFloat>>
Holds two context values interleaved. The first for each node is the LED value and the second is a phase value. The LED will be displayed in the hex matrix, while the phase might be used to display an envelope’s play position.
graph_update_con: Consumer<GraphMessage>
For receiving Node and NodeProg updates
graph_drop_prod: Producer<DropMsg>
For receiving deleted/overwritten nodes from the backend thread.
graph_event_prod: Producer<GraphEvent>
For sending events from the DSP graph to the frontend. Such as MIDI events for the MIDI learn functionality.
monitor_backend: MonitorBackend
For sending feedback to the frontend thread.
sample_rate: Arc<AtomicFloat>
The current sample rate of the backend
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more