aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaBandisto.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-21 20:37:31 +0000
committerDavid Robillard <d@drobilla.net>2012-04-21 20:37:31 +0000
commit45a8dff2631c32677cc54d49d5e697a9b209288b (patch)
tree83ccb6522c46c84f0b7e93820fc3ca651c20d956 /src/mdaBandisto.cpp
parent5fde36cdaee35b206e0a79396da59536182469e2 (diff)
downloadmda.lv2-45a8dff2631c32677cc54d49d5e697a9b209288b.tar.gz
mda.lv2-45a8dff2631c32677cc54d49d5e697a9b209288b.tar.bz2
mda.lv2-45a8dff2631c32677cc54d49d5e697a9b209288b.zip
Add presets.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4219 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaBandisto.cpp')
-rw-r--r--src/mdaBandisto.cpp6
1 files changed, 3 insertions, 3 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;