filter_adsr: ADSR

View source: R/filter-adsr.R

filter_adsrR Documentation

ADSR

Description

Filters an object through the Attack-Decay-Sustain-Release (ADSR) envelope model, implemented with linear interpolation.

Usage

filter_adsr(x, attack, decay, sustain, hold, release, ...)

## S3 method for class 'wave'
filter_adsr(x, attack, decay, sustain, hold, release, ...)

Arguments

x

Object to filter; will be coerced to a wave object via wave.

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 wave


pmcharrison/hrep documentation built on Feb. 18, 2024, 2:33 a.m.