From 8a3e8b38a83de16401bfc3c1c164f447304b8215 Mon Sep 17 00:00:00 2001 From: mick Date: Sat, 24 Nov 2012 00:23:57 +0000 Subject: bandlimited oscs --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 2f8c83d..6efd2e7 100755 --- a/main.cpp +++ b/main.cpp @@ -18,13 +18,13 @@ void setup() {//some inits void play(double *output) { // no noise here -// out=VCO1.sawn(ramp.phasor(0.1,50,8000)); + out=VCO1.sawn(ramp.phasor(0.1,50,8000)); // Band limited square using two band limited saws. Comment the above and uncomment the below. // you can hear a tiny bit of aliasing approaching 8000 hz but it should do. // It's actually a bit of a weird hack but has nice response. - out=VCO1.sawn(ramp.phasor(0.1,50,8000))-VCO2.sawn(ramp2.phasor(0.1,50,8000)); +// out=VCO1.sawn(ramp.phasor(0.1,50,8000))-VCO2.sawn(ramp2.phasor(0.1,50,8000)); // When you're done testing with the ramps, see here for an easy PWM hack with this approach // out=VCO1.sawn(100)-(VCO2.sawn(100.1)*0.9); -- cgit v1.3