comparison data/fileio/MIDIFileWriter.h @ 1813:7e958685449d

Not virtual
author Chris Cannam
date Wed, 08 Jan 2020 15:26:37 +0000
parents ad5f892c0c4d
children
comparison
equal deleted inserted replaced
1812:8a06e16948d7 1813:7e958685449d
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