diff options
author | David Robillard <d@drobilla.net> | 2012-04-20 18:52:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-20 18:52:14 +0000 |
commit | ba1917edea8f3b0eaf5aafdc2a7827ab076c61b4 (patch) | |
tree | 9d73c2ab8862e80867bafa0f3ce5dd92f616ff7e /src/mdaPiano.h | |
parent | 19cba7fcbbcfcedbd45cef80e6c7c11ee2e98068 (diff) | |
download | mda.lv2-ba1917edea8f3b0eaf5aafdc2a7827ab076c61b4.tar.gz mda.lv2-ba1917edea8f3b0eaf5aafdc2a7827ab076c61b4.tar.bz2 mda.lv2-ba1917edea8f3b0eaf5aafdc2a7827ab076c61b4.zip |
Make instrument plugins work.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4215 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaPiano.h')
-rw-r--r-- | src/mdaPiano.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mdaPiano.h b/src/mdaPiano.h index 1885671..bd6f82a 100644 --- a/src/mdaPiano.h +++ b/src/mdaPiano.h @@ -80,9 +80,7 @@ public: mdaPiano(audioMasterCallback audioMaster); ~mdaPiano(); - virtual void process(float **inputs, float **outputs, int32_t sampleframes); virtual void processReplacing(float **inputs, float **outputs, int32_t sampleframes); - virtual int32_t processEvents(LvzEvents* events); virtual void setProgram(int32_t program); virtual void setProgramName(char *name); @@ -102,7 +100,7 @@ public: virtual bool getVendorString (char* text); virtual bool getProductString (char* text); virtual int32_t getVendorVersion () {return 1;} - virtual int32_t canDo (char* text); + virtual int32_t canDo (const char* text); virtual int32_t getNumMidiInputChannels () { return 1; } @@ -110,6 +108,7 @@ public: void guiGetDisplay(int32_t index, char *label); private: + int32_t processEvent(const LV2_Atom_Event* ev); void update(); //my parameter update void noteOn(int32_t note, int32_t velocity); void fillpatch(int32_t p, const char *name, float p0, float p1, float p2, float p3, float p4, @@ -119,10 +118,6 @@ private: mdaPianoProgram* programs; float Fs, iFs; - #define EVENTBUFFER 120 - #define EVENTS_DONE 99999999 - int32_t notes[EVENTBUFFER + 8]; //list of delta|note|velocity for current block - ///global internal variables KGRP kgrp[16]; VOICE voice[NVOICES]; |