aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mdaDX10.cpp6
-rw-r--r--src/mdaJX10.cpp6
-rw-r--r--src/mdaTestTone.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/src/mdaDX10.cpp b/src/mdaDX10.cpp
index 7623e9b..df88605 100644
--- a/src/mdaDX10.cpp
+++ b/src/mdaDX10.cpp
@@ -131,10 +131,10 @@ void mdaDX10::update() //parameter change //if multitimbral would have to move
}
-void mdaDX10::setSampleRate(float sampleRate)
+void mdaDX10::setSampleRate(float rate)
{
- AudioEffectX::setSampleRate(sampleRate);
- Fs = sampleRate;
+ AudioEffectX::setSampleRate(rate);
+ Fs = rate;
}
diff --git a/src/mdaJX10.cpp b/src/mdaJX10.cpp
index 74f0340..4ded18e 100644
--- a/src/mdaJX10.cpp
+++ b/src/mdaJX10.cpp
@@ -204,10 +204,10 @@ void mdaJX10::update() //parameter change
}
-void mdaJX10::setSampleRate(float sampleRate)
+void mdaJX10::setSampleRate(float rate)
{
- AudioEffectX::setSampleRate(sampleRate);
- Fs = sampleRate;
+ AudioEffectX::setSampleRate(rate);
+ Fs = rate;
dlfo = lfoHz * (float)(TWOPI * KMAX) / Fs;
}
diff --git a/src/mdaTestTone.cpp b/src/mdaTestTone.cpp
index 3748109..f74139e 100644
--- a/src/mdaTestTone.cpp
+++ b/src/mdaTestTone.cpp
@@ -75,11 +75,11 @@ void mdaTestTone::setParameter(LvzInt32 index, float value)
//just update display text...
- int mode = int(8.9 * fParam0);
+ int this_mode = int(8.9 * fParam0);
float f, df=0.0f;
if(fParam4>0.6) df = 1.25f*fParam4 - 0.75f;
if(fParam4<0.4) df = 1.25f*fParam4 - 0.50f;
- switch(mode)
+ switch(this_mode)
{
case 0: //MIDI note
f = (float)floor(128.f*fParam3);