#include <MidiFile.h>
Collaboration diagram for TSE3::MidiFileExport:
Public Member Functions | |
MidiFileExport (int format=1, bool compact=true, int verbose=0, std::ostream &d_out=std::cout) | |
~MidiFileExport () | |
void | save (const std::string &filename, Song *song, Progress *progress=0) |
void | save (std::ostream &out, Song *song, Progress *progress=0) |
int | format () const |
size_t | size () const |
int | noMTrks () const |
bool | compact () const |
Utility to export MIDI files converted from a TSE3 Song.
|
Creates a MidiFileExport object for the given Song.
|
|
|
|
Performs the MIDI file export. If the file fails to open, then a MidiFileExportError exception is thrown.
|
|
As save above, but you specify the ostream. |
|
Returns MIDI file format. This method can be used to find out information after the MIDI file has been exported.
|
|
Returns the size of the exported MIDI file. This method can be used to find out information after the MIDI file has been exported.
|
|
Returns the number of MTrks in the exported MIDI file. This method can be used to find out information after the MIDI file has been exported.
|
|
Returns whether MidiCommand_NoteOffs were compacted. This method can be used to find out information after the MIDI file has been exported.
|