diff options
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; - } |
