commit 99124ab200904fa557900a7e5947156f18bd5eb5
parent 8543adada0f0d95f6f51de5accc2b03cca6208c1
Author: paulnasca <paulnasca>
Date: Sat, 15 Jan 2005 13:40:11 +0000
*** empty log message ***
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -751,4 +751,5 @@
04 Ian 2005 - Corectata o mica eroare care facea ca sa nu arate Force Release la Freemode Envelope
+15 Ian 2005 - Corectata o eroare la controllerul bandwidth care facea ca sa ajunga la valoarea 0 si sa dea peste cap SUBsynth
diff --git a/src/Params/Controller.C b/src/Params/Controller.C
@@ -123,7 +123,7 @@ void Controller::setbandwidth(int value){
REALTYPE tmp=pow(25.0,pow(bandwidth.depth/127.0,1.5))-1.0;
if ((value<64)&&(bandwidth.depth>=64)) tmp=1.0;
bandwidth.relbw=(value/64.0-1.0)*tmp+1.0;
- if (bandwidth.relbw<0.0) bandwidth.relbw=0.0;
+ if (bandwidth.relbw<0.01) bandwidth.relbw=0.01;
} else {
bandwidth.relbw=pow(25.0,(value-64.0)/64.0*(bandwidth.depth/64.0));
};