Mercurial > hg > svcore
comparison data/fileio/MIDIFileWriter.h @ 1824:1cd161242250
Merge
author | Chris Cannam |
---|---|
date | Tue, 28 Jan 2020 14:34:13 +0000 |
parents | 7e958685449d |
children |
comparison
equal
deleted
inserted
replaced
1823:07a8793a0388 | 1824:1cd161242250 |
---|---|
46 public: | 46 public: |
47 MIDIFileWriter(QString path, | 47 MIDIFileWriter(QString path, |
48 const NoteExportable *exportable, | 48 const NoteExportable *exportable, |
49 sv_samplerate_t sampleRate, // used to convert exportable sample timings | 49 sv_samplerate_t sampleRate, // used to convert exportable sample timings |
50 float tempo = 120.f); | 50 float tempo = 120.f); |
51 virtual ~MIDIFileWriter(); | 51 ~MIDIFileWriter(); |
52 | 52 |
53 virtual bool isOK() const; | 53 bool isOK() const; |
54 virtual QString getError() const; | 54 QString getError() const; |
55 | 55 |
56 virtual void write(); | 56 void write(); |
57 | 57 |
58 protected: | 58 protected: |
59 typedef std::vector<MIDIEvent *> MIDITrack; | 59 typedef std::vector<MIDIEvent *> MIDITrack; |
60 typedef std::map<unsigned int, MIDITrack> MIDIComposition; | 60 typedef std::map<unsigned int, MIDITrack> MIDIComposition; |
61 | 61 |