Dan Allegre / 401_reverb

Dependencies:   mbed

Revision:
4:efa5e07fd268
Parent:
3:f8bc3ac22ffd
Child:
5:265c9540466a
diff -r f8bc3ac22ffd -r efa5e07fd268 main.cpp
--- a/main.cpp	Sat Jul 30 06:42:24 2016 +0000
+++ b/main.cpp	Sat Jul 30 07:19:41 2016 +0000
@@ -79,13 +79,13 @@
 
     //process audio.   probably calculate these coefficients elsewhere so you don't do the multiply all the time.
     //left delay mod   
-    measf3L = DELAYLEN*.94 + OscillatorL.process(.013,DELAYLEN/26,1);
-    measf3L2 = DELAYLEN*.73 + OscillatorL2.process(.012,DELAYLEN/25,1);
-    measf3L3 = DELAYLEN*.43 + OscillatorL3.process(.02,DELAYLEN/28,1);
+    measf3L = DELAYLEN*.94 + OscillatorL.process(.053,DELAYLEN/26,1);
+    measf3L2 = DELAYLEN*.73 + OscillatorL2.process(.042,DELAYLEN/25,1);
+    measf3L3 = DELAYLEN*.33 + OscillatorL3.process(.013,DELAYLEN/28,1);
     //right delay mod
-    measf3R = DELAYLEN*.95 + OscillatorR.process(.011,DELAYLEN/29,0);
-    measf3R2 = DELAYLEN*.79 + OscillatorR2.process(.015,DELAYLEN/27,0);
-    measf3R3 = DELAYLEN*.43 + OscillatorR3.process(.02,DELAYLEN/28,1);
+    measf3R = DELAYLEN*.95 + OscillatorR.process(.081,DELAYLEN/29,0);
+    measf3R2 = DELAYLEN*.79 + OscillatorR2.process(.065,DELAYLEN/27,0);
+    measf3R3 = DELAYLEN*.33 + OscillatorR3.process(.012,DELAYLEN/28,1);
     if(measf3L > DELAYLEN*.9)
         measf3L = DELAYLEN*.9;
     if(measf3L < DELAYLEN*.05)
@@ -110,12 +110,12 @@
         measf3R3 = DELAYLEN*.9;
     if(measf3R3 < DELAYLEN*.05)
         measf3R3 = DELAYLEN*.05;
-    left_out_2 = delayLeft2.process(satAdd(left_in_f,loopfb),.7,measf3L);
-    left_out_3 = delayLeft3.process(left_out_2,.5,measf3L2);
-    left_out_f = delayLeft.process(left_out_3,.6,measf3L3);
-    right_out_2 = delayRight2.process(satAdd(left_in_f,loopfb2),.7,measf3R);
-    right_out_3 = delayRight3.process(right_out_2,.5,measf3R2);
-    right_out_f = delayRight.process(right_out_3,.6,measf3R3);
+    left_out_2 = delayLeft2.process(satSubtract(left_in_f,loopfb),.3,measf3L);
+    left_out_3 = delayLeft3.process(left_out_2,.4,measf3L2);
+    left_out_f = delayLeft.process(left_out_3,.3,measf3L3);
+    right_out_2 = delayRight2.process(satSubtract(left_in_f,loopfb2),.3,measf3R);
+    right_out_3 = delayRight3.process(right_out_2,.4,measf3R2);
+    right_out_f = delayRight.process(right_out_3,.3,measf3R3);
     loopfb = left_out_f*feedback3;
     loopfb2 = right_out_f*feedback3;
     left_out_u = satAdd(left_in_f,left_out_f);