Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 5:265c9540466a
- Parent:
- 4:efa5e07fd268
- Child:
- 6:df635006ee1c
diff -r efa5e07fd268 -r 265c9540466a main.cpp
--- a/main.cpp Sat Jul 30 07:19:41 2016 +0000
+++ b/main.cpp Sat Jul 30 07:46:56 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(.053,DELAYLEN/26,1);
- measf3L2 = DELAYLEN*.73 + OscillatorL2.process(.042,DELAYLEN/25,1);
- measf3L3 = DELAYLEN*.33 + OscillatorL3.process(.013,DELAYLEN/28,1);
+ measf3L = DELAYLEN*.74 + OscillatorL.process(.023,DELAYLEN/56,1);
+ measf3L2 = DELAYLEN*.43 + OscillatorL2.process(.021,DELAYLEN/55,1);
+ measf3L3 = DELAYLEN*.23 + OscillatorL3.process(.023,DELAYLEN/58,1);
//right delay mod
- 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);
+ measf3R = DELAYLEN*.75 + OscillatorR.process(.021,DELAYLEN/59,0);
+ measf3R2 = DELAYLEN*.49 + OscillatorR2.process(.025,DELAYLEN/57,0);
+ measf3R3 = DELAYLEN*.23 + OscillatorR3.process(.022,DELAYLEN/58,1);
if(measf3L > DELAYLEN*.9)
measf3L = DELAYLEN*.9;
if(measf3L < DELAYLEN*.05)
@@ -112,10 +112,10 @@
measf3R3 = DELAYLEN*.05;
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);
+ left_out_f = delayLeft.process(left_out_3,.4,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);
+ right_out_f = delayRight.process(right_out_3,.4,measf3R3);
loopfb = left_out_f*feedback3;
loopfb2 = right_out_f*feedback3;
left_out_u = satAdd(left_in_f,left_out_f);