MIPI - Physical Interface for MIDI Files
Loading...
Searching...
No Matches
smf::MidiEventList Class Reference

#include <MidiEventList.h>

Collaboration diagram for smf::MidiEventList:
Collaboration graph

Public Member Functions

 MidiEventList (void)
 
 MidiEventList (const MidiEventList &other)
 
 MidiEventList (MidiEventList &&other)
 
 ~MidiEventList ()
 
MidiEventListoperator= (MidiEventList &other)
 
MidiEventoperator[] (int index)
 
const MidiEventoperator[] (int index) const
 
MidiEventat (int index)
 
const MidiEventat (int index) const
 
MidiEventback (void)
 
const MidiEventback (void) const
 
MidiEventlast (void)
 
const MidiEventlast (void) const
 
MidiEventgetEvent (int index)
 
const MidiEventgetEvent (int index) const
 
void clear (void)
 
void reserve (int rsize)
 
int getEventCount (void) const
 
int getSize (void) const
 
int size (void) const
 
void removeEmpties (void)
 
int linkNotePairsFIFO (void)
 
int linkNotePairsLIFO (void)
 
int linkNotePairs (void)
 
int linkEventPairs (void)
 
void clearLinks (void)
 
void clearSequence (void)
 
int markSequence (int sequence=1)
 
int push (MidiEvent &event)
 
int push_back (MidiEvent &event)
 
int append (MidiEvent &event)
 
void detach (void)
 
int push_back_no_copy (MidiEvent *event)
 
MidiEvent ** data (void)
 

Protected Attributes

std::vector< MidiEvent * > list
 

Private Member Functions

void sort (void)
 
void sortNoteOnsBeforeOffs (void)
 
void sortNoteOffsBeforeOns (void)
 

Static Private Member Functions

static int eventCompareNoteOffsBeforeOns (const void *a, const void *b)
 
static int eventCompareNoteOnsBeforeOffs (const void *a, const void *b)
 
static int eventCompare (const void *a, const void *b)
 

Friends

class MidiFile
 

Constructor & Destructor Documentation

◆ MidiEventList() [1/3]

smf::MidiEventList::MidiEventList ( void  )
Here is the call graph for this function:

◆ MidiEventList() [2/3]

smf::MidiEventList::MidiEventList ( const MidiEventList other)

◆ MidiEventList() [3/3]

smf::MidiEventList::MidiEventList ( MidiEventList &&  other)

◆ ~MidiEventList()

smf::MidiEventList::~MidiEventList ( )
Here is the call graph for this function:

Member Function Documentation

◆ append()

int smf::MidiEventList::append ( MidiEvent event)
Here is the caller graph for this function:

◆ at() [1/2]

MidiEvent & smf::MidiEventList::at ( int  index)

◆ at() [2/2]

const MidiEvent & smf::MidiEventList::at ( int  index) const

◆ back() [1/2]

MidiEvent & smf::MidiEventList::back ( void  )
Here is the caller graph for this function:

◆ back() [2/2]

const MidiEvent & smf::MidiEventList::back ( void  ) const

◆ clear()

void smf::MidiEventList::clear ( void  )
Here is the caller graph for this function:

◆ clearLinks()

void smf::MidiEventList::clearLinks ( void  )
Here is the call graph for this function:

◆ clearSequence()

void smf::MidiEventList::clearSequence ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ data()

MidiEvent ** smf::MidiEventList::data ( void  )
Here is the caller graph for this function:

◆ detach()

void smf::MidiEventList::detach ( void  )
Here is the caller graph for this function:

◆ eventCompare()

static int smf::MidiEventList::eventCompare ( const void *  a,
const void *  b 
)
inlinestaticprivate
Here is the call graph for this function:

◆ eventCompareNoteOffsBeforeOns()

int smf::MidiEventList::eventCompareNoteOffsBeforeOns ( const void *  a,
const void *  b 
)
staticprivate
Here is the call graph for this function:

◆ eventCompareNoteOnsBeforeOffs()

int smf::MidiEventList::eventCompareNoteOnsBeforeOffs ( const void *  a,
const void *  b 
)
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEvent() [1/2]

MidiEvent & smf::MidiEventList::getEvent ( int  index)
Here is the caller graph for this function:

◆ getEvent() [2/2]

const MidiEvent & smf::MidiEventList::getEvent ( int  index) const

◆ getEventCount()

int smf::MidiEventList::getEventCount ( void  ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSize()

int smf::MidiEventList::getSize ( void  ) const
Here is the caller graph for this function:

◆ last() [1/2]

MidiEvent & smf::MidiEventList::last ( void  )
Here is the call graph for this function:

◆ last() [2/2]

const MidiEvent & smf::MidiEventList::last ( void  ) const
Here is the call graph for this function:

◆ linkEventPairs()

int smf::MidiEventList::linkEventPairs ( void  )
Here is the call graph for this function:

◆ linkNotePairs()

int smf::MidiEventList::linkNotePairs ( void  )
inline
Here is the call graph for this function:

◆ linkNotePairsFIFO()

int smf::MidiEventList::linkNotePairsFIFO ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ linkNotePairsLIFO()

int smf::MidiEventList::linkNotePairsLIFO ( void  )
Here is the call graph for this function:

◆ markSequence()

int smf::MidiEventList::markSequence ( int  sequence = 1)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

MidiEventList & smf::MidiEventList::operator= ( MidiEventList other)

◆ operator[]() [1/2]

MidiEvent & smf::MidiEventList::operator[] ( int  index)

◆ operator[]() [2/2]

const MidiEvent & smf::MidiEventList::operator[] ( int  index) const

◆ push()

int smf::MidiEventList::push ( MidiEvent event)
Here is the call graph for this function:

◆ push_back()

int smf::MidiEventList::push_back ( MidiEvent event)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ push_back_no_copy()

int smf::MidiEventList::push_back_no_copy ( MidiEvent event)
Here is the caller graph for this function:

◆ removeEmpties()

void smf::MidiEventList::removeEmpties ( void  )

◆ reserve()

void smf::MidiEventList::reserve ( int  rsize)
Here is the caller graph for this function:

◆ size()

int smf::MidiEventList::size ( void  ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sort()

void smf::MidiEventList::sort ( void  )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sortNoteOffsBeforeOns()

void smf::MidiEventList::sortNoteOffsBeforeOns ( void  )
private
Here is the call graph for this function:

◆ sortNoteOnsBeforeOffs()

void smf::MidiEventList::sortNoteOnsBeforeOffs ( void  )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ MidiFile

friend class MidiFile
friend

Member Data Documentation

◆ list

std::vector<MidiEvent*> smf::MidiEventList::list
protected

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