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

#include <MidiEvent.h>

Inheritance diagram for smf::MidiEvent:
Inheritance graph
Collaboration diagram for smf::MidiEvent:
Collaboration graph

Public Member Functions

 MidiEvent (void)
 
 MidiEvent (int command)
 
 MidiEvent (int command, int param1)
 
 MidiEvent (int command, int param1, int param2)
 
 MidiEvent (const MidiMessage &message)
 
 MidiEvent (const MidiEvent &mfevent)
 
 MidiEvent (int aTime, int aTrack, std::vector< uchar > &message)
 
 ~MidiEvent ()
 
MidiEventoperator= (const MidiEvent &mfevent)
 
MidiEventoperator= (const MidiMessage &message)
 
MidiEventoperator= (const std::vector< uchar > &bytes)
 
MidiEventoperator= (const std::vector< char > &bytes)
 
MidiEventoperator= (const std::vector< int > &bytes)
 
MidiEventoperator= (const std::initializer_list< int > &list)
 
void clearVariables (void)
 
void unlinkEvent (void)
 
void unlinkEvents (void)
 
void linkEvent (MidiEvent *mev)
 
void linkEvents (MidiEvent *mev)
 
void linkEvent (MidiEvent &mev)
 
void linkEvents (MidiEvent &mev)
 
int isLinked (void) const
 
int hasLink (void) const
 
MidiEventgetLinkedEvent (void)
 
const MidiEventgetLinkedEvent (void) const
 
int getTickDuration (void) const
 
double getDurationInSeconds (void) const
 
- Public Member Functions inherited from smf::MidiMessage
 MidiMessage (void)
 
 MidiMessage (int command)
 
 MidiMessage (int command, int p1)
 
 MidiMessage (int command, int p1, int p2)
 
 MidiMessage (const MidiMessage &message)
 
 MidiMessage (const std::vector< uchar > &message)
 
 MidiMessage (const std::vector< char > &message)
 
 MidiMessage (const std::vector< int > &message)
 
 ~MidiMessage ()
 
MidiMessageoperator= (const MidiMessage &message)
 
MidiMessageoperator= (const std::vector< uchar > &bytes)
 
MidiMessageoperator= (const std::vector< char > &bytes)
 
MidiMessageoperator= (const std::vector< int > &bytes)
 
MidiMessageoperator= (const std::initializer_list< int > &list)
 
void sortTrack (void)
 
void sortTrackWithSequence (void)
 
int getP0 (void) const
 
int getP1 (void) const
 
int getP2 (void) const
 
int getP3 (void) const
 
void setP0 (int value)
 
void setP1 (int value)
 
void setP2 (int value)
 
void setP3 (int value)
 
int getSize (void) const
 
void setSize (int asize)
 
int setSizeToCommand (void)
 
int resizeToCommand (void)
 
int getKeyNumber (void) const
 
int getVelocity (void) const
 
void setKeyNumber (int value)
 
void setVelocity (int value)
 
void setSpelling (int base7, int accidental)
 
void getSpelling (int &base7, int &accidental)
 
int getControllerNumber (void) const
 
int getControllerValue (void) const
 
int getCommandNibble (void) const
 
int getCommandByte (void) const
 
int getChannelNibble (void) const
 
int getChannel (void) const
 
void setCommandByte (int value)
 
void setCommand (int value)
 
void setCommand (int value, int p1)
 
void setCommand (int value, int p1, int p2)
 
void setCommandNibble (int value)
 
void setChannelNibble (int value)
 
void setChannel (int value)
 
void setParameters (int p1, int p2)
 
void setParameters (int p1)
 
void setMessage (const std::vector< uchar > &message)
 
void setMessage (const std::vector< char > &message)
 
void setMessage (const std::vector< int > &message)
 
bool isMetaMessage (void) const
 
bool isMeta (void) const
 
bool isNote (void) const
 
bool isNoteOff (void) const
 
bool isNoteOn (void) const
 
bool isAftertouch (void) const
 
bool isController (void) const
 
bool isSustain (void) const
 
bool isSustainOn (void) const
 
bool isSustainOff (void) const
 
bool isSoft (void) const
 
bool isSoftOn (void) const
 
bool isSoftOff (void) const
 
bool isPatchChange (void) const
 
bool isTimbre (void) const
 
bool isPressure (void) const
 
bool isPitchbend (void) const
 
bool isEmpty (void) const
 
void makeNoteOn (int channel, int key, int velocity)
 
void makeNoteOff (int channel, int key, int velocity)
 
void makeNoteOff (int channel, int key)
 
void makeNoteOff (void)
 
void makePatchChange (int channel, int patchnum)
 
void makeTimbre (int channel, int patchnum)
 
void makeController (int channel, int num, int value)
 
void makePitchBend (int channel, int lsb, int msb)
 
void makePitchBend (int channel, int value)
 
void makePitchBendDouble (int channel, double value)
 
void makePitchbend (int channel, int lsb, int msb)
 
void makePitchbend (int channel, int value)
 
void makePitchbendDouble (int channel, double value)
 
void makeSustain (int channel, int value)
 
void makeSustainPedal (int channel, int value)
 
void makeSustainOn (int channel)
 
void makeSustainPedalOn (int channel)
 
void makeSustainOff (int channel)
 
void makeSustainPedalOff (int channel)
 
void makeMetaMessage (int mnum, const std::string &data)
 
void makeText (const std::string &name)
 
void makeCopyright (const std::string &text)
 
void makeTrackName (const std::string &name)
 
void makeInstrumentName (const std::string &name)
 
void makeLyric (const std::string &text)
 
void makeMarker (const std::string &text)
 
void makeCue (const std::string &text)
 
void makeKeySignature (int fifths, bool mode=0)
 
void makeTimeSignature (int top, int bottom, int clocksPerClick=24, int num32dsPerQuarter=8)
 
void makeTempo (double tempo)
 
int getTempoMicro (void) const
 
int getTempoMicroseconds (void) const
 
double getTempoSeconds (void) const
 
double getTempoBPM (void) const
 
double getTempoTPS (int tpq) const
 
double getTempoSPT (int tpq) const
 
int getMetaType (void) const
 
bool isText (void) const
 
bool isCopyright (void) const
 
bool isTrackName (void) const
 
bool isInstrumentName (void) const
 
bool isLyricText (void) const
 
bool isMarkerText (void) const
 
bool isTempo (void) const
 
bool isTimeSignature (void) const
 
bool isKeySignature (void) const
 
bool isEndOfTrack (void) const
 
std::string getMetaContent (void) const
 
void setMetaContent (const std::string &content)
 
void setTempo (double tempo)
 
void setTempoMicroseconds (int microseconds)
 
void setMetaTempo (double tempo)
 
void makeSysExMessage (const std::vector< uchar > &data)
 
void makeMts2_KeyTuningByFrequency (int key, double frequency, int program=0)
 
void makeMts2_KeyTuningsByFrequency (int key, double frequency, int program=0)
 
void makeMts2_KeyTuningsByFrequency (std::vector< std::pair< int, double > > &mapping, int program=0)
 
void makeMts2_KeyTuningBySemitone (int key, double semitone, int program=0)
 
void makeMts2_KeyTuningsBySemitone (int key, double semitone, int program=0)
 
void makeMts2_KeyTuningsBySemitone (std::vector< std::pair< int, double > > &mapping, int program=0)
 
void makeMts9_TemperamentByCentsDeviationFromET (std::vector< double > &mapping, int referencePitchClass=0, int channelMask=0b1111111111111111)
 
void makeTemperamentEqual (int referencePitchClass=0, int channelMask=0b1111111111111111)
 
void makeTemperamentBad (double maxDeviationCents=100.0, int referencePitchClass=0, int channelMask=0b1111111111111111)
 
void makeTemperamentPythagorean (int referencePitchClass=2, int channelMask=0b1111111111111111)
 
void makeTemperamentMeantone (double fraction=0.25, int referencePitchClass=2, int channelMask=0b1111111111111111)
 
void makeTemperamentMeantoneCommaQuarter (int referencePitchClass=2, int channelMask=0b1111111111111111)
 
void makeTemperamentMeantoneCommaThird (int referencePitchClass=2, int channelMask=0b1111111111111111)
 
void makeTemperamentMeantoneCommaHalf (int referencePitchClass=2, int channelMask=0b1111111111111111)
 

Public Attributes

int tick
 
int track
 
double seconds
 
int seq
 

Private Attributes

MidiEventm_eventlink
 

Additional Inherited Members

- Static Public Member Functions inherited from smf::MidiMessage
static std::vector< ucharintToVlv (int value)
 
static double frequencyToSemitones (double frequency, double a4frequency=440.0)
 

Constructor & Destructor Documentation

◆ MidiEvent() [1/7]

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

◆ MidiEvent() [2/7]

smf::MidiEvent::MidiEvent ( int  command)
Here is the call graph for this function:

◆ MidiEvent() [3/7]

smf::MidiEvent::MidiEvent ( int  command,
int  param1 
)
Here is the call graph for this function:

◆ MidiEvent() [4/7]

smf::MidiEvent::MidiEvent ( int  command,
int  param1,
int  param2 
)
Here is the call graph for this function:

◆ MidiEvent() [5/7]

smf::MidiEvent::MidiEvent ( const MidiMessage message)

◆ MidiEvent() [6/7]

smf::MidiEvent::MidiEvent ( const MidiEvent mfevent)

◆ MidiEvent() [7/7]

smf::MidiEvent::MidiEvent ( int  aTime,
int  aTrack,
std::vector< uchar > &  message 
)

◆ ~MidiEvent()

smf::MidiEvent::~MidiEvent ( )

Member Function Documentation

◆ clearVariables()

void smf::MidiEvent::clearVariables ( void  )
Here is the caller graph for this function:

◆ getDurationInSeconds()

double smf::MidiEvent::getDurationInSeconds ( void  ) const
Here is the call graph for this function:

◆ getLinkedEvent() [1/2]

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

◆ getLinkedEvent() [2/2]

const MidiEvent * smf::MidiEvent::getLinkedEvent ( void  ) const

◆ getTickDuration()

int smf::MidiEvent::getTickDuration ( void  ) const
Here is the call graph for this function:

◆ hasLink()

int smf::MidiEvent::hasLink ( void  ) const
inline
Here is the call graph for this function:

◆ isLinked()

int smf::MidiEvent::isLinked ( void  ) const
Here is the caller graph for this function:

◆ linkEvent() [1/2]

void smf::MidiEvent::linkEvent ( MidiEvent mev)
Here is the call graph for this function:

◆ linkEvent() [2/2]

void smf::MidiEvent::linkEvent ( MidiEvent mev)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ linkEvents() [1/2]

void smf::MidiEvent::linkEvents ( MidiEvent mev)

◆ linkEvents() [2/2]

void smf::MidiEvent::linkEvents ( MidiEvent mev)

◆ operator=() [1/6]

MidiEvent & smf::MidiEvent::operator= ( const MidiEvent mfevent)

◆ operator=() [2/6]

MidiEvent & smf::MidiEvent::operator= ( const MidiMessage message)
Here is the call graph for this function:

◆ operator=() [3/6]

MidiEvent & smf::MidiEvent::operator= ( const std::initializer_list< int > &  list)
Here is the call graph for this function:

◆ operator=() [4/6]

MidiEvent & smf::MidiEvent::operator= ( const std::vector< char > &  bytes)

◆ operator=() [5/6]

MidiEvent & smf::MidiEvent::operator= ( const std::vector< int > &  bytes)

◆ operator=() [6/6]

MidiEvent & smf::MidiEvent::operator= ( const std::vector< uchar > &  bytes)

◆ unlinkEvent()

void smf::MidiEvent::unlinkEvent ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unlinkEvents()

void smf::MidiEvent::unlinkEvents ( void  )

Member Data Documentation

◆ m_eventlink

MidiEvent* smf::MidiEvent::m_eventlink
private

◆ seconds

double smf::MidiEvent::seconds

◆ seq

int smf::MidiEvent::seq

◆ tick

int smf::MidiEvent::tick

◆ track

int smf::MidiEvent::track

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