diff options
| author | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-18 19:05:02 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-18 19:05:02 +0100 |
| commit | 92af27026aa1aa72535e94bd8007d7066a3136e7 (patch) | |
| tree | b07dac5b9f137adc15d6b7a9f343ca18d5fef6c4 /maximilian.cpp | |
| parent | c203258295902604f01adadb81a8fd0cb1933912 (diff) | |
hmm maxiDyn needs a bit more work
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/maximilian.cpp b/maximilian.cpp index b81fa49..476a0f9 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -820,9 +820,7 @@ void maxiSample::getLength() { length=myDataSize*0.5; } -/* This is a basic compressor. Can also do expansion. It takes standard args for ratio and threshold - although threshold is in linear amplitude at the moment. It has some crotchety old excuse for gain compensation - which will do for now, but if you do choose to use it for expansion, watch out as it will bite you in the bum*/ +/* This is a basic compressor. don't use it until the enveloping is finished */ double maxiDyn::compress(double input, double ratio, double threshold) { @@ -841,11 +839,7 @@ double maxiDyn::compress(double input, double ratio, double threshold) { return output; } -/*reasonably happy with this. input is the input signal to gate, threshold is the threshold of the gate (default 0.9), - holdtime is how long you want to hold after the attack finishes (default 1 sample). The envelopes are old school digital. - An attack of 1 is instant (default). An attack of 0.0015 is a few hundred ms. Likewise, a release - of 0. is instant and a release of 0.9995 (default) is a few hundred ms. When I can be arsed I'll work out - what this ends up as in seconds and do the conversion. I may never be arsed. It seems a waste. */ +/* ok this isn't quite ready */ double maxiDyn::gate(double input, double threshold, long holdtime, double attack, double release) { if (fabs(input)>threshold && attackphase!=1){ |
