var bindEvents = function (input) {
inputs.forEach(function (item, i) {
item.onchange = function(e) {
filters[i].gain.value = e.target.value;
self.trigger('change', {
value: e.target.value,
inputElement: e.target,
index: i
});
};
});
};
<audio src="" controls></audio>
<div class="eqBlock">
<input type="range" class="slider 60" min=-16 max=16 step=1 onchange="equalize()">
<label for="60">60</label>
</div>