SNDC_ENVELOP

NAME
SYNOPSIS
PROCESSING

NAME

envelop - apply envelop to input signal.

SYNOPSIS

Inputs:

in [BUFFER] [REQUIRED]: input buffer upon which to apply envelop.

attack [FLOAT] [REQUIRED]: attack delay in seconds.

sustain [FLOAT] [REQUIRED]: sustain delay in seconds.

decay [FLOAT] [REQUIRED]: decay delay in seconds.

interp [STRING] [OPTIONAL]: interpolation for envelop curve, ’step’, ’linear’ or ’sine’, def ’linear’.

Outputs:

out [BUFFER]: output buffer.

PROCESSING

Apply a gain envelop to the input signal. Goes from 0 to 1 (full volume) in attack seconds, then maintain a gain of 1 during sustain seconds before going back down to 0 in decay seconds. Any of those durations can be 0. The gain curve shape can be set using the interp parameter to ’step’ (goes between 0 and 1 immediately), ’linear’ or ’sine’.

The following graph shows the gain curve for a linear interpolation:
1| __________
| / \
| / \
| / \
|/ \
0|<--><--------><-->
|attack sustain decay