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

Public Member Functions | |
| Binasc (void) | |
| ~Binasc () | |
| int | setLineLength (int length) |
| int | getLineLength (void) |
| int | setLineBytes (int length) |
| int | getLineBytes (void) |
| void | setComments (int state) |
| void | setCommentsOn (void) |
| void | setCommentsOff (void) |
| int | getComments (void) |
| void | setBytes (int state) |
| void | setBytesOn (void) |
| void | setBytesOff (void) |
| int | getBytes (void) |
| void | setMidi (int state) |
| void | setMidiOn (void) |
| void | setMidiOff (void) |
| int | getMidi (void) |
| int | writeToBinary (const std::string &outfile, const std::string &infile) |
| int | writeToBinary (const std::string &outfile, std::istream &input) |
| int | writeToBinary (std::ostream &out, const std::string &infile) |
| int | writeToBinary (std::ostream &out, std::istream &input) |
| int | readFromBinary (const std::string &outfile, const std::string &infile) |
| int | readFromBinary (const std::string &outfile, std::istream &input) |
| int | readFromBinary (std::ostream &out, const std::string &infile) |
| int | readFromBinary (std::ostream &out, std::istream &input) |
Static Public Member Functions | |
| static std::ostream & | writeLittleEndianUShort (std::ostream &out, ushort value) |
| static std::ostream & | writeBigEndianUShort (std::ostream &out, ushort value) |
| static std::ostream & | writeLittleEndianShort (std::ostream &out, short value) |
| static std::ostream & | writeBigEndianShort (std::ostream &out, short value) |
| static std::ostream & | writeLittleEndianULong (std::ostream &out, ulong value) |
| static std::ostream & | writeBigEndianULong (std::ostream &out, ulong value) |
| static std::ostream & | writeLittleEndianLong (std::ostream &out, long value) |
| static std::ostream & | writeBigEndianLong (std::ostream &out, long value) |
| static std::ostream & | writeLittleEndianFloat (std::ostream &out, float value) |
| static std::ostream & | writeBigEndianFloat (std::ostream &out, float value) |
| static std::ostream & | writeLittleEndianDouble (std::ostream &out, double value) |
| static std::ostream & | writeBigEndianDouble (std::ostream &out, double value) |
| static std::string | keyToPitchName (int key) |
Protected Attributes | |
| int | m_bytesQ |
| int | m_commentsQ |
| int | m_midiQ |
| int | m_maxLineLength |
| int | m_maxLineBytes |
Private Member Functions | |
| int | processLine (std::ostream &out, const std::string &input, int lineNum) |
| int | processAsciiWord (std::ostream &out, const std::string &input, int lineNum) |
| int | processStringWord (std::ostream &out, const std::string &input, int lineNum) |
| int | processBinaryWord (std::ostream &out, const std::string &input, int lineNum) |
| int | processDecimalWord (std::ostream &out, const std::string &input, int lineNum) |
| int | processHexWord (std::ostream &out, const std::string &input, int lineNum) |
| int | processVlvWord (std::ostream &out, const std::string &input, int lineNum) |
| int | processMidiPitchBendWord (std::ostream &out, const std::string &input, int lineNum) |
| int | processMidiTempoWord (std::ostream &out, const std::string &input, int lineNum) |
| int | outputStyleAscii (std::ostream &out, std::istream &input) |
| int | outputStyleBinary (std::ostream &out, std::istream &input) |
| int | outputStyleBoth (std::ostream &out, std::istream &input) |
| int | outputStyleMidi (std::ostream &out, std::istream &input) |
| int | readMidiEvent (std::ostream &out, std::istream &infile, int &trackbytes, int &command) |
| int | getVLV (std::istream &infile, int &trackbytes) |
| int | getWord (std::string &word, const std::string &input, const std::string &terminators, int index) |
Static Private Attributes | |
| static const char * | GMinstrument [128] |
| smf::Binasc::Binasc | ( | void | ) |
| smf::Binasc::~Binasc | ( | ) |
| int smf::Binasc::getBytes | ( | void | ) |
| int smf::Binasc::getComments | ( | void | ) |
| int smf::Binasc::getLineBytes | ( | void | ) |
| int smf::Binasc::getLineLength | ( | void | ) |
| int smf::Binasc::getMidi | ( | void | ) |
|
private |

|
private |

|
static |

|
private |

|
private |

|
private |

|
private |


|
private |

|
private |

|
private |


|
private |

|
private |


|
private |

|
private |

|
private |

|
private |

| int smf::Binasc::readFromBinary | ( | const std::string & | outfile, |
| const std::string & | infile | ||
| ) |


| int smf::Binasc::readFromBinary | ( | const std::string & | outfile, |
| std::istream & | input | ||
| ) |

| int smf::Binasc::readFromBinary | ( | std::ostream & | out, |
| const std::string & | infile | ||
| ) |

| int smf::Binasc::readFromBinary | ( | std::ostream & | out, |
| std::istream & | input | ||
| ) |

|
private |


| void smf::Binasc::setBytes | ( | int | state | ) |

| void smf::Binasc::setBytesOff | ( | void | ) |

| void smf::Binasc::setBytesOn | ( | void | ) |

| void smf::Binasc::setComments | ( | int | state | ) |

| void smf::Binasc::setCommentsOff | ( | void | ) |

| void smf::Binasc::setCommentsOn | ( | void | ) |


| int smf::Binasc::setLineBytes | ( | int | length | ) |
| int smf::Binasc::setLineLength | ( | int | length | ) |
| void smf::Binasc::setMidi | ( | int | state | ) |

| void smf::Binasc::setMidiOff | ( | void | ) |

| void smf::Binasc::setMidiOn | ( | void | ) |


|
static |

|
static |

|
static |

|
static |

|
static |

|
static |

|
static |

|
static |

|
static |

|
static |

|
static |

|
static |

| int smf::Binasc::writeToBinary | ( | const std::string & | outfile, |
| const std::string & | infile | ||
| ) |


| int smf::Binasc::writeToBinary | ( | const std::string & | outfile, |
| std::istream & | input | ||
| ) |

| int smf::Binasc::writeToBinary | ( | std::ostream & | out, |
| const std::string & | infile | ||
| ) |

| int smf::Binasc::writeToBinary | ( | std::ostream & | out, |
| std::istream & | input | ||
| ) |

|
staticprivate |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |