Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
MidiEventOutput

#include "midievent.hh"

Public Member Functions

voidappend (int16_t frame, const MidiEvent &event)
boolappend_unsorted (int16_t frame, const MidiEvent &event)
const MidiEvent *begin () const noexcept
size_tcapacity () const noexcept
voidclear () noexcept
boolempty () const noexcept
const MidiEvent *end () const noexcept
voidensure_order ()
int64_tlast_frame () const ASE_PURE
MidiEventOutput ()
voidreserve (size_t n)
size_tsize () const noexcept
std::vector< MidiEvent > const &vector ()

Detailed Description

A stream of writable MidiEvent structures.

Constructor & Destructor Documentation

MidiEventOutput()

MidiEventOutput ( )
explicit

Member Function Documentation

append()

void append ( int16_t frame,
const MidiEvent & event
)

Append an MidiEvent with conscutive `frame` time stamp.

begin()

const MidiEvent * begin ( ) const
noexcept

end()

const MidiEvent * end ( ) const
noexcept

size()

size_t size ( ) const
noexcept

empty()

bool empty ( ) const
noexcept

clear()

void clear ( )
noexcept

append_unsorted()

bool 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.

ensure_order()

void ensure_order ( )

Fix event order after append_unsorted() returned `true`.

last_frame()

int64_t last_frame ( ) const

Fetch the latest event stamp, can be used to enforce order.

capacity()

size_t capacity ( ) const
noexcept

reserve()

void reserve ( size_t n)

vector()

std::vector< MidiEvent > const & vector ( )