THE AUDITORY MODELING TOOLBOX

Applies to version: 1.6.0

View the code

Go to function

fade
Apply fade in and fade out to a signal

Usage:

y = fade(signal,rise_time,fs);
[y, window] = fade(signal,rise_time,fs);

Input parameters:

signal Input signal. Size: (time x channels).
rise_time Fading time (in s), applied each to beginning and the end of the signal.
fs Sampling frequency (in Hz).

Output parameters:

y Output signal. Size: (time x channels).
window Column vector with the window used to create the fading.

Description:

fade(..) imposes a cosine-like fade-in and fade-out to the begining and end of a signal, respectively.