filter_adsr | R Documentation |
Filters an object through the Attack-Decay-Sustain-Release (ADSR) envelope model, implemented with linear interpolation.
filter_adsr(x, attack, decay, sustain, hold, release, ...)
## S3 method for class 'wave'
filter_adsr(x, attack, decay, sustain, hold, release, ...)
x |
Object to filter; will be coerced to a wave object via |
attack |
(Positive numeric scalar) Duration of the attack portion, in seconds. At the end of the attack portion, the envelope amplitude reaches 1. |
decay |
(Positive numeric scalar) Duration of the decay portion, in seconds. |
sustain |
(Numeric scalar between 0 and 1) Envelope amplitude during the sustain portion. |
hold |
(Positive numeric scalar) Duration of the sustain portion, in seconds. |
release |
(Positive numeric scalar) Duration of the release portion, in seconds. |
... |
Arguments passed on to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.