diff audioio/AudioGenerator.h @ 299:ae1eedd6951f tonioni

Use NoteExportable, now in svcore, to generate note data
author Chris Cannam
date Mon, 02 Dec 2013 17:12:27 +0000
parents cba1e2a3d14b
children 9716c75499ef
line wrap: on
line diff
--- a/audioio/AudioGenerator.h	Mon Dec 02 15:47:16 2013 +0000
+++ b/audioio/AudioGenerator.h	Mon Dec 02 17:12:27 2013 +0000
@@ -103,22 +103,6 @@
     bool m_soloing;
     std::set<Model *> m_soloModelSet;
 
-    struct NoteData {
-
-        NoteData(size_t _start, size_t _dur, int _mp, int _vel) :
-            start(_start), duration(_dur), midiPitch(_mp), frequency(0),
-            isMidiPitchQuantized(true), velocity(_vel) { };
-            
-        size_t start;     // audio sample frame
-        size_t duration;  // in audio sample frames
-        int midiPitch; // 0-127
-        int frequency; // Hz, to be used if isMidiPitchQuantized false
-        bool isMidiPitchQuantized;
-        int velocity;  // MIDI-style 0-127
-    };
-
-    typedef std::vector<NoteData> NoteList;
-    
     struct NoteOff {
 
         NoteOff(int _p, size_t _f) : pitch(_p), frame(_f) { }
@@ -156,8 +140,6 @@
     (Model *model, size_t startFrame, size_t frameCount,
      float **buffer, float gain, float pan, size_t fadeIn, size_t fadeOut);
     
-    NoteList getNotes(Model *model, size_t startFrame, size_t endFrame);
-
     static const size_t m_pluginBlockSize;
 };