aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaEPiano.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-21 22:35:41 +0000
committerDavid Robillard <d@drobilla.net>2012-04-21 22:35:41 +0000
commit337a13119180bf7fa6996d6c23962c31ea53db54 (patch)
tree7427f9be36a29978712c17399f7418e8f9d18425 /src/mdaEPiano.h
parent3ff557d9e3ea5b36f0ca6eccfc587dc335ed5e8d (diff)
downloadmda.lv2-1.0.0.tar.gz
mda.lv2-1.0.0.tar.bz2
mda.lv2-1.0.0.zip
MDA-LV2 1.0.0v1.0.0
git-svn-id: http://svn.drobilla.net/lad/tags/mda-lv2-1.0.0@4223 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaEPiano.h')
-rw-r--r--src/mdaEPiano.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mdaEPiano.h b/src/mdaEPiano.h
index b24c7ce..41d0fb0 100644
--- a/src/mdaEPiano.h
+++ b/src/mdaEPiano.h
@@ -24,7 +24,7 @@
#include "audioeffectx.h"
#define NPARAMS 12 //number of parameters
-#define NPROGS 8 //number of programs
+#define NPROGS 5 //number of programs
#define NOUTS 2 //number of outputs
#define NVOICES 32 //max polyphony
#define SUSTAIN 128
@@ -76,9 +76,7 @@ public:
mdaEPiano(audioMasterCallback audioMaster);
~mdaEPiano();
- 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);
@@ -98,7 +96,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; }
@@ -106,6 +104,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,
@@ -114,10 +113,6 @@ private:
mdaEPianoProgram* 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[34];
VOICE voice[NVOICES];