comparison runner/MIDIFeatureWriter.h @ 346:90169412b1a7

Merge from branch by-id
author Chris Cannam
date Thu, 18 Jul 2019 14:58:51 +0100
parents 1286914e4fe0
children
comparison
equal deleted inserted replaced
333:70d19452631e 346:90169412b1a7
12 published by the Free Software Foundation; either version 2 of the 12 published by the Free Software Foundation; either version 2 of the
13 License, or (at your option) any later version. See the file 13 License, or (at your option) any later version. See the file
14 COPYING included with this distribution for more information. 14 COPYING included with this distribution for more information.
15 */ 15 */
16 16
17 #ifndef _MIDI_FEATURE_WRITER_H_ 17 #ifndef MIDI_FEATURE_WRITER_H
18 #define _MIDI_FEATURE_WRITER_H_ 18 #define MIDI_FEATURE_WRITER_H
19 19
20 #include "transform/FileFeatureWriter.h" 20 #include "transform/FileFeatureWriter.h"
21 #include "data/model/NoteData.h" 21 #include "base/NoteData.h"
22 #include "base/NoteExportable.h"
22 23
23 class MIDIFileWriter; 24 class MIDIFileWriter;
24 25
25 class MIDIFeatureWriter : public FileFeatureWriter 26 class MIDIFeatureWriter : public FileFeatureWriter
26 { 27 {
50 public: 51 public:
51 TrivialNoteExportable(NoteList notes) : m_notes(notes) { } 52 TrivialNoteExportable(NoteList notes) : m_notes(notes) { }
52 virtual NoteList getNotes() const { 53 virtual NoteList getNotes() const {
53 return m_notes; 54 return m_notes;
54 } 55 }
55 virtual NoteList getNotesWithin(sv_frame_t, sv_frame_t) const { 56 virtual NoteList getNotesActiveAt(sv_frame_t) const {
57 // Not required by MIDIFileWriter, not supported
58 return NoteList();
59 }
60 virtual NoteList getNotesStartingWithin(sv_frame_t, sv_frame_t) const {
56 // Not required by MIDIFileWriter, not supported 61 // Not required by MIDIFileWriter, not supported
57 return NoteList(); 62 return NoteList();
58 } 63 }
59 private: 64 private:
60 NoteList m_notes; 65 NoteList m_notes;