I would like to create a HTML meter to display the reduction made by the compressor node.
I used this code but it does not change the 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;
};
This is connected to this HTML
< meter id="meter" min="0" max="100">
What do I need to do in order for it to work?