diff options
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) { |
