![]() |
MIPI - Physical Interface for MIDI Files
|
#include <MidiMessage.h>


Public Member Functions | |
| 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 () | |
| MidiMessage & | operator= (const MidiMessage &message) |
| MidiMessage & | operator= (const std::vector< uchar > &bytes) |
| MidiMessage & | operator= (const std::vector< char > &bytes) |
| MidiMessage & | operator= (const std::vector< int > &bytes) |
| MidiMessage & | operator= (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) |
Static Public Member Functions | |
| static std::vector< uchar > | intToVlv (int value) |
| static double | frequencyToSemitones (double frequency, double a4frequency=440.0) |
| smf::MidiMessage::MidiMessage | ( | void | ) |
| smf::MidiMessage::MidiMessage | ( | int | command | ) |
| smf::MidiMessage::MidiMessage | ( | int | command, |
| int | p1 | ||
| ) |
| smf::MidiMessage::MidiMessage | ( | int | command, |
| int | p1, | ||
| int | p2 | ||
| ) |
| smf::MidiMessage::MidiMessage | ( | const MidiMessage & | message | ) |
| smf::MidiMessage::MidiMessage | ( | const std::vector< uchar > & | message | ) |

| smf::MidiMessage::MidiMessage | ( | const std::vector< char > & | message | ) |

| smf::MidiMessage::MidiMessage | ( | const std::vector< int > & | message | ) |

| smf::MidiMessage::~MidiMessage | ( | ) |
|
static |

| int smf::MidiMessage::getChannel | ( | void | ) | const |


| int smf::MidiMessage::getChannelNibble | ( | void | ) | const |

| int smf::MidiMessage::getCommandByte | ( | void | ) | const |
| int smf::MidiMessage::getCommandNibble | ( | void | ) | const |

| int smf::MidiMessage::getControllerNumber | ( | void | ) | const |

| int smf::MidiMessage::getControllerValue | ( | void | ) | const |

| int smf::MidiMessage::getKeyNumber | ( | void | ) | const |


| std::string smf::MidiMessage::getMetaContent | ( | void | ) | const |

| int smf::MidiMessage::getMetaType | ( | void | ) | const |


| int smf::MidiMessage::getP0 | ( | void | ) | const |

| int smf::MidiMessage::getP1 | ( | void | ) | const |

| int smf::MidiMessage::getP2 | ( | void | ) | const |

| int smf::MidiMessage::getP3 | ( | void | ) | const |
| int smf::MidiMessage::getSize | ( | void | ) | const |

| void smf::MidiMessage::getSpelling | ( | int & | base7, |
| int & | accidental | ||
| ) |

| double smf::MidiMessage::getTempoBPM | ( | void | ) | const |

| int smf::MidiMessage::getTempoMicro | ( | void | ) | const |


| int smf::MidiMessage::getTempoMicroseconds | ( | void | ) | const |


| double smf::MidiMessage::getTempoSeconds | ( | void | ) | const |

| double smf::MidiMessage::getTempoSPT | ( | int | tpq | ) | const |


| double smf::MidiMessage::getTempoTPS | ( | int | tpq | ) | const |

| int smf::MidiMessage::getVelocity | ( | void | ) | const |


|
static |

| bool smf::MidiMessage::isAftertouch | ( | void | ) | const |

| bool smf::MidiMessage::isController | ( | void | ) | const |

| bool smf::MidiMessage::isCopyright | ( | void | ) | const |

| bool smf::MidiMessage::isEmpty | ( | void | ) | const |
| bool smf::MidiMessage::isEndOfTrack | ( | void | ) | const |


| bool smf::MidiMessage::isInstrumentName | ( | void | ) | const |

| bool smf::MidiMessage::isKeySignature | ( | void | ) | const |

| bool smf::MidiMessage::isLyricText | ( | void | ) | const |

| bool smf::MidiMessage::isMarkerText | ( | void | ) | const |

| bool smf::MidiMessage::isMeta | ( | void | ) | const |

| bool smf::MidiMessage::isMetaMessage | ( | void | ) | const |


| bool smf::MidiMessage::isNote | ( | void | ) | const |


| bool smf::MidiMessage::isNoteOff | ( | void | ) | const |

| bool smf::MidiMessage::isNoteOn | ( | void | ) | const |

| bool smf::MidiMessage::isPatchChange | ( | void | ) | const |

| bool smf::MidiMessage::isPitchbend | ( | void | ) | const |
| bool smf::MidiMessage::isPressure | ( | void | ) | const |
| bool smf::MidiMessage::isSoft | ( | void | ) | const |


| bool smf::MidiMessage::isSoftOff | ( | void | ) | const |

| bool smf::MidiMessage::isSoftOn | ( | void | ) | const |

| bool smf::MidiMessage::isSustain | ( | void | ) | const |


| bool smf::MidiMessage::isSustainOff | ( | void | ) | const |

| bool smf::MidiMessage::isSustainOn | ( | void | ) | const |

| bool smf::MidiMessage::isTempo | ( | void | ) | const |


| bool smf::MidiMessage::isText | ( | void | ) | const |

| bool smf::MidiMessage::isTimbre | ( | void | ) | const |

| bool smf::MidiMessage::isTimeSignature | ( | void | ) | const |

| bool smf::MidiMessage::isTrackName | ( | void | ) | const |

| void smf::MidiMessage::makeController | ( | int | channel, |
| int | num, | ||
| int | value | ||
| ) |

| void smf::MidiMessage::makeCopyright | ( | const std::string & | text | ) |


| void smf::MidiMessage::makeCue | ( | const std::string & | text | ) |


| void smf::MidiMessage::makeInstrumentName | ( | const std::string & | name | ) |


| void smf::MidiMessage::makeKeySignature | ( | int | fifths, |
| bool | mode = 0 |
||
| ) |

| void smf::MidiMessage::makeLyric | ( | const std::string & | text | ) |


| void smf::MidiMessage::makeMarker | ( | const std::string & | text | ) |


| void smf::MidiMessage::makeMetaMessage | ( | int | mnum, |
| const std::string & | data | ||
| ) |


| void smf::MidiMessage::makeMts2_KeyTuningByFrequency | ( | int | key, |
| double | frequency, | ||
| int | program = 0 |
||
| ) |

| void smf::MidiMessage::makeMts2_KeyTuningBySemitone | ( | int | key, |
| double | semitone, | ||
| int | program = 0 |
||
| ) |

| void smf::MidiMessage::makeMts2_KeyTuningsByFrequency | ( | int | key, |
| double | frequency, | ||
| int | program = 0 |
||
| ) |


| void smf::MidiMessage::makeMts2_KeyTuningsByFrequency | ( | std::vector< std::pair< int, double > > & | mapping, |
| int | program = 0 |
||
| ) |

| void smf::MidiMessage::makeMts2_KeyTuningsBySemitone | ( | int | key, |
| double | semitone, | ||
| int | program = 0 |
||
| ) |


| void smf::MidiMessage::makeMts2_KeyTuningsBySemitone | ( | std::vector< std::pair< int, double > > & | mapping, |
| int | program = 0 |
||
| ) |

| void smf::MidiMessage::makeMts9_TemperamentByCentsDeviationFromET | ( | std::vector< double > & | mapping, |
| int | referencePitchClass = 0, |
||
| int | channelMask = 0b1111111111111111 |
||
| ) |


| void smf::MidiMessage::makeNoteOff | ( | int | channel, |
| int | key | ||
| ) |
| void smf::MidiMessage::makeNoteOff | ( | int | channel, |
| int | key, | ||
| int | velocity | ||
| ) |

| void smf::MidiMessage::makeNoteOff | ( | void | ) |

| void smf::MidiMessage::makeNoteOn | ( | int | channel, |
| int | key, | ||
| int | velocity | ||
| ) |

| void smf::MidiMessage::makePatchChange | ( | int | channel, |
| int | patchnum | ||
| ) |

| void smf::MidiMessage::makePitchBend | ( | int | channel, |
| int | lsb, | ||
| int | msb | ||
| ) |

|
inline |

| void smf::MidiMessage::makePitchBend | ( | int | channel, |
| int | value | ||
| ) |
|
inline |

| void smf::MidiMessage::makePitchBendDouble | ( | int | channel, |
| double | value | ||
| ) |

|
inline |

| void smf::MidiMessage::makeSustain | ( | int | channel, |
| int | value | ||
| ) |


| void smf::MidiMessage::makeSustainOff | ( | int | channel | ) |


| void smf::MidiMessage::makeSustainOn | ( | int | channel | ) |


| void smf::MidiMessage::makeSustainPedal | ( | int | channel, |
| int | value | ||
| ) |

| void smf::MidiMessage::makeSustainPedalOff | ( | int | channel | ) |

| void smf::MidiMessage::makeSustainPedalOn | ( | int | channel | ) |

| void smf::MidiMessage::makeSysExMessage | ( | const std::vector< uchar > & | data | ) |


| void smf::MidiMessage::makeTemperamentBad | ( | double | maxDeviationCents = 100.0, |
| int | referencePitchClass = 0, |
||
| int | channelMask = 0b1111111111111111 |
||
| ) |

| void smf::MidiMessage::makeTemperamentEqual | ( | int | referencePitchClass = 0, |
| int | channelMask = 0b1111111111111111 |
||
| ) |

| void smf::MidiMessage::makeTemperamentMeantone | ( | double | fraction = 0.25, |
| int | referencePitchClass = 2, |
||
| int | channelMask = 0b1111111111111111 |
||
| ) |


| void smf::MidiMessage::makeTemperamentMeantoneCommaHalf | ( | int | referencePitchClass = 2, |
| int | channelMask = 0b1111111111111111 |
||
| ) |

| void smf::MidiMessage::makeTemperamentMeantoneCommaQuarter | ( | int | referencePitchClass = 2, |
| int | channelMask = 0b1111111111111111 |
||
| ) |

| void smf::MidiMessage::makeTemperamentMeantoneCommaThird | ( | int | referencePitchClass = 2, |
| int | channelMask = 0b1111111111111111 |
||
| ) |

| void smf::MidiMessage::makeTemperamentPythagorean | ( | int | referencePitchClass = 2, |
| int | channelMask = 0b1111111111111111 |
||
| ) |

|
inline |


| void smf::MidiMessage::makeText | ( | const std::string & | name | ) |


| void smf::MidiMessage::makeTimbre | ( | int | channel, |
| int | patchnum | ||
| ) |

| void smf::MidiMessage::makeTimeSignature | ( | int | top, |
| int | bottom, | ||
| int | clocksPerClick = 24, |
||
| int | num32dsPerQuarter = 8 |
||
| ) |

| void smf::MidiMessage::makeTrackName | ( | const std::string & | name | ) |


| MidiMessage & smf::MidiMessage::operator= | ( | const MidiMessage & | message | ) |

| MidiMessage & smf::MidiMessage::operator= | ( | const std::initializer_list< int > & | list | ) |
| MidiMessage & smf::MidiMessage::operator= | ( | const std::vector< char > & | bytes | ) |

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

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

| int smf::MidiMessage::resizeToCommand | ( | void | ) |

| void smf::MidiMessage::setChannel | ( | int | value | ) |

| void smf::MidiMessage::setChannelNibble | ( | int | value | ) |

| void smf::MidiMessage::setCommand | ( | int | value | ) |

| void smf::MidiMessage::setCommand | ( | int | value, |
| int | p1 | ||
| ) |
| void smf::MidiMessage::setCommand | ( | int | value, |
| int | p1, | ||
| int | p2 | ||
| ) |
| void smf::MidiMessage::setCommandByte | ( | int | value | ) |

| void smf::MidiMessage::setCommandNibble | ( | int | value | ) |
| void smf::MidiMessage::setKeyNumber | ( | int | value | ) |

| void smf::MidiMessage::setMessage | ( | const std::vector< char > & | message | ) |
| void smf::MidiMessage::setMessage | ( | const std::vector< int > & | message | ) |
| void smf::MidiMessage::setMessage | ( | const std::vector< uchar > & | message | ) |

| void smf::MidiMessage::setMetaContent | ( | const std::string & | content | ) |


| void smf::MidiMessage::setMetaTempo | ( | double | tempo | ) |


| void smf::MidiMessage::setP0 | ( | int | value | ) |

| void smf::MidiMessage::setP1 | ( | int | value | ) |


| void smf::MidiMessage::setP2 | ( | int | value | ) |


| void smf::MidiMessage::setP3 | ( | int | value | ) |

| void smf::MidiMessage::setParameters | ( | int | p1 | ) |
| void smf::MidiMessage::setParameters | ( | int | p1, |
| int | p2 | ||
| ) |
| void smf::MidiMessage::setSize | ( | int | asize | ) |
| int smf::MidiMessage::setSizeToCommand | ( | void | ) |


| void smf::MidiMessage::setSpelling | ( | int | base7, |
| int | accidental | ||
| ) |

| void smf::MidiMessage::setTempo | ( | double | tempo | ) |


| void smf::MidiMessage::setTempoMicroseconds | ( | int | microseconds | ) |

| void smf::MidiMessage::setVelocity | ( | int | value | ) |


| void smf::MidiMessage::sortTrack | ( | void | ) |
| void smf::MidiMessage::sortTrackWithSequence | ( | void | ) |