|
|
|
@ -28,7 +28,7 @@ |
|
|
|
|
#include "config.h" |
|
|
|
|
|
|
|
|
|
#define NPARAMS 12 //number of parameters
|
|
|
|
|
#define NPROGS 8 //number of programs
|
|
|
|
|
#define NPROGS 1 //number of programs
|
|
|
|
|
#define NOUTS 2 //number of outputs
|
|
|
|
|
#define SUSTAIN 128 |
|
|
|
|
#define SILENCE 0.0001f //voice choking
|
|
|
|
@ -83,19 +83,19 @@ class mdaEPiano |
|
|
|
|
virtual void process(int16_t *outputs_r, int16_t *outputs_l); |
|
|
|
|
void noteOn(int32_t note, int32_t velocity); |
|
|
|
|
virtual bool processMidiController(uint8_t data1, uint8_t data2); |
|
|
|
|
virtual void setProgram(int32_t program); |
|
|
|
|
//virtual void setProgram(int32_t program);
|
|
|
|
|
virtual void setParameter(int32_t index, float value); |
|
|
|
|
virtual float getParameter(int32_t index); |
|
|
|
|
//virtual float getParameter(int32_t index);
|
|
|
|
|
virtual void resume(); |
|
|
|
|
void reset_voices(void); |
|
|
|
|
|
|
|
|
|
int32_t guiUpdate; |
|
|
|
|
void guiGetDisplay(int32_t index, char *label); |
|
|
|
|
//int32_t guiUpdate;
|
|
|
|
|
//void guiGetDisplay(int32_t index, char *label);
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
void update(); //my parameter update
|
|
|
|
|
void fillpatch(int32_t p, char *name, float p0, float p1, float p2, float p3, float p4, |
|
|
|
|
float p5, float p6, float p7, float p8, float p9, float p10, float p11); |
|
|
|
|
/* void fillpatch(int32_t p, char *name, float p0, float p1, float p2, float p3, float p4,
|
|
|
|
|
float p5, float p6, float p7, float p8, float p9, float p10, float p11); */ |
|
|
|
|
|
|
|
|
|
mdaEPianoProgram* programs; |
|
|
|
|
float Fs, iFs; |
|
|
|
@ -112,7 +112,7 @@ class mdaEPiano |
|
|
|
|
float tune, fine, random, stretch, overdrive; |
|
|
|
|
float muff, muffvel, sizevel, velsens, volume, modwhl; |
|
|
|
|
float vol; |
|
|
|
|
uint8_t curProgram; |
|
|
|
|
const uint8_t curProgram = 0; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|