chaudio.plugins.fade

A gentle fade in and out

Classes

Fade(**kwargs) A gentle fade in and out
class chaudio.plugins.fade.Fade(**kwargs)[source]

A gentle fade in and out

process(_data)[source]

Returns the result, but faded given a few parameters

“fadein”:True to fade at the beginning, False to not
“fadeout”:True to fade at the end, False to not
“sec”:the length, in seconds, of how long to fade

Essentially for the first samples til sec are scaled linearly if fadein, and the last samples from t-sec til t are scaled linearly if fadeout is enabled.