diff options
| author | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 14:41:29 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 14:41:29 +0100 |
| commit | 1af0e16bbbe22214f99c8f5deb1f4de6d3ebcd6d (patch) | |
| tree | f7bfac671ec950f8d7458d88d1cdf3b0d75d21bd | |
| parent | 6c399125930609645c6aabd055aa6ea8fe54a2ed (diff) | |
tiny changes to maxiDyn
| -rwxr-xr-x | main.cpp | 2 | ||||
| -rw-r--r-- | maximilian.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -13,7 +13,7 @@ void setup() {//some inits void play(double *output) {//this is where the magic happens. Very slow magic. - out=compressor.compressor(beats.play(),30,0.5,0.0005,0.995);//just play the file. Looping is default for all play functions. + out=compressor.compressor(beats.play(),50,0.5,0.0005,0.995);//just play the file. Looping is default for all play functions. output[0]=out; output[1]=out; diff --git a/maximilian.cpp b/maximilian.cpp index f0fd10b..b3a5a27 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -870,7 +870,9 @@ double maxiDyn::gate(double input, double threshold, long holdtime, double attac return output; } -/* this is evil. leave it alone*/ +/* OK this compressor is now ready to use. The envelopes, like all the envelopes in this recent update, use stupid algorithms for + incrementing - consequently a long attack is something like 0.0001 and a long release is like 0.9999. + Annoyingly, a short attack is 0.1, and a short release is 0.99. I'll sort this out laters */ double maxiDyn::compressor(double input, double ratio, double threshold, double attack, double release) { |
