aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile21
-rw-r--r--lvz/audioeffectx.h48
-rw-r--r--lvz/gendata.cpp126
-rw-r--r--lvz/wrapper.cpp24
-rw-r--r--src/mdaAmbience.cpp4
-rw-r--r--src/mdaBandisto.cpp2
-rw-r--r--src/mdaBeatBox.cpp2
-rw-r--r--src/mdaCombo.cpp2
-rw-r--r--src/mdaDX10.cpp3
-rw-r--r--src/mdaDeEss.cpp2
-rw-r--r--src/mdaDegrade.cpp2
-rw-r--r--src/mdaDelay.cpp2
-rw-r--r--src/mdaDetune.cpp2
-rw-r--r--src/mdaDetune.h2
-rw-r--r--src/mdaDither.cpp2
-rw-r--r--src/mdaDubDelay.cpp2
-rw-r--r--src/mdaDynamics.cpp2
-rw-r--r--src/mdaEPiano.cpp3
-rw-r--r--src/mdaImage.cpp2
-rw-r--r--src/mdaJX10.cpp3
-rw-r--r--src/mdaLeslie.cpp11
-rw-r--r--src/mdaLimiter.cpp2
-rw-r--r--src/mdaLooplex.cpp3
-rw-r--r--src/mdaLoudness.cpp2
-rw-r--r--src/mdaMultiBand.cpp2
-rw-r--r--src/mdaOverdrive.cpp2
-rw-r--r--src/mdaPiano.cpp3
-rw-r--r--src/mdaRePsycho.cpp2
-rw-r--r--src/mdaRezFilter.cpp2
-rw-r--r--src/mdaRingMod.cpp2
-rw-r--r--src/mdaRoundPan.cpp2
-rw-r--r--src/mdaShepard.cpp2
-rw-r--r--src/mdaSplitter.cpp2
-rw-r--r--src/mdaStereo.cpp2
-rw-r--r--src/mdaSubSynth.cpp2
-rw-r--r--src/mdaTalkBox.cpp2
-rw-r--r--src/mdaTestTone.cpp2
-rw-r--r--src/mdaThruZero.cpp2
-rw-r--r--src/mdaTracker.cpp2
-rw-r--r--src/mdaTransient.cpp2
-rw-r--r--src/mdaVocInput.cpp2
-rw-r--r--src/mdaVocoder.cpp2
-rw-r--r--src/mdaspecmeter.cpp2
43 files changed, 246 insertions, 67 deletions
diff --git a/Makefile b/Makefile
index b846c65..57ffe80 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
-CFLAGS = -Wall -fPIC -Ilvz -DPLUGIN_URI=\"http://example.org/mda-plugin\"
+CFLAGS = -O0 -g -Wall -fPIC -Ilvz -DPLUGIN_URI_PREFIX=\"http://drobilla.net/ns/plugins/mda-lv2/\"
-all: \
+all: lvz/gendata libs data
+
+libs: \
src/mdaAmbience.so \
src/mdaBandisto.so \
src/mdaBeatBox.so \
@@ -38,12 +40,23 @@ all: \
src/mdaVocInput.so \
src/mdaVocoder.so
+data: libs
+ lvz/gendata src/*.so
+
+src/%.c: src/%.h lvz/audioeffectx.h
+
+lvz/gendata: lvz/gendata.cpp lvz/audioeffectx.h
+ $(CXX) $(CFLAGS) -ldl $< -o $@
+
src/%.so: src/%.cpp lvz/wrapper.cpp
- $(CC) -shared $(CFLAGS) -DPLUGIN_CLASS=`echo $@ | sed 's/\..*//' | sed 's/src\///'` \
+ basename="foo"
+ $(CXX) -shared $(CFLAGS) \
+ -DPLUGIN_CLASS=`echo $@ | sed 's/\..*//' | sed 's/src\///'` \
+ -DPLUGIN_URI_SUFFIX=\"`echo $@ | sed 's/\..*//' | sed 's/src\///' | sed 's/^mda//'`\" \
-DPLUGIN_HEADER=\"`echo $@ | sed 's/\..*//' | sed 's/src\//\.\.\/src\//' | sed 's/$$/\.h/'`\" \
$< lvz/wrapper.cpp -o $@
clean:
- rm -f src/*.o src/*.so
+ rm -f src/*.o src/*.so lvz/gendata src/*.ttl
diff --git a/lvz/audioeffectx.h b/lvz/audioeffectx.h
index f2f696b..07a6302 100644
--- a/lvz/audioeffectx.h
+++ b/lvz/audioeffectx.h
@@ -66,38 +66,48 @@ class AudioEffect {
class AudioEffectX : public AudioEffect {
public:
AudioEffectX(audioMasterCallback audioMaster, int progs, int params)
- : curProgram(0)
+ : uniqueID("NIL")
+ , URI("NIL")
+ , curProgram(0)
, numPrograms(progs)
, numInputs(0)
, numOutputs(0)
+ , sampleRate(44100)
{
}
- float getSampleRate() { return sampleRate; }
- uint32_t getNumInputs() { return numInputs; }
- uint32_t getNumOutputs() { return numOutputs; }
- void setNumInputs(uint32_t num) { numInputs = num; }
- void setNumOutputs(uint32_t num) { numOutputs = num;}
- void setUniqueID(const char* id) {}
- void setSampleRate(float rate) { sampleRate = rate; }
+ const char* getURI() { return URI; }
+ const char* getUniqueID() { return uniqueID; }
+ float getSampleRate() { return sampleRate; }
+ uint32_t getNumInputs() { return numInputs; }
+ uint32_t getNumOutputs() { return numOutputs; }
+
+ virtual bool getProductString(char* text) = 0;
+
void canMono() {}
- void wantEvents() {}
void canProcessReplacing() {}
void isSynth() {}
- void suspend() {}
+ void process(float **inputs, float **outputs, uint32_t nframes) {}
void setBlockSize(uint32_t blockSize) {}
+ void setNumInputs(uint32_t num) { numInputs = num; }
+ void setNumOutputs(uint32_t num) { numOutputs = num;}
void setParameter(uint32_t index, float value) {}
-
- void process(float **inputs, float **outputs, uint32_t nframes) {}
+ void setSampleRate(float rate) { sampleRate = rate; }
+ void setUniqueID(const char* id) { uniqueID = id; }
+ void setURI(const char* uri) { URI = uri; }
+ void suspend() {}
+ void wantEvents() {}
protected:
- uint32_t curProgram;
- uint32_t numPrograms;
- uint32_t numInputs;
- uint32_t numOutputs;
- float sampleRate;
-
- AEffGUIEditor* editor;
+ const char* uniqueID;
+ const char* URI;
+ uint32_t curProgram;
+ uint32_t numPrograms;
+ uint32_t numInputs;
+ uint32_t numOutputs;
+ float sampleRate;
+
+ AEffGUIEditor* editor;
};
#endif // __lvz_audioeffectx_h
diff --git a/lvz/gendata.cpp b/lvz/gendata.cpp
new file mode 100644
index 0000000..f1337a1
--- /dev/null
+++ b/lvz/gendata.cpp
@@ -0,0 +1,126 @@
+/* LVZ - A C++ interface for writing LV2 plugins.
+ * Copyright (C) 2008 Dave Robillard <http://drobilla.net>
+ *
+ * This library is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include <iostream>
+#include <fstream>
+#include <dlfcn.h>
+#include "audioeffectx.h"
+
+using namespace std;
+
+typedef AudioEffectX* (*new_effect_func)();
+typedef AudioEffectX* (*plugin_uri_func)();
+
+// VST is so incredibly awful. Just.. wow.
+#define MAX_NAME_LENGTH 1024
+char name[MAX_NAME_LENGTH];
+
+#define NS_LV2CORE "http://lv2plug.in/ns/lv2core#"
+
+void
+write_data(AudioEffectX* effect, const char* lib_file_name)
+{
+ string data_file_name = lib_file_name;
+ data_file_name = data_file_name.substr(0, data_file_name.find_last_of("."));
+ data_file_name += ".ttl";
+
+ //ostream& os = cout;
+ fstream os(data_file_name.c_str(), ios::out);
+ effect->getProductString(name);
+
+ os << "@prefix : <http://lv2plug.in/ns/lv2core#> ." << endl;
+ os << "@prefix doap: <http://usefulinc.com/ns/doap#> ." << endl << endl;
+ os << "<" << effect->getURI() << ">" << endl;
+ os << "\t:symbol \"" << effect->getUniqueID() << "\" ;" << endl;
+ os << "\tdoap:name \"" << name << "\"";
+
+ if (effect->getNumInputs() + effect->getNumOutputs() == 0)
+ os << " ." << endl;
+ else
+ os << " ;" << endl;
+
+ for (uint32_t i = 0; i < effect->getNumInputs(); ++i) {
+ if (i == 0)
+ os << "\t:port [" << endl;
+
+ os << "\t\ta :InputPort, :AudioPort ;" << endl;
+ os << "\t\t:index" << " " << i << " ;" << endl;
+
+ if (i == effect->getNumInputs() - 1) {
+ os << "\t] " << (effect->getNumOutputs() ? ";" : ".") << endl;
+ } else {
+ os << "\t] , [" << endl;
+ }
+ }
+
+ for (uint32_t i = 0; i < effect->getNumOutputs(); ++i) {
+ if (i == 0)
+ os << "\t:port [" << endl;
+
+ os << "\t\ta :OutputPort, :AudioPort ;" << endl;
+ os << "\t\t:index" << " " << effect->getNumInputs() + i << " ;" << endl;
+
+ if (i == effect->getNumInputs() - 1) {
+ os << "\t] ." << endl;
+ } else {
+ os << "\t] , [" << endl;
+ }
+ }
+
+ os.close();
+ cout << "Wrote " << data_file_name << endl;
+}
+
+
+int
+main(int argc, char** argv)
+{
+ if (argc == 0) {
+ cout << "Usage: gendata [PLUGINLIB1] [PLUGINLIB2]..." << endl;
+ cout << "Each argument is a path to a LVZ plugin library." << endl;
+ cout << "For each library an LV2 data file with the same name" << endl;
+ cout << "will be output containing the data for that plugin." << endl;
+ return 1;
+ }
+
+ new_effect_func constructor = NULL;
+ AudioEffectX* effect = NULL;
+
+ for (int i = 1; i < argc; ++i) {
+ void* handle = dlopen(argv[i], RTLD_NOW);
+ if (handle == NULL) {
+ cerr << "ERROR: " << argv[i] << " is not a shared library, ignoring" << endl;
+ continue;
+ }
+
+ constructor = (new_effect_func)dlsym(handle, "lvz_new_audioeffectx");
+ if (constructor == NULL) {
+ dlclose(handle);
+ cerr << "ERROR: " << argv[i] << " is not an LVZ plugin library, ignoring" << endl;
+ continue;
+ }
+
+ effect = constructor();
+ write_data(effect, argv[i]);
+
+ dlclose(handle);
+ }
+
+ return 0;
+}
+
diff --git a/lvz/wrapper.cpp b/lvz/wrapper.cpp
index 5916b13..14f73a9 100644
--- a/lvz/wrapper.cpp
+++ b/lvz/wrapper.cpp
@@ -16,13 +16,15 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef PLUGIN_URI
-#error "This file requires PLUGIN_URI to be defined"
-#endif
-
#ifndef PLUGIN_CLASS
#error "This file requires PLUGIN_CLASS to be defined"
#endif
+#ifndef PLUGIN_URI_PREFIX
+#error "This file requires PLUGIN_URI_PREFIX to be defined"
+#endif
+#ifndef PLUGIN_URI_SUFFIX
+#error "This file requires PLUGIN_URI_SUFFIX to be defined"
+#endif
#include <stdlib.h>
#include "audioeffectx.h"
@@ -60,6 +62,7 @@ mda_instantiate(const LV2_Descriptor* descriptor,
const LV2_Feature*const* features)
{
PLUGIN_CLASS* effect = new PLUGIN_CLASS(NULL);
+ effect->setURI(PLUGIN_URI_PREFIX PLUGIN_URI_SUFFIX);
effect->setSampleRate(rate);
MDAPlugin* plugin = (MDAPlugin*)malloc(sizeof(MDAPlugin));
@@ -87,7 +90,7 @@ init_descriptor()
{
mda_descriptor = (LV2_Descriptor*)malloc(sizeof(LV2_Descriptor));
- mda_descriptor->URI = PLUGIN_URI;
+ mda_descriptor->URI = PLUGIN_URI_PREFIX PLUGIN_URI_SUFFIX;
mda_descriptor->activate = NULL;
mda_descriptor->cleanup = mda_cleanup;
mda_descriptor->connect_port = mda_connect_port;
@@ -112,4 +115,15 @@ lv2_descriptor(uint32_t index)
}
}
+
+LV2_SYMBOL_EXPORT
+AudioEffectX*
+lvz_new_audioeffectx()
+{
+ PLUGIN_CLASS* effect = new PLUGIN_CLASS(NULL);
+ effect->setURI(PLUGIN_URI_PREFIX PLUGIN_URI_SUFFIX);
+ return effect;
+}
+
+
} // extern "C"
diff --git a/src/mdaAmbience.cpp b/src/mdaAmbience.cpp
index 35d205c..36d9d0f 100644
--- a/src/mdaAmbience.cpp
+++ b/src/mdaAmbience.cpp
@@ -17,6 +17,8 @@ mdaAmbience::mdaAmbience(audioMasterCallback audioMaster) : AudioEffectX(audioMa
fParam2 = 0.9f; //mix
fParam3 = 0.5f; //output
+ size = 0;
+
buf1 = new float[1024];
buf2 = new float[1024];
buf3 = new float[1024];
@@ -27,7 +29,7 @@ mdaAmbience::mdaAmbience(audioMasterCallback audioMaster) : AudioEffectX(audioMa
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaA"); // identify here
+ setUniqueID("mdaAmb"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Small Space Ambience");
diff --git a/src/mdaBandisto.cpp b/src/mdaBandisto.cpp
index dbc6d70..2b8d23a 100644
--- a/src/mdaBandisto.cpp
+++ b/src/mdaBandisto.cpp
@@ -25,7 +25,7 @@ mdaBandisto::mdaBandisto(audioMasterCallback audioMaster) : AudioEffectX(audioMa
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaD"); // identify here
+ setUniqueID("mdaBand"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Multi-Band Distortion");
diff --git a/src/mdaBeatBox.cpp b/src/mdaBeatBox.cpp
index 7fb9737..7fdf6c3 100644
--- a/src/mdaBeatBox.cpp
+++ b/src/mdaBeatBox.cpp
@@ -34,7 +34,7 @@ mdaBeatBox::mdaBeatBox(audioMasterCallback audioMaster) : AudioEffectX(audioMast
setNumInputs(2); // stereo in
setNumOutputs(2); // stereo out
- setUniqueID("mdaG"); // identify
+ setUniqueID("mdaBBox"); // identify
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing(); // supports both accumulating and replacing output
strcpy(programName, "BeatBox - Drum Replacer"); // default program name
diff --git a/src/mdaCombo.cpp b/src/mdaCombo.cpp
index 944ee62..99e2607 100644
--- a/src/mdaCombo.cpp
+++ b/src/mdaCombo.cpp
@@ -26,7 +26,7 @@ mdaCombo::mdaCombo(audioMasterCallback audioMaster) : AudioEffectX(audioMaster,
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaX"); // identify here
+ setUniqueID("mdaCombo"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Amp & Speaker Simulator");
diff --git a/src/mdaDX10.cpp b/src/mdaDX10.cpp
index f533bfe..3888222 100644
--- a/src/mdaDX10.cpp
+++ b/src/mdaDX10.cpp
@@ -59,6 +59,8 @@ mdaDX10::mdaDX10(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, NP
setProgram(0);
}
+
+ setUniqueID("mdaDX10");
if(audioMaster)
{
@@ -66,7 +68,6 @@ mdaDX10::mdaDX10(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, NP
setNumOutputs(NOUTS);
canProcessReplacing();
isSynth();
- setUniqueID("MDAx"); ///
}
//initialise...
diff --git a/src/mdaDeEss.cpp b/src/mdaDeEss.cpp
index 4a84dd9..73024e9 100644
--- a/src/mdaDeEss.cpp
+++ b/src/mdaDeEss.cpp
@@ -16,7 +16,7 @@ mdaDeEss::mdaDeEss(audioMasterCallback audioMaster) : AudioEffectX(audioMaster,
fParam3 = (float)0.50f; //drive
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdas"); //identify here
+ setUniqueID("mdaDeEss"); //identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "De-esser");
diff --git a/src/mdaDegrade.cpp b/src/mdaDegrade.cpp
index 7ad1a82..5a4d11f 100644
--- a/src/mdaDegrade.cpp
+++ b/src/mdaDegrade.cpp
@@ -20,7 +20,7 @@ mdaDegrade::mdaDegrade(audioMasterCallback audioMaster) : AudioEffectX(audioMast
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaC"); // identify here
+ setUniqueID("mdaDegrade"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Degrade");
diff --git a/src/mdaDelay.cpp b/src/mdaDelay.cpp
index a0db0a1..a02c932 100644
--- a/src/mdaDelay.cpp
+++ b/src/mdaDelay.cpp
@@ -25,7 +25,7 @@ mdaDelay::mdaDelay(audioMasterCallback audioMaster) : AudioEffectX(audioMaster,
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mday"); //identify here
+ setUniqueID("mdaDelay"); //identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Delay");
diff --git a/src/mdaDetune.cpp b/src/mdaDetune.cpp
index 7772525..07ad797 100644
--- a/src/mdaDetune.cpp
+++ b/src/mdaDetune.cpp
@@ -33,7 +33,7 @@ mdaDetune::mdaDetune(audioMasterCallback audioMaster): AudioEffectX(audioMaster,
{
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdat"); ///identify mdaDetune-in here
+ setUniqueID("mdaDetune"); ///identify mdaDetune-in here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
diff --git a/src/mdaDetune.h b/src/mdaDetune.h
index 5b9f5d9..d20f510 100644
--- a/src/mdaDetune.h
+++ b/src/mdaDetune.h
@@ -2,7 +2,7 @@
#define NPARAMS 4 ///number of parameters
-#define NPROGS 3 ///number of programs
+#define NPROGS 4 ///number of programs
#define BUFMAX 4096
#ifndef __mdaDetune_H
diff --git a/src/mdaDither.cpp b/src/mdaDither.cpp
index 85ecb83..03a2e09 100644
--- a/src/mdaDither.cpp
+++ b/src/mdaDither.cpp
@@ -23,7 +23,7 @@ mdaDither::mdaDither(audioMasterCallback audioMaster) : AudioEffectX(audioMaster
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdad"); // identify here
+ setUniqueID("mdaDither"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Dither & Noise Shaping");
diff --git a/src/mdaDubDelay.cpp b/src/mdaDubDelay.cpp
index 5b2ff07..7bfe8b8 100644
--- a/src/mdaDubDelay.cpp
+++ b/src/mdaDubDelay.cpp
@@ -29,7 +29,7 @@ mdaDubDelay::mdaDubDelay(audioMasterCallback audioMaster) : AudioEffectX(audioMa
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaß"); //identify here
+ setUniqueID("mdaDubDelay"); //identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Dub Feedback Delay");
diff --git a/src/mdaDynamics.cpp b/src/mdaDynamics.cpp
index 57b92a7..5cd1d93 100644
--- a/src/mdaDynamics.cpp
+++ b/src/mdaDynamics.cpp
@@ -22,7 +22,7 @@ mdaDynamics::mdaDynamics(audioMasterCallback audioMaster) : AudioEffectX(audioMa
setNumInputs(2); // stereo in
setNumOutputs(2); // stereo out
- setUniqueID("mdaN"); // identify
+ setUniqueID("mdaDynamics"); // identify
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing(); // supports both accumulating and replacing output
strcpy(programName, "Dynamics"); // default program name
diff --git a/src/mdaEPiano.cpp b/src/mdaEPiano.cpp
index f4c8812..8ec03b2 100644
--- a/src/mdaEPiano.cpp
+++ b/src/mdaEPiano.cpp
@@ -30,6 +30,8 @@ mdaEPiano::mdaEPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster
fillpatch(i++, " ", 0.500f, 0.500f, 0.500f, 0.500f, 0.500f, 0.650f, 0.250f, 0.500f, 0.50f, 0.500f, 0.146f, 0.000f);
setProgram(0);
}
+
+ setUniqueID("mdaEPiano");
if(audioMaster)
{
@@ -37,7 +39,6 @@ mdaEPiano::mdaEPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster
setNumOutputs(NOUTS);
canProcessReplacing();
isSynth();
- setUniqueID("MDAe"); ///
}
waves = epianoData;
diff --git a/src/mdaImage.cpp b/src/mdaImage.cpp
index 1127e15..b2b9019 100644
--- a/src/mdaImage.cpp
+++ b/src/mdaImage.cpp
@@ -19,7 +19,7 @@ mdaImage::mdaImage(audioMasterCallback audioMaster) : AudioEffectX(audioMaster,
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaI"); // identify here
+ setUniqueID("mdaImage"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Stereo Image / MS Matrix");
diff --git a/src/mdaJX10.cpp b/src/mdaJX10.cpp
index 4014d5c..07c6e95 100644
--- a/src/mdaJX10.cpp
+++ b/src/mdaJX10.cpp
@@ -121,6 +121,8 @@ mdaJX10::mdaJX10(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, NP
setProgram(0);
}
+
+ setUniqueID("mdaJX10");
if(audioMaster)
{
@@ -128,7 +130,6 @@ mdaJX10::mdaJX10(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, NP
setNumOutputs(NOUTS);
canProcessReplacing();
isSynth();
- setUniqueID("MDAj"); ///
}
//initialise...
diff --git a/src/mdaLeslie.cpp b/src/mdaLeslie.cpp
index 97d2718..95ce97c 100644
--- a/src/mdaLeslie.cpp
+++ b/src/mdaLeslie.cpp
@@ -27,6 +27,15 @@ mdaLeslieProgram::mdaLeslieProgram()
mdaLeslie::mdaLeslie(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 3, 9) // programs, parameters
{
+ fParam1 = 0.66f;
+ fParam7 = 0.50f;
+ fParam9 = 0.60f;
+ fParam4 = 0.70f;
+ fParam5 = 0.60f;
+ fParam6 = 0.70f;
+ fParam3 = 0.48f;
+ fParam2 = 0.50f;
+ fParam8 = 0.50f;
size = 256; hpos = 0;
hbuf = new float[size];
@@ -35,7 +44,7 @@ mdaLeslie::mdaLeslie(audioMasterCallback audioMaster) : AudioEffectX(audioMaster
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaH"); // identify here
+ setUniqueID("mdaLeslie"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
suspend();
diff --git a/src/mdaLimiter.cpp b/src/mdaLimiter.cpp
index a5dc26b..79cfb98 100644
--- a/src/mdaLimiter.cpp
+++ b/src/mdaLimiter.cpp
@@ -17,7 +17,7 @@ mdaLimiter::mdaLimiter(audioMasterCallback audioMaster) : AudioEffectX(audioMast
setNumInputs(2); // stereo in
setNumOutputs(2); // stereo out
- setUniqueID("mdaL"); // identify
+ setUniqueID("mdaLimiter"); // identify
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing(); // supports both accumulating and replacing output
strcpy(programName, "Limiter"); // default program name
diff --git a/src/mdaLooplex.cpp b/src/mdaLooplex.cpp
index 33c5e29..67c3262 100644
--- a/src/mdaLooplex.cpp
+++ b/src/mdaLooplex.cpp
@@ -125,6 +125,8 @@ mdaLooplex::mdaLooplex(audioMasterCallback audioMaster) : AudioEffectX(audioMast
programs = new mdaLooplexProgram[NPROGS];
if(programs) setProgram(0);
+
+ setUniqueID("mdaLoopLex");
if(audioMaster)
{
@@ -132,7 +134,6 @@ mdaLooplex::mdaLooplex(audioMasterCallback audioMaster) : AudioEffectX(audioMast
setNumOutputs(NOUTS);
canProcessReplacing();
//needIdle(); idle is broken in VST2.4
- setUniqueID("MDA~"); ///
}
update();
diff --git a/src/mdaLoudness.cpp b/src/mdaLoudness.cpp
index b94e66a..6032a9e 100644
--- a/src/mdaLoudness.cpp
+++ b/src/mdaLoudness.cpp
@@ -50,7 +50,7 @@ mdaLoudness::mdaLoudness(audioMasterCallback audioMaster): AudioEffectX(audioMas
{
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdal");
+ setUniqueID("mdaLoudness");
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
diff --git a/src/mdaMultiBand.cpp b/src/mdaMultiBand.cpp
index 5bda298..af05c0c 100644
--- a/src/mdaMultiBand.cpp
+++ b/src/mdaMultiBand.cpp
@@ -40,7 +40,7 @@ mdaMultiBand::mdaMultiBand(audioMasterCallback audioMaster) : AudioEffectX(audio
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaM"); // identify here
+ setUniqueID("mdaMultiBand"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Multi-Band Compressor");
diff --git a/src/mdaOverdrive.cpp b/src/mdaOverdrive.cpp
index ee72611..e7b0440 100644
--- a/src/mdaOverdrive.cpp
+++ b/src/mdaOverdrive.cpp
@@ -16,7 +16,7 @@ mdaOverdrive::mdaOverdrive(audioMasterCallback audioMaster) : AudioEffectX(audio
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaO"); // identify
+ setUniqueID("mdaOverdrive"); // identify
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Soft Overdrive");
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp
index fa1b3c1..090c902 100644
--- a/src/mdaPiano.cpp
+++ b/src/mdaPiano.cpp
@@ -60,6 +60,8 @@ mdaPiano::mdaPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster,
setProgram(0);
}
+
+ setUniqueID("mdaPiano");
if(audioMaster)
{
@@ -67,7 +69,6 @@ mdaPiano::mdaPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster,
setNumOutputs(NOUTS);
canProcessReplacing();
isSynth();
- setUniqueID("MDAp"); ///
}
waves = pianoData;
diff --git a/src/mdaRePsycho.cpp b/src/mdaRePsycho.cpp
index 18689b8..792b9d5 100644
--- a/src/mdaRePsycho.cpp
+++ b/src/mdaRePsycho.cpp
@@ -24,7 +24,7 @@ mdaRePsycho::mdaRePsycho(audioMasterCallback audioMaster) : AudioEffectX(audioMa
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaY"); // identify here
+ setUniqueID("mdaRePsycho"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Re-PsYcHo!");
diff --git a/src/mdaRezFilter.cpp b/src/mdaRezFilter.cpp
index e2ac735..673171d 100644
--- a/src/mdaRezFilter.cpp
+++ b/src/mdaRezFilter.cpp
@@ -25,7 +25,7 @@ mdaRezFilter::mdaRezFilter(audioMasterCallback audioMaster) : AudioEffectX(audio
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaF");
+ setUniqueID("mdaRezFilter");
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Resonant Filter");
diff --git a/src/mdaRingMod.cpp b/src/mdaRingMod.cpp
index 42b7eda..d36bd0e 100644
--- a/src/mdaRingMod.cpp
+++ b/src/mdaRingMod.cpp
@@ -20,7 +20,7 @@ mdaRingMod::mdaRingMod(audioMasterCallback audioMaster) : AudioEffectX(audioMast
setNumInputs(2); // stereo in
setNumOutputs(2); // stereo out
- setUniqueID("mdaR"); // identify
+ setUniqueID("mdaRingMod"); // identify
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing(); // supports both accumulating and replacing output
strcpy(programName, "Ring Modulator"); // default program name
diff --git a/src/mdaRoundPan.cpp b/src/mdaRoundPan.cpp
index b99f68c..8530fbf 100644
--- a/src/mdaRoundPan.cpp
+++ b/src/mdaRoundPan.cpp
@@ -21,7 +21,7 @@ mdaRoundPan::mdaRoundPan(audioMasterCallback audioMaster) : AudioEffectX(audioMa
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaP"); // identify here
+ setUniqueID("mdaRoundPan"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Round Panner");
diff --git a/src/mdaShepard.cpp b/src/mdaShepard.cpp
index 4c5ecf8..08d1007 100644
--- a/src/mdaShepard.cpp
+++ b/src/mdaShepard.cpp
@@ -25,7 +25,7 @@ mdaShepard::mdaShepard(audioMasterCallback audioMaster) : AudioEffectX(audioMast
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaX"); //
+ setUniqueID("mdaShepard"); //
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Shepard Tone Generator");
diff --git a/src/mdaSplitter.cpp b/src/mdaSplitter.cpp
index 2d26c83..cbd8b2c 100644
--- a/src/mdaSplitter.cpp
+++ b/src/mdaSplitter.cpp
@@ -33,7 +33,7 @@ mdaSplitter::mdaSplitter(audioMasterCallback audioMaster): AudioEffectX(audioMas
{
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mda7"); ///identify plug-in here
+ setUniqueID("mdaSplitter"); ///identify plug-in here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
diff --git a/src/mdaStereo.cpp b/src/mdaStereo.cpp
index 91021a9..628d675 100644
--- a/src/mdaStereo.cpp
+++ b/src/mdaStereo.cpp
@@ -23,7 +23,7 @@ mdaStereo::mdaStereo(audioMasterCallback audioMaster) : AudioEffectX(audioMaster
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaS"); // identify here
+ setUniqueID("mdaStereo"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Stereo Simulator");
diff --git a/src/mdaSubSynth.cpp b/src/mdaSubSynth.cpp
index 898bf7b..b2b267b 100644
--- a/src/mdaSubSynth.cpp
+++ b/src/mdaSubSynth.cpp
@@ -21,7 +21,7 @@ mdaSubSynth::mdaSubSynth(audioMasterCallback audioMaster)
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaB"); // identify here
+ setUniqueID("mdaSubSynth"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Sub Bass Synthesizer");
diff --git a/src/mdaTalkBox.cpp b/src/mdaTalkBox.cpp
index 44d647a..5044031 100644
--- a/src/mdaTalkBox.cpp
+++ b/src/mdaTalkBox.cpp
@@ -31,7 +31,7 @@ mdaTalkBox::mdaTalkBox(audioMasterCallback audioMaster): AudioEffectX(audioMaste
{
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mda&"); ///identify plug-in here
+ setUniqueID("mdaTalkBox"); ///identify plug-in here
//canMono();
canProcessReplacing();
diff --git a/src/mdaTestTone.cpp b/src/mdaTestTone.cpp
index bbccbfc..2aa5645 100644
--- a/src/mdaTestTone.cpp
+++ b/src/mdaTestTone.cpp
@@ -21,7 +21,7 @@ mdaTestTone::mdaTestTone(audioMasterCallback audioMaster) : AudioEffectX(audioMa
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaT");
+ setUniqueID("mdaTestTone");
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Signal Generator");
diff --git a/src/mdaThruZero.cpp b/src/mdaThruZero.cpp
index a18827b..d942767 100644
--- a/src/mdaThruZero.cpp
+++ b/src/mdaThruZero.cpp
@@ -31,7 +31,7 @@ mdaThruZero::mdaThruZero(audioMasterCallback audioMaster): AudioEffectX(audioMas
{
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaZ"); ///identify plug-in here
+ setUniqueID("mdaThruZero"); ///identify plug-in here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
diff --git a/src/mdaTracker.cpp b/src/mdaTracker.cpp
index d1fc3fb..34c3787 100644
--- a/src/mdaTracker.cpp
+++ b/src/mdaTracker.cpp
@@ -22,7 +22,7 @@ mdaTracker::mdaTracker(audioMasterCallback audioMaster) : AudioEffectX(audioMast
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdaJ"); // identify here
+ setUniqueID("mdaTracker"); // identify here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
strcpy(programName, "Pitch Tracker");
diff --git a/src/mdaTransient.cpp b/src/mdaTransient.cpp
index 44f5238..b2438c6 100644
--- a/src/mdaTransient.cpp
+++ b/src/mdaTransient.cpp
@@ -18,7 +18,7 @@ mdaTransient::mdaTransient(audioMasterCallback audioMaster) : AudioEffectX(audio
setNumInputs(2); // stereo in
setNumOutputs(2); // stereo out
- setUniqueID("mdaK"); // identify
+ setUniqueID("mdaTransient"); // identify
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing(); // supports both accumulating and replacing output
strcpy(programName, "Transient Processor"); // default program name
diff --git a/src/mdaVocInput.cpp b/src/mdaVocInput.cpp
index a595158..e07a2b8 100644
--- a/src/mdaVocInput.cpp
+++ b/src/mdaVocInput.cpp
@@ -31,7 +31,7 @@ mdaVocInput::mdaVocInput(audioMasterCallback audioMaster): AudioEffectX(audioMas
{
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mda3"); ///identify plug-in here
+ setUniqueID("mdaVocInput"); ///identify plug-in here
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
diff --git a/src/mdaVocoder.cpp b/src/mdaVocoder.cpp
index c6a6ed4..5fca474 100644
--- a/src/mdaVocoder.cpp
+++ b/src/mdaVocoder.cpp
@@ -34,7 +34,7 @@ mdaVocoder::mdaVocoder(audioMasterCallback audioMaster): AudioEffectX(audioMaste
{
setNumInputs(2);
setNumOutputs(2);
- setUniqueID("mdav"); ///identify plug-in here
+ setUniqueID("mdaVocoder"); ///identify plug-in here
//canMono();
canProcessReplacing();
diff --git a/src/mdaspecmeter.cpp b/src/mdaspecmeter.cpp
index 0aca5ee..32e0efa 100644
--- a/src/mdaspecmeter.cpp
+++ b/src/mdaspecmeter.cpp
@@ -41,7 +41,7 @@ mdaSpecMeter::mdaSpecMeter(audioMasterCallback audioMaster) : AudioEffectX(audio
setNumInputs(2);
setNumOutputs(2);
DECLARE_LVZ_DEPRECATED(canMono) ();
- setUniqueID("mda?");
+ setUniqueID("mdaSpecMeter");
canProcessReplacing();
//initialise...