aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMick Grierson <mickgrierson@gmail.com>2011-10-19 14:41:29 +0100
committerMick Grierson <mickgrierson@gmail.com>2011-10-19 14:41:29 +0100
commit1af0e16bbbe22214f99c8f5deb1f4de6d3ebcd6d (patch)
treef7bfac671ec950f8d7458d88d1cdf3b0d75d21bd
parent6c399125930609645c6aabd055aa6ea8fe54a2ed (diff)
tiny changes to maxiDyn
-rwxr-xr-xmain.cpp2
-rw-r--r--maximilian.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index d3b57d9..be9831f 100755
--- a/main.cpp
+++ b/main.cpp
@@ -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) {