diff options
| author | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 14:42:30 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@gmail.com> | 2011-10-19 14:42:30 +0100 |
| commit | c5882eaefa9b748f1364dbddde0cbc5994795bf1 (patch) | |
| tree | ebb3407614915b5675b46bf0b817f38f807fc3c4 /maximilian.cpp | |
| parent | 1af0e16bbbe22214f99c8f5deb1f4de6d3ebcd6d (diff) | |
small changes to maxiDyn
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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) { |
