aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rwxr-xr-xmain.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index cf7b730..2f8c83d 100755
--- a/main.cpp
+++ b/main.cpp
@@ -18,14 +18,17 @@ 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 all the same.
-// out=VCO1.sawn(ramp.phasor(0.1,50,8000))-VCO2.sawn(ramp2.phasor(0.1,50,8000));
+// 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));
+// 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);
+
output[0]=out*0.5;//left channel
output[1]=out*0.5;//right channel