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

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

#include <src/dsp/midi_event.h>

Collaboration diagram for zrythm::dsp::MidiEvents:

Public Member Functions

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

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 439 of file midi_event.h.

Member Function Documentation

◆ dequeue()

void zrythm::dsp::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.

Field Documentation

◆ active_events_

MidiEventVector zrythm::dsp::MidiEvents::active_events_

Events to use in this cycle.

Definition at line 452 of file midi_event.h.

◆ queued_events_

MidiEventVector zrythm::dsp::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 461 of file midi_event.h.


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