From 25123134eb0d6f3c12ad136fd5b86f0280b4bb0d Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Wed, 19 Oct 2011 14:16:51 +0100 Subject: woteva --- main.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 7529e56..7cece7b 100755 --- a/main.cpp +++ b/main.cpp @@ -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; - } -- cgit v1.3