Oli*_*ond 3 javascript html5 meter web-audio-api
我想创建一个HTML计量器来显示压缩器节点的减少量.
我使用了这段代码,但它没有改变metter
compressor = context.createDynamicsCompressor();
compressor.threshold = -50;
compressor.ratio = 12;
compressor.attack = 0.003;
compressor.reduction.onchange = function () {
var gainReduction = pluginSlot1.reduction;
document.getElementById("meter").value = gainReduction.value;
};
Run Code Online (Sandbox Code Playgroud)
这与此HTML相关联
<meter id ="meter"min ="0"max ="100">
为了让它起作用,我需要做什么?
| 归档时间: |
|
| 查看次数: |
632 次 |
| 最近记录: |