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

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.