Class Ase::MidiEventOutput
ClassList > Ase > MidiEventOutput
A stream of writable MidiEvent structures.
#include <midievent.hh>
Public Functions
Type | Name |
---|---|
MidiEventOutput () |
|
void | append (int16_t frame, const MidiEvent & event) Append an MidiEvent with conscutive frame time stamp. |
bool | append_unsorted (int16_t frame, const MidiEvent & event) |
const MidiEvent * | begin () noexcept const |
size_t | capacity () noexcept const |
void | clear () noexcept |
bool | empty () noexcept const |
const MidiEvent * | end () noexcept const |
void | ensure_order () Fix event order after append_unsorted() returned true . |
int64_t | last_frame () const Fetch the latest event stamp, can be used to enforce order. |
void | reserve (size_t n) |
size_t | size () noexcept const |
std::vector< MidiEvent > const & | vector () |
Public Functions Documentation
function MidiEventOutput
explicit Ase::MidiEventOutput::MidiEventOutput ()
function append
void Ase::MidiEventOutput::append (
int16_t frame,
const MidiEvent & event
)
function append_unsorted
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.
function begin
inline const MidiEvent * Ase::MidiEventOutput::begin () noexcept const
function capacity
inline size_t Ase::MidiEventOutput::capacity () noexcept const
function clear
inline void Ase::MidiEventOutput::clear () noexcept
function empty
inline bool Ase::MidiEventOutput::empty () noexcept const
function end
inline const MidiEvent * Ase::MidiEventOutput::end () noexcept const
function ensure_order
void Ase::MidiEventOutput::ensure_order ()
function last_frame
int64_t Ase::MidiEventOutput::last_frame () const
function reserve
inline void Ase::MidiEventOutput::reserve (
size_t n
)
function size
inline size_t Ase::MidiEventOutput::size () noexcept const
function vector
inline std::vector< MidiEvent > const & Ase::MidiEventOutput::vector ()
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/midievent.hh