23 #ifndef _MIDI_FILE_WRITER_H_ 24 #define _MIDI_FILE_WRITER_H_ 52 virtual bool isOK()
const;
std::string longToVarBuffer(unsigned long number) const
std::string longToMIDIBytes(unsigned long number) const
unsigned int m_numberOfTracks
std::vector< MIDIEvent * > MIDITrack
MIDIFileWriter(QString path, const NoteExportable *exportable, int sampleRate, float tempo=120.f)
MIDIComposition m_midiComposition
bool writeTrack(int track)
unsigned long getMIDITimeForTime(RealTime t) const
std::ofstream * m_midiFile
MIDIFileFormatType m_format
std::string intToMIDIBytes(int number) const
virtual QString getError() const
const NoteExportable * m_exportable
virtual ~MIDIFileWriter()
virtual bool isOK() const
std::map< unsigned int, MIDITrack > MIDIComposition
RealTime represents time values to nanosecond precision with accurate arithmetic and frame-rate conve...