pub struct NodeExecContext {
pub midi_notes: Vec<HxTimedEvent>,
pub midi_ccs: Vec<HxTimedEvent>,
pub ext_param: Option<Arc<dyn ExternalParams>>,
}
Expand description
Contains global state that all nodes can access. This is used for instance to implement the MIDI functionality or the external parameters for the HexoSynth plugin. Can also be used by other components outside HexoDSP on the audio thread to send MIDI and provide external parameters.
Fields
midi_notes: Vec<HxTimedEvent>
List of current MIDI note events that were passed into HexoDSP in this buffer period.
midi_ccs: Vec<HxTimedEvent>
List of current MIDI CC events that were passed into HexoDSP in this buffer period.
ext_param: Option<Arc<dyn ExternalParams>>
Handle to the external parameters, external meaning parameters that come in via eg. the plugin API or are provided elsewhere on the audio thread.
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NodeExecContext
impl Send for NodeExecContext
impl Sync for NodeExecContext
impl Unpin for NodeExecContext
impl !UnwindSafe for NodeExecContext
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