summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mdaPiano.cpp56
-rw-r--r--src/mdaPiano.h11
2 files changed, 0 insertions, 67 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp
index 04174c5..2d26d00 100644
--- a/src/mdaPiano.cpp
+++ b/src/mdaPiano.cpp
@@ -20,8 +20,6 @@
#include <math.h>
-//#include "AEffEditor.hpp" ////for GUI
-
AudioEffect *createEffectInstance(audioMasterCallback audioMaster)
{
return new mdaPiano(audioMaster);
@@ -104,8 +102,6 @@ mdaPiano::mdaPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster,
cpos = sustain = activevoices = 0;
comb = new float[256];
- guiUpdate = 0;
-
update();
suspend();
}
@@ -155,8 +151,6 @@ void mdaPiano::setProgram(VstInt32 program)
{
curProgram = program;
update();
-
- // TODO: guiUpdate ???
}
@@ -164,10 +158,6 @@ void mdaPiano::setParameter(VstInt32 index, float value)
{
programs[curProgram].param[index] = value;
update();
-
-// if(editor) editor->postUpdate(); //For GUI
-
- guiUpdate = index + 0x100 + (guiUpdate & 0xFFFF00);
}
@@ -188,34 +178,6 @@ float mdaPiano::getParameter(VstInt32 index) { return programs[curProgram].p
void mdaPiano::setProgramName(char *name) { strcpy(programs[curProgram].name, name); }
void mdaPiano::getProgramName(char *name) { strcpy(name, programs[curProgram].name); }
void mdaPiano::setBlockSize(VstInt32 blockSize) { AudioEffectX::setBlockSize(blockSize); }
-bool mdaPiano::getEffectName(char* name) { strcpy(name, "Piano"); return true; }
-bool mdaPiano::getVendorString(char* text) { strcpy(text, "mda"); return true; }
-bool mdaPiano::getProductString(char* text) { strcpy(text, "mda Piano"); return true; }
-
-
-bool mdaPiano::getOutputProperties(VstInt32 index, VstPinProperties* properties)
-{
- if(index<NOUTS)
- {
- if(index) sprintf(properties->label, "Piano R");
- else sprintf(properties->label, "Piano L");
- properties->flags = kVstPinIsActive;
- if(index<2) properties->flags |= kVstPinIsStereo; //make channel 1+2 stereo
- return true;
- }
- return false;
-}
-
-
-bool mdaPiano::getProgramNameIndexed(VstInt32 category, VstInt32 index, char* text)
-{
- if ((unsigned int)index < NPROGS)
- {
- strcpy(text, programs[index].name);
- return true;
- }
- return false;
-}
bool mdaPiano::copyProgram(VstInt32 destination)
@@ -229,14 +191,6 @@ bool mdaPiano::copyProgram(VstInt32 destination)
}
-VstInt32 mdaPiano::canDo(char* text)
-{
- if(strcmp(text, "receiveVstEvents") == 0) return 1;
- if(strcmp(text, "receiveVstMidiEvent") == 0) return 1;
- return -1;
-}
-
-
void mdaPiano::getParameterName(VstInt32 index, char *label)
{
switch (index)
@@ -294,16 +248,6 @@ void mdaPiano::getParameterLabel(VstInt32 index, char *label)
}
-void mdaPiano::guiGetDisplay(VstInt32 index, char *label)
-{
- getParameterName(index, label);
- strcat(label, " = ");
- getParameterDisplay(index, label + strlen(label));
- getParameterLabel(index, label + strlen(label));
-}
-
-
-
void mdaPiano::process(float **inputs, float **outputs, VstInt32 sampleFrames)
{
float* out0 = outputs[0];
diff --git a/src/mdaPiano.h b/src/mdaPiano.h
index 04f020f..ecca744 100644
--- a/src/mdaPiano.h
+++ b/src/mdaPiano.h
@@ -79,19 +79,8 @@ public:
virtual void setBlockSize(VstInt32 blockSize);
virtual void resume();
- virtual bool getOutputProperties (VstInt32 index, VstPinProperties* properties);
- virtual bool getProgramNameIndexed (VstInt32 category, VstInt32 index, char* text);
virtual bool copyProgram (VstInt32 destination);
- virtual bool getEffectName (char* name);
- virtual bool getVendorString (char* text);
- virtual bool getProductString (char* text);
- virtual VstInt32 getVendorVersion () {return 1;}
- virtual VstInt32 canDo (char* text);
-
- virtual VstInt32 getNumMidiInputChannels () { return 1; }
- VstInt32 guiUpdate;
- void guiGetDisplay(VstInt32 index, char *label);
private:
void update(); //my parameter update