aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-22 22:37:23 +0000
committerDavid Robillard <d@drobilla.net>2010-02-22 22:37:23 +0000
commit3a1f8673d51014c26a715e6f5442d8ec744a0cad (patch)
treea2978a05cc78fc48f69a647d5cb2e52e85929c40 /src
parent37e57b1109c635766e25700edbbb84ec9ad62eb9 (diff)
downloadmda.lv2-3a1f8673d51014c26a715e6f5442d8ec744a0cad.tar.gz
mda.lv2-3a1f8673d51014c26a715e6f5442d8ec744a0cad.tar.bz2
mda.lv2-3a1f8673d51014c26a715e6f5442d8ec744a0cad.zip
Fix wonky parameters of MDA SpecMeter.
git-svn-id: http://svn.drobilla.net/lad/trunk/mda-lv2@2477 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/mdaSpecMeter.cpp8
-rw-r--r--src/mdaSpecMeter.h9
2 files changed, 9 insertions, 8 deletions
diff --git a/src/mdaSpecMeter.cpp b/src/mdaSpecMeter.cpp
index 5a02c7c..4ecb7a5 100644
--- a/src/mdaSpecMeter.cpp
+++ b/src/mdaSpecMeter.cpp
@@ -23,8 +23,8 @@ createEffectInstance (audioMasterCallback audioMaster)
mdaSpecMeterProgram::mdaSpecMeterProgram ()
{
param[_PARAM0] = 0.5;
- param[_PARAM1] = 0.5;
- param[_PARAM2] = 0.75;
+ //param[_PARAM1] = 0.5;
+ //param[_PARAM2] = 0.75;
strcpy (name, "default");
}
@@ -193,9 +193,9 @@ mdaSpecMeter::getParameterDisplay (LvzInt32 index, char *text)
case _PARAM0:
sprintf(string, "%.1f", 40.0f * param[index] - 20.0f);
break;
- case _PARAM1:
+ /*case _PARAM1:
strcpy (string, "");
- break;
+ break;*/
default:
sprintf(string, "%.0f", 100.0f * param[index]);
}
diff --git a/src/mdaSpecMeter.h b/src/mdaSpecMeter.h
index e99137c..70c5256 100644
--- a/src/mdaSpecMeter.h
+++ b/src/mdaSpecMeter.h
@@ -13,10 +13,11 @@
#define SILENCE 0.00000001f
enum {
- _PARAM0, //peak decay
- _PARAM1, //RMS speed
- _PARAM2, //spectrum speed
- _PARAM3, //peak reset?
+ _PARAM0, //gain
+// _PARAM0, //peak decay
+// _PARAM1, //RMS speed
+// _PARAM2, //spectrum speed
+// _PARAM3, //peak reset?
NPARAMS
};