From 19103b46762e36be45cf45a3a6a67039824b1aff Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Sat, 22 Oct 2011 21:12:20 +0100 Subject: also added a phaseReset method to maxiOsc so you can reset phase. Usefully for controlling sample playback --- main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 5e60993..ed7d0e6 100755 --- a/main.cpp +++ b/main.cpp @@ -33,7 +33,6 @@ void setup() {//some inits void play(double *output) {//this is where the magic happens. Very slow magic. - bassout=0; currentCount=(int)timer.phasor(8);//this sets up a metronome that ticks 8 times a second @@ -59,7 +58,7 @@ void play(double *output) {//this is where the magic happens. Very slow magic. } - bassout+=basscompress.compressor(sound1.pulse(slew.lopass(bassfreq/2,0.001), sound2.phasor(8)*0.25),10,0.5,0.0001,0.995)*0.25; + bassout=basscompress.compressor(sound1.pulse(slew.lopass(bassfreq/2,0.001), sound2.phasor(8)*0.25),10,0.5,0.0001,0.995)*0.25; sampleOut=compress.compressor(kick.playOnce()+snare.playOnce(),5,0.5),0.0001,0.9995;//just play the file. No looping. -- cgit v1.3