diff options
| author | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-22 21:12:20 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-22 21:12:20 +0100 |
| commit | 19103b46762e36be45cf45a3a6a67039824b1aff (patch) | |
| tree | 1f71a83930ef0b728134381079ce13e124250522 /main.cpp | |
| parent | 6bb3b92852d9d7f4efb63994bf818b5a01ca86b9 (diff) | |
also added a phaseReset method to maxiOsc so you can reset phase. Usefully for controlling sample playback
Diffstat (limited to 'main.cpp')
| -rwxr-xr-x | main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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. |
