diff options
| author | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-28 09:28:08 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-28 09:28:08 +0100 |
| commit | 139ef699ec4eb864e3c240832a05026b85a042e1 (patch) | |
| tree | a924aedf3b0a23040fa86a7cef41624309d90aa1 | |
| parent | 71f5a13bd245350b5924867f89f4621d05b9279f (diff) | |
added maxisample::playOnce with a speed setting - only uses linear interpolation at the moment
| -rwxr-xr-x | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,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),5,0.5,0.0001,0.995)*0.125; - sampleOut=compress.compressor(kick.playOnce(0.5)+snare.playOnce(0.5),1,0.5),0.01,0.9995;//just play the file. No looping. + sampleOut=compress.compressor(kick.playOnce(1)+snare.playOnce(0.5),1,0.5),0.01,0.9995;//just play the file. No looping. output[0]=sampleOut+bassout;//left channel output[1]=sampleOut+bassout;//right channel |
