diff options
| author | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-17 02:04:29 +0100 |
|---|---|---|
| committer | Mick Grierson <mickgrierson@strangebook.lan> | 2011-10-17 02:04:29 +0100 |
| commit | c203258295902604f01adadb81a8fd0cb1933912 (patch) | |
| tree | 9f9e35e16b24d05475522f8b2632f9edab32dea2 /maximilian.cpp | |
| parent | a6cdb047b0eda1c45a9a070f0f56cee2e305f009 (diff) | |
added maxiEnv - easier to use ADSR and AR envelopes for those who find ramps a bit weird
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/maximilian.cpp b/maximilian.cpp index f2ef3db..b81fa49 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -925,6 +925,8 @@ double maxiEnv::ar(double input, double attack, double release, long holdtime, i return output; } +/* and here's a new adsr. It's not bad, very simple to use*/ + double maxiEnv::adsr(double input, double attack, double decay, double sustain, double release, long holdtime, int trigger) { if (trigger==1 && attackphase!=1 && holdphase!=1 && decayphase!=1){ |
