Ase::MidiEventOutput class

A stream of writable MidiEvent structures.

Public functions

void append(int16_t frame, const MidiEvent& event)
Append an MidiEvent with conscutive frame time stamp.
auto append_unsorted(int16_t frame, const MidiEvent& event) →  bool
void ensure_order()
Fix event order after append_unsorted() returned true.
auto last_frame() const ASE_PURE -> int64_t
Fetch the latest event stamp, can be used to enforce order.

Function documentation

bool Ase::MidiEventOutput::append_unsorted(int16_t frame, const MidiEvent& event)

Dangerous! Append a MidiEvent while ignoring sort order, violates constraints. Returns if ensure_order() must be called due to adding an out-of-order event.