T("clip")
AR/KRSTEREO Limit signal amplitude
Description
T("clip")
は入力シグナルをクリップして出力します
1
2
3
4
5
6
7
var env = T("env", {table:[0, [2, 2000], [0.2, 2000]], loopNode:1}).bang();
var osc = T("osc", {freq:440}, env);
var clip = T("clip", {minmax:0.5, mul:0.5}, osc).play();
T("scope", {interval:500, size:256}).on("data", function() {
this.plot({target:canvas});
}).listen(clip);
Properties
minmax
(WriteOnly Number)- 最小値と最小値をセットします
min
(Number)- The low threshold of clipping. Its default value is 0
max
(Number)- The high threshold of clipping. Its default value is 1
Source
https://github.com/mohayonao/timbre.js/blob/master/src/objects/clip.js