From c5882eaefa9b748f1364dbddde0cbc5994795bf1 Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Wed, 19 Oct 2011 14:42:30 +0100 Subject: small changes to maxiDyn --- maximilian.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'maximilian.cpp') diff --git a/maximilian.cpp b/maximilian.cpp index b3a5a27..bbc36de 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -832,7 +832,11 @@ void maxiSample::getLength() { } -/* working */ + +/* OK this compressor and gate are 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::gate(double input, double threshold, long holdtime, double attack, double release) { if (fabs(input)>threshold && attackphase!=1){ @@ -870,9 +874,6 @@ double maxiDyn::gate(double input, double threshold, long holdtime, double attac return output; } -/* 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) { -- cgit v1.3