T("waveshaper")

AR Non-Linear Distortion Effects

Description

Non-linear waveshaping distortion is commonly used for both subtle non-linear warming, or more obvious distortion effects. Arbitrary non-linear shaping curves may be specified.

1
2
3
 
var audio = T("audio", {load:"/timbre.js/misc/audio/drum.wav", loop:true});
 
T("waveshaper", {curve:new Float32Array([-0.5,0,1])}, audio).play();

Properties

Sources

https://github.com/mohayonao/timbre.js/blob/master/src/objects/waveshaper.js