mercredi 25 février 2015

jQuery-Knob to control web audio api panning

So I have a panning feature with a basic HTML input range I am using the following javascript code to control the panning:



var x = this.valueAsNumber,
y = 0,
z = 1 - Math.abs(x);
panner2.setPosition(x,y,z);


Any idea how to implement it with jQuery-Knob library? I have done it with volume control using change function and reading in value but panning uses more than one value so unsure how to implement it.





Aucun commentaire:

Enregistrer un commentaire