changeset 237:8b0f142fa8d2

correct vertical resolution problem
author lbajardsilogic
date Fri, 07 Mar 2008 15:25:47 +0000
parents d97cd5461220
children 7856866636bc
files sv/filter/DSP.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sv/filter/DSP.cpp	Fri Mar 07 15:05:57 2008 +0000
+++ b/sv/filter/DSP.cpp	Fri Mar 07 15:25:47 2008 +0000
@@ -532,7 +532,7 @@
 
 	for(i=0; i<10; i++)
 	{
-		gain=(110-(eqcurve.at(i*10)-85))/120;  // eqcurve is the array filled when the user draws on the canvas
+		gain=(119-(eqcurve.at(i*10)))/120;  // eqcurve is the array filled when the user draws on the canvas
 		if (gain < 0){gain=0;}
 		L_mags[i]*=gain;
 		R_mags[i]*=gain;
@@ -546,7 +546,7 @@
 		interpfactor=1.1;
 		result=100+((interpfactor*(p-10)));
 		ind=int(result);
-		gain=(110-(eqcurve.at(ind)-85))/120;
+		gain=(119-(eqcurve.at(ind)))/120;
 		//gain=(110-(eqcurve[i+90]-85))/120;
 		
 		if (gain < 0){gain=0;}
@@ -563,7 +563,7 @@
 		interpfactor=0.11;
 		result=200+((interpfactor*(p-100)));
 		ind=int(result);
-		gain=(110-(eqcurve.at(ind)-85))/120;
+		gain=(119-(eqcurve.at(ind)))/120;
 		if (gain < 0){gain=0;}
 		L_mags[i]*=gain;
 		R_mags[i]*=gain;
@@ -578,7 +578,7 @@
 		interpfactor=.09;
 		result=300+((interpfactor*(p-1000)));
 		ind=int(result);
-		gain=(110-(eqcurve.at(ind)-85))/120;
+		gain=(119-(eqcurve.at(ind)))/120;
 		if (gain < 0){gain=0;}
 		L_mags[i]*=gain;
 		R_mags[i]*=gain;