Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
MidiEvents Class Referencefinal

Container for passing midi events through ports. More...

#include <src/gui/dsp/midi_event.h>

Collaboration diagram for MidiEvents:

Public Member Functions

void dequeue (nframes_t local_offset, nframes_t nframes)
 Copies the queue contents to the original struct.
 

Static Public Member Functions

static void panic_all ()
 Queues MIDI note off to event queues.
 

Data Fields

MidiEventVector active_events_
 Events to use in this cycle.
 
MidiEventVector queued_events_
 For queueing events from the GUI or from hardware, since they run in different threads.
 

Detailed Description

Container for passing midi events through ports.

This should be passed in the data field of MIDI Ports.

Definition at line 442 of file midi_event.h.

Member Function Documentation

◆ dequeue()

void MidiEvents::dequeue ( nframes_t local_offset,
nframes_t nframes )

Copies the queue contents to the original struct.

Parameters
local_offsetThe start frame offset from 0 in this cycle.
nframesNumber of frames to process.

◆ panic_all()

static void MidiEvents::panic_all ( )
static

Queues MIDI note off to event queues.

Note
This pushes the events to the queued events, not the active events.

Field Documentation

◆ active_events_

MidiEventVector MidiEvents::active_events_

Events to use in this cycle.

Definition at line 465 of file midi_event.h.

◆ queued_events_

MidiEventVector MidiEvents::queued_events_

For queueing events from the GUI or from hardware, since they run in different threads.

Engine will copy them to the unqueued MIDI events when ready to be processed.

Definition at line 474 of file midi_event.h.


The documentation for this class was generated from the following file: