diff options
author | David Robillard <d@drobilla.net> | 2012-03-28 00:19:37 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-28 00:19:37 +0000 |
commit | 71b9c3ae5fb85414f56c152eaf9d075bbfc0f6ff (patch) | |
tree | 26362d908f0bf1a9480d511487ac6e006d3f02b7 /src | |
parent | cff1d802d8208f675e33ae50a5ac34018c1367c7 (diff) | |
download | mda.lv2-71b9c3ae5fb85414f56c152eaf9d075bbfc0f6ff.tar.gz mda.lv2-71b9c3ae5fb85414f56c152eaf9d075bbfc0f6ff.tar.bz2 mda.lv2-71b9c3ae5fb85414f56c152eaf9d075bbfc0f6ff.zip |
Mark up control properties, port groups, and add documentation for plugins and ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mdala.lv2@4118 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/mdaBandisto.cpp | 8 | ||||
-rw-r--r-- | src/mdaCombo.cpp | 8 | ||||
-rw-r--r-- | src/mdaLimiter.cpp | 10 |
3 files changed, 13 insertions, 13 deletions
diff --git a/src/mdaBandisto.cpp b/src/mdaBandisto.cpp index 82282ca..1ac2ff2 100644 --- a/src/mdaBandisto.cpp +++ b/src/mdaBandisto.cpp @@ -39,7 +39,7 @@ mdaBandisto::mdaBandisto(audioMasterCallback audioMaster) : AudioEffectX(audioMa fParam7 = (float)0.50; //L trim (2) fParam8 = (float)0.50; //M trim fParam9 = (float)0.50; //H trim - fParam10 = (float)0.4; //transistor/valve + fParam10 = (float)0.0; //unipolar/bipolar setNumInputs(2); setNumOutputs(2); @@ -53,7 +53,7 @@ mdaBandisto::mdaBandisto(audioMasterCallback audioMaster) : AudioEffectX(audioMa driv2 = (float)pow(10.0,(6.0 * fParam5 *fParam5) - 1.0); driv3 = (float)pow(10.0,(6.0 * fParam6 *fParam6) - 1.0); - valve = int(1.99 * fParam10); + valve = int(fParam10 > 0.0); if(valve) { trim1 = (float)(0.5); @@ -131,7 +131,7 @@ void mdaBandisto::setParameter(LvzInt32 index, float value) driv2 = (float)pow(10.0,(6.0 * fParam5 *fParam5) - 1.0); driv3 = (float)pow(10.0,(6.0 * fParam6 *fParam6) - 1.0); - valve = int(1.99 * fParam10); + valve = int(fParam10 > 0.0); if(valve) { trim1 = (float)(0.5); @@ -213,7 +213,7 @@ void mdaBandisto::getParameterDisplay(LvzInt32 index, char *text) case 6: sprintf(text, "%.0f", 40.0 * fParam7 - 20.0); break; case 7: sprintf(text, "%.0f", 40.0 * fParam8 - 20.0); break; case 8: sprintf(text, "%.0f", 40.0 * fParam9 - 20.0); break; - case 9: if(fParam10>0.5) { strcpy(text, "Unipolar"); } + case 9: if(fParam10>0.0) { strcpy(text, "Unipolar"); } else { strcpy(text, "Bipolar"); } break; } } diff --git a/src/mdaCombo.cpp b/src/mdaCombo.cpp index 05f1ca0..84b5c70 100644 --- a/src/mdaCombo.cpp +++ b/src/mdaCombo.cpp @@ -33,7 +33,7 @@ mdaCombo::mdaCombo(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, fParam2 = 0.50f; //drive fParam3 = 0.50f; //bias fParam4 = 0.50f; //output - fParam5 = 0.40f; //stereo + fParam5 = 0.00f; //stereo fParam6 = 0.00f; //hpf freq fParam7 = 0.50f; //hpf reso @@ -70,7 +70,7 @@ void mdaCombo::setParameter(LvzInt32 index, float value) case 6: fParam7 = value; break; } //calcs here - ster=0; if(fParam5>0.5) ster=1; + ster=0; if(fParam5>0.0) ster=1; hpf = filterFreq(25.f); switch(int(fParam1*6.9)) { @@ -244,7 +244,7 @@ void mdaCombo::getParameterDisplay(LvzInt32 index, char *text) case 1: int2strng((LvzInt32)(200 * fParam2 - 100), text); break; case 2: int2strng((LvzInt32)(200 * fParam3 - 100), text); break; case 3: int2strng((LvzInt32)(40 * fParam4 - 20), text); break; - case 4: if(fParam5>0.5) strcpy(text, "STEREO"); + case 4: if(fParam5>0.0) strcpy(text, "STEREO"); else strcpy(text, "MONO"); break; case 5: int2strng((LvzInt32)(100 * fParam6), text); break; case 6: int2strng((LvzInt32)(100 * fParam7), text); break; @@ -288,7 +288,7 @@ void mdaCombo::process(float **inputs, float **outputs, LvzInt32 sampleFrames) --out1; --out2; - if(fParam5>0.5) //stereo + if(fParam5>0.0) //stereo { while(--sampleFrames >= 0) { diff --git a/src/mdaLimiter.cpp b/src/mdaLimiter.cpp index 02fff3b..d29cf0d 100644 --- a/src/mdaLimiter.cpp +++ b/src/mdaLimiter.cpp @@ -31,7 +31,7 @@ mdaLimiter::mdaLimiter(audioMasterCallback audioMaster) : AudioEffectX(audioMast fParam2 = (float)0.60; //trim fParam3 = (float)0.15; //attack fParam4 = (float)0.50; //release - fParam5 = (float)0.40; //knee + fParam5 = (float)0.0; //knee setNumInputs(2); // stereo in setNumOutputs(2); // stereo out @@ -40,7 +40,7 @@ mdaLimiter::mdaLimiter(audioMasterCallback audioMaster) : AudioEffectX(audioMast canProcessReplacing(); // supports both accumulating and replacing output strcpy(programName, "Limiter"); // default program name - if(fParam5>0.5) //soft knee + if(fParam5>0.0) //soft knee { thresh = (float)pow(10.0, 1.0 - (2.0 * fParam1)); } @@ -94,7 +94,7 @@ void mdaLimiter::setParameter(LvzInt32 index, float value) case 4: fParam5 = value; break; } //calcs here - if(fParam5>0.5) //soft knee + if(fParam5>0.0) //soft knee { thresh = (float)pow(10.0, 1.0 - (2.0 * fParam1)); } @@ -145,8 +145,8 @@ void mdaLimiter::getParameterDisplay(LvzInt32 index, char *text) case 1: int2strng((LvzInt32)(40.0*fParam2 - 20.0),text); break; case 3: int2strng((LvzInt32)(-301030.1 / (getSampleRate() * log10(1.0 - att))),text); break; case 2: int2strng((LvzInt32)(-301.0301 / (getSampleRate() * log10(1.0 - rel))),text); break; - case 4: if(fParam5<0.5) strcpy(text, "HARD"); - else strcpy(text, "SOFT"); break; + case 4: if(fParam5>0.0) strcpy(text, "SOFT"); + else strcpy(text, "HARD"); break; } } |