aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mdaBandisto.cpp6
-rw-r--r--src/mdaDeEss.cpp7
-rw-r--r--src/mdaDetune.h2
-rw-r--r--src/mdaDynamics.cpp3
-rw-r--r--src/mdaEPiano.cpp3
-rw-r--r--src/mdaEPiano.h2
-rw-r--r--src/mdaImage.cpp2
-rw-r--r--src/mdaLeslie.cpp6
-rw-r--r--src/mdaMultiBand.cpp27
-rw-r--r--src/mdaRePsycho.cpp8
-rw-r--r--src/mdaRezFilter.cpp4
-rw-r--r--src/mdaSplitter.cpp4
-rw-r--r--src/mdaSplitter.h2
-rw-r--r--src/mdaTestTone.cpp2
-rw-r--r--src/mdaTracker.cpp4
-rw-r--r--src/mdaTransient.cpp2
-rw-r--r--src/mdaVocInput.cpp7
-rw-r--r--src/mdaVocoder.cpp8
18 files changed, 59 insertions, 40 deletions
diff --git a/src/mdaBandisto.cpp b/src/mdaBandisto.cpp
index 64d893c..50d5a2a 100644
--- a/src/mdaBandisto.cpp
+++ b/src/mdaBandisto.cpp
@@ -70,7 +70,7 @@ mdaBandisto::mdaBandisto(audioMasterCallback audioMaster) : AudioEffectX(audioMa
trim2 = (float)(trim2 * pow(10.0, 2.0 * fParam8 - 1.0));
trim3 = (float)(trim3 * pow(10.0, 2.0 * fParam9 - 1.0));
- switch(int(fParam1*5.0))
+ switch(int(fParam1*3.9))
{
case 0: trim2=0.0; trim3=0.0; slev=0.0; break;
case 1: trim1=0.0; trim3=0.0; slev=0.0; break;
@@ -148,7 +148,7 @@ void mdaBandisto::setParameter(int32_t index, float value)
trim2 = (float)(trim2 * pow(10.0, 2.0 * fParam8 - 1.0));
trim3 = (float)(trim3 * pow(10.0, 2.0 * fParam9 - 1.0));
- switch(int(fParam1*5.0))
+ switch(int(fParam1*3.9))
{
case 0: trim2=0.0; trim3=0.0; slev=0.0; break;
case 1: trim1=0.0; trim3=0.0; slev=0.0; break;
@@ -200,7 +200,7 @@ void mdaBandisto::getParameterDisplay(int32_t index, char *text)
{
switch(index)
{
- case 0: switch(int(fParam1*5.0))
+ case 0: switch(int(fParam1*3.9))
{ case 0: strcpy(text, "Low"); break;
case 1: strcpy(text, "Mid"); break;
case 2: strcpy(text, "High"); break;
diff --git a/src/mdaDeEss.cpp b/src/mdaDeEss.cpp
index f3cbad1..18a8096 100644
--- a/src/mdaDeEss.cpp
+++ b/src/mdaDeEss.cpp
@@ -32,6 +32,13 @@ mdaDeEss::mdaDeEss(audioMasterCallback audioMaster) : AudioEffectX(audioMaster,
fParam1 = (float)0.15f; //thresh
fParam2 = (float)0.60f; //f
fParam3 = (float)0.50f; //drive
+ fbuf1 = 0.0f;
+ fbuf2 = 0.0f;
+ gai = 0.0f;
+ thr = 0.0f;
+ att = 0.0f;
+ rel = 0.0f;
+ fil = 0.0f;
setNumInputs(2);
setNumOutputs(2);
setUniqueID("mdaDeEss"); //identify here
diff --git a/src/mdaDetune.h b/src/mdaDetune.h
index 08741e6..1ae151e 100644
--- a/src/mdaDetune.h
+++ b/src/mdaDetune.h
@@ -17,7 +17,7 @@
*/
#define NPARAMS 4 ///number of parameters
-#define NPROGS 4 ///number of programs
+#define NPROGS 3 ///number of programs
#define BUFMAX 4096
#ifndef __mdaDetune_H
diff --git a/src/mdaDynamics.cpp b/src/mdaDynamics.cpp
index 2c7d644..65f7ce2 100644
--- a/src/mdaDynamics.cpp
+++ b/src/mdaDynamics.cpp
@@ -37,6 +37,9 @@ mdaDynamics::mdaDynamics(audioMasterCallback audioMaster) : AudioEffectX(audioMa
fParam8 = (float)0.10; //gate attack
fParam9 = (float)0.50; //gate decay
fParam10= (float)1.00; //fx mix
+ thr = rat = env = env2 = att = rel = trim = lthr = xthr = xrat = dry = 0.0f;
+ genv = gatt = irel = 0.0f;
+ mode = 0;
setNumInputs(2); // stereo in
setNumOutputs(2); // stereo out
diff --git a/src/mdaEPiano.cpp b/src/mdaEPiano.cpp
index 69d5889..3aa101a 100644
--- a/src/mdaEPiano.cpp
+++ b/src/mdaEPiano.cpp
@@ -45,9 +45,6 @@ mdaEPiano::mdaEPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster
fillpatch(i++, "Mellow", 0.500f, 0.500f, 0.000f, 0.000f, 0.500f, 0.650f, 0.250f, 0.500f, 0.50f, 0.500f, 0.246f, 0.000f);
fillpatch(i++, "Autopan", 0.500f, 0.500f, 0.500f, 0.500f, 0.250f, 0.650f, 0.250f, 0.500f, 0.50f, 0.500f, 0.246f, 0.000f);
fillpatch(i++, "Tremolo", 0.500f, 0.500f, 0.500f, 0.500f, 0.750f, 0.650f, 0.250f, 0.500f, 0.50f, 0.500f, 0.246f, 0.000f);
- fillpatch(i++, "(default)", 0.500f, 0.500f, 0.500f, 0.500f, 0.500f, 0.650f, 0.250f, 0.500f, 0.50f, 0.500f, 0.146f, 0.000f);
- fillpatch(i++, "(default)", 0.500f, 0.500f, 0.500f, 0.500f, 0.500f, 0.650f, 0.250f, 0.500f, 0.50f, 0.500f, 0.146f, 0.000f);
- fillpatch(i++, "(default)", 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);
}
diff --git a/src/mdaEPiano.h b/src/mdaEPiano.h
index 26056a3..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
diff --git a/src/mdaImage.cpp b/src/mdaImage.cpp
index 06799b6..50d2ffa 100644
--- a/src/mdaImage.cpp
+++ b/src/mdaImage.cpp
@@ -28,7 +28,7 @@ AudioEffect *createEffectInstance(audioMasterCallback audioMaster)
mdaImage::mdaImage(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 1, 6) // programs, parameters
{
- fParam1 = 0.6f; //mode
+ fParam1 = 0.0f; //mode
fParam2 = 0.75f; //width
fParam3 = 0.5f; //skew
fParam4 = 0.75f; //centre
diff --git a/src/mdaLeslie.cpp b/src/mdaLeslie.cpp
index 745936f..865133b 100644
--- a/src/mdaLeslie.cpp
+++ b/src/mdaLeslie.cpp
@@ -31,7 +31,7 @@ AudioEffect *createEffectInstance(audioMasterCallback audioMaster)
mdaLeslieProgram::mdaLeslieProgram()
{
- param[0] = 0.66f;
+ param[0] = 0.5f;
param[1] = 0.50f;
param[2] = 0.48f;
param[3] = 0.70f;
@@ -60,11 +60,11 @@ mdaLeslie::mdaLeslie(audioMasterCallback audioMaster) : AudioEffectX(audioMaster
programs = new mdaLeslieProgram[numPrograms];
if(programs)
{
- programs[1].param[0] = 0.33f;
+ programs[1].param[0] = 0.5f;
programs[1].param[4] = 0.75f;
programs[1].param[5] = 0.57f;
strcpy(programs[1].name,"Slow");
- programs[2].param[0] = 0.66f;
+ programs[2].param[0] = 1.0f;
programs[2].param[4] = 0.60f;
programs[2].param[5] = 0.70f;
strcpy(programs[2].name,"Fast");
diff --git a/src/mdaMultiBand.cpp b/src/mdaMultiBand.cpp
index 9998148..984e3b4 100644
--- a/src/mdaMultiBand.cpp
+++ b/src/mdaMultiBand.cpp
@@ -41,7 +41,7 @@ mdaMultiBand::mdaMultiBand(audioMasterCallback audioMaster) : AudioEffectX(audio
fParam10 = (float)0.22; //attack (3)
fParam11 = (float)0.602; //release (4)
fParam12 = (float)0.55; //width
- fParam13 = (float)0.40; //MS swap
+ fParam13 = (float)0.00; //MS swap
/* fParam1 = (float)1.00; //Listen: L/M/H/out
fParam2 = (float)0.50; //xover1
fParam3 = (float)0.50; //xover2
@@ -85,17 +85,16 @@ mdaMultiBand::mdaMultiBand(audioMasterCallback audioMaster) : AudioEffectX(audio
att3 = (float)pow(10.0, -0.05 -(1.5 * fParam10));
rel3 = (float)pow(10.0, -2.0 - (2.5 * fParam11));
- switch(int(fParam1*10.0))
+ switch(int(fParam1*3.9))
{
case 0: trim2=0.0; trim3=0.0; slev=0.0; break;
- case 1:
- case 2: trim1=0.0; trim3=0.0; slev=0.0; break;
- case 3:
- case 4: trim1=0.0; trim2=0.0; slev=0.0; break;
+ case 1: trim1=0.0; trim3=0.0; slev=0.0; break;
+ case 2: trim1=0.0; trim2=0.0; slev=0.0; break;
default: slev=fParam12; break;
}
fi1 = (float)pow(10.0,fParam2 - 1.70); fo1=(float)(1.0 - fi1);
fi2 = (float)pow(10.0,fParam3 - 1.05); fo2=(float)(1.0 - fi2);
+ fb1 = fb2 = fb3 = 0.0f;
mswap = 0;
}
@@ -165,19 +164,17 @@ void mdaMultiBand::setParameter(int32_t index, float value)
att3 = (float)pow(10.0, -0.05 -(1.5 * fParam10));
rel3 = (float)pow(10.0, -2.0 - (2.5 * fParam11));
- switch(int(fParam1*10.0))
+ switch(int(fParam1*3.9))
{
case 0: trim2=0.0; trim3=0.0; slev=0.0; break;
- case 1:
- case 2: trim1=0.0; trim3=0.0; slev=0.0; break;
- case 3:
- case 4: trim1=0.0; trim2=0.0; slev=0.0; break;
+ case 1: trim1=0.0; trim3=0.0; slev=0.0; break;
+ case 2: trim1=0.0; trim2=0.0; slev=0.0; break;
default: slev=fParam12; break;
}
fi1 = (float)pow(10.0,fParam2 - 1.70); fo1=(float)(1.0 - fi1);
fi2 = (float)pow(10.0,fParam3 - 1.05); fo2=(float)(1.0 - fi2);
- if(fParam13>0.5) mswap=1; else mswap=0;
+ if(fParam13>0.0) mswap=1; else mswap=0;
}
float mdaMultiBand::getParameter(int32_t index)
@@ -230,10 +227,10 @@ void mdaMultiBand::getParameterDisplay(int32_t index, char *text)
{
switch(index)
{
- case 0: switch(int(fParam1*10.0))
+ case 0: switch(int(fParam1*3.9))
{ case 0: strcpy(text, "Low"); break;
- case 1: case 2: strcpy(text, "Mid"); break;
- case 3: case 4: strcpy(text, "High"); break;
+ case 1: strcpy(text, "Mid"); break;
+ case 2: strcpy(text, "High"); break;
default: strcpy(text, "Output"); break; } break;
case 1: int2strng((int32_t)(getSampleRate() * fi1 * (0.098 + 0.09*fi1 + 0.5*(float)pow(fi1,8.2f))), text); break;
case 2: int2strng((int32_t)(getSampleRate() * fi2 * (0.015 + 0.15*fi2 + 0.9*(float)pow(fi2,8.2f))), text); break;
diff --git a/src/mdaRePsycho.cpp b/src/mdaRePsycho.cpp
index 7a882ce..4469b49 100644
--- a/src/mdaRePsycho.cpp
+++ b/src/mdaRePsycho.cpp
@@ -35,7 +35,7 @@ mdaRePsycho::mdaRePsycho(audioMasterCallback audioMaster) : AudioEffectX(audioMa
fParam4 = (float)1.0; //mix
fParam5 = (float)0.45; //minimum chunk length
fParam6 = (float)1.0; //fine tune
- fParam7 = (float)0.4; //quality
+ fParam7 = (float)0.0; //quality
size = 22050;
buffer = new float[size];
buffer2 = new float[size];
@@ -168,7 +168,7 @@ void mdaRePsycho::getParameterDisplay(int32_t index, char *text)
case 5: long2string((long)(100.0 * fParam4), text); break;
case 4: long2string((long)(1000.0 * dtim / getSampleRate()), text); break;
case 1: long2string((long)(int(99.0 * fParam6) - 99.0), text); break;
- case 6: if(fParam7>0.5) strcpy(text, "HIGH");
+ case 6: if(fParam7>0.0) strcpy(text, "HIGH");
else strcpy(text, "LOW"); break;
}
}
@@ -207,7 +207,7 @@ void mdaRePsycho::process(float **inputs, float **outputs, int32_t sampleFrames)
--out1;
--out2;
- if(fParam7>0.5) //high quality
+ if(fParam7>0.0) //high quality
{
we=(float)(we*2.0);
while(--sampleFrames >= 0)
@@ -338,7 +338,7 @@ void mdaRePsycho::processReplacing(float **inputs, float **outputs, int32_t samp
--out1;
--out2;
- if(fParam7>0.5) //high quality
+ if(fParam7>0.0) //high quality
{
we=(float)(we*2.0);
while(--sampleFrames >= 0)
diff --git a/src/mdaRezFilter.cpp b/src/mdaRezFilter.cpp
index d89f358..98d3da0 100644
--- a/src/mdaRezFilter.cpp
+++ b/src/mdaRezFilter.cpp
@@ -41,6 +41,10 @@ mdaRezFilter::mdaRezFilter(audioMasterCallback audioMaster) : AudioEffectX(audio
fParam8 = 0.00f; //trigger
fParam9 = 0.75f; //max freq
+ fff = fq = fg = fmax = env = fenv = att = rel = 0.0f;
+ flfo = phi = dphi = bufl = buf0 = buf1 = buf2 = tthr = env2 = 0.0f;
+ lfomode = ttrig = tatt = 0;
+
setNumInputs(2);
setNumOutputs(2);
setUniqueID("mdaRezFilter");
diff --git a/src/mdaSplitter.cpp b/src/mdaSplitter.cpp
index d98d8ed..881c2ef 100644
--- a/src/mdaSplitter.cpp
+++ b/src/mdaSplitter.cpp
@@ -41,9 +41,9 @@ mdaSplitter::mdaSplitter(audioMasterCallback audioMaster): AudioEffectX(audioMas
///differences from default program...
programs[1].param[2] = 0.50f;
- programs[1].param[4] = 0.25f;
+ programs[1].param[4] = 0.0f;
strcpy(programs[1].name,"Pass Peaks Only");
- programs[2].param[0] = 0.60f;
+ programs[2].param[0] = 0.66666666f;
strcpy(programs[2].name,"Stereo Crossover");
setProgram(0);
diff --git a/src/mdaSplitter.h b/src/mdaSplitter.h
index 398b3ca..d2e237e 100644
--- a/src/mdaSplitter.h
+++ b/src/mdaSplitter.h
@@ -29,7 +29,7 @@ class mdaSplitterProgram
public:
mdaSplitterProgram()
{
- param[0] = 0.10f; //mode
+ param[0] = 0.00f; //mode
param[1] = 0.50f; //freq
param[2] = 0.25f; //freq mode
param[3] = 0.50f; //level (was 2)
diff --git a/src/mdaTestTone.cpp b/src/mdaTestTone.cpp
index 9aa98b2..96eee47 100644
--- a/src/mdaTestTone.cpp
+++ b/src/mdaTestTone.cpp
@@ -28,7 +28,7 @@ AudioEffect *createEffectInstance(audioMasterCallback audioMaster)
mdaTestTone::mdaTestTone(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 1, 8)
{
- fParam0 = 0.47f; //mode
+ fParam0 = 0.0f; //mode
fParam1 = 0.71f; //level dB
fParam2 = 0.50f; //pan dB
fParam3 = 0.57f; //freq1 B
diff --git a/src/mdaTracker.cpp b/src/mdaTracker.cpp
index 7387a6b..f1c1d86 100644
--- a/src/mdaTracker.cpp
+++ b/src/mdaTracker.cpp
@@ -50,6 +50,10 @@ mdaTracker::mdaTracker(audioMasterCallback audioMaster) : AudioEffectX(audioMast
res1 = (float)cos(0.01); //p
res2 = (float)sin(0.01); //q
+ fi = fo = thr = phi = ddphi = trans = buf1 = buf2 = dn = bold = wet = dry = 0.0f;
+ dyn = env = rel = saw = dsaw = res1 = res2 = buf3 = buf4 = 0.0f;
+ max = min = num = sig = mode = 0;
+
setParameter(0, 0.0f);
}
diff --git a/src/mdaTransient.cpp b/src/mdaTransient.cpp
index 0edb476..8f435a6 100644
--- a/src/mdaTransient.cpp
+++ b/src/mdaTransient.cpp
@@ -41,6 +41,8 @@ mdaTransient::mdaTransient(audioMasterCallback audioMaster) : AudioEffectX(audio
canProcessReplacing(); // supports both accumulating and replacing output
strcpy(programName, "Transient Processor"); // default program name
+ dry = att1 = att2 = rel12 = att34 = rel3 = rel4 = 0.0f;
+ env1 = env2 = env3 = env4 = fili = filo = filx = fbuf1 = fbuf2 = 0.0f;
setParameter(0, 0.5f);
}
diff --git a/src/mdaVocInput.cpp b/src/mdaVocInput.cpp
index e008f80..854a41e 100644
--- a/src/mdaVocInput.cpp
+++ b/src/mdaVocInput.cpp
@@ -30,7 +30,7 @@ AudioEffect *createEffectInstance(audioMasterCallback audioMaster)
mdaVocInputProgram::mdaVocInputProgram() ///default program settings
{
- param[0] = 0.25f; //Tracking Off / On / Quant
+ param[0] = 0.0f; //Tracking Off / On / Quant
param[1] = 0.50f; //Pitch
param[2] = 0.20f; //Breath Noise
param[3] = 0.50f; //Voiced/Unvoiced Thresh
@@ -47,6 +47,11 @@ mdaVocInput::mdaVocInput(audioMasterCallback audioMaster): AudioEffectX(audioMas
DECLARE_LVZ_DEPRECATED(canMono) ();
canProcessReplacing();
+ track = 0;
+ pstep = pmult = sawbuf = noise = lenv = henv = 0.0f;
+ lbuf0 = lbuf1 = lbuf2 = lbuf3 = lfreq = vuv = maxp = minp = 0.0f;
+ root = 0.0;
+
programs = new mdaVocInputProgram[numPrograms];
setProgram(0);
diff --git a/src/mdaVocoder.cpp b/src/mdaVocoder.cpp
index cb40eed..bbdb1a2 100644
--- a/src/mdaVocoder.cpp
+++ b/src/mdaVocoder.cpp
@@ -30,14 +30,14 @@ AudioEffect *createEffectInstance(audioMasterCallback audioMaster)
mdaVocoderProgram::mdaVocoderProgram() ///default program settings
{
- param[0] = 0.33f; //input select
+ param[0] = 0.0f; //input select
param[1] = 0.50f; //output dB
param[2] = 0.40f; //hi thru
param[3] = 0.40f; //hi band
param[4] = 0.16f; //envelope
param[5] = 0.55f; //filter q
param[6] = 0.6667f;//freq range
- param[7] = 0.33f; //num bands
+ param[7] = 0.0f; //num bands
strcpy(name, "Vocoder");
}
@@ -54,7 +54,7 @@ mdaVocoder::mdaVocoder(audioMasterCallback audioMaster): AudioEffectX(audioMaste
setProgram(0);
///differences from default program...
- programs[1].param[7] = 0.66f;
+ programs[1].param[7] = 1.0f;
strcpy(programs[1].name,"16 Band Vocoder");
programs[2].param[2] = 0.00f;
programs[2].param[3] = 0.00f;
@@ -90,7 +90,7 @@ void mdaVocoder::resume() ///update internal parameters...
high = param[3] * param[3] * param[3] * thru;
thru *= param[2] * param[2] * param[2];
- if(param[7]<0.5f)
+ if(param[7]<=0.0f)
{
nbnd=8;
//re=0.003f;