diff options
| author | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 14:16:51 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 14:16:51 +0100 |
| commit | 25123134eb0d6f3c12ad136fd5b86f0280b4bb0d (patch) | |
| tree | 851a84bf135faf1cce99d466771cc8be6242e616 /main.cpp | |
| parent | e3921dfbd1530ff379ffcb7af19c775b96933f7d (diff) | |
woteva
Diffstat (limited to 'main.cpp')
| -rwxr-xr-x | main.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,7 +1,7 @@ #include "maximilian.h" -maxiSample beats;//We give our sample a name. It's called beats this time. We could have loads of them, but they have to have different names. -maxiDyn compress; +maxiSample beats; //We give our sample a name. It's called beats this time. We could have loads of them, but they have to have different names. +maxiDyn compressor; double out; void setup() {//some inits @@ -13,11 +13,16 @@ void setup() {//some inits void play(double *output) {//this is where the magic happens. Very slow magic. - out=compress.gate(beats.play(),0.3,5000,0.03,0.9999);//just play the file. Looping is default for all play functions. + out=compressor.compressor(beats.play(),1,0.02,0.0005,0.9995);//just play the file. Looping is default for all play functions. + + + output[0]=out; + output[1]=out; + + // *output=beats.play(0.69);//play the file with a speed setting. 1. is normal speed. + // *output=beats.play(0.5,0,44100);//linear interpolationplay with a frequency input, start point and end point. Useful for syncing. + // *output=beats.play4(0.5,0,44100);//cubic interpolation play with a frequency input, start point and end point. Useful for syncing. - output[0]=out; - output[1]=out; - } |
