Knobrot.js Web Audio Api

Knobrot.js Web Audio Api

Hi there,
i am quite new in using jQuery and I was wondering if someone could help me to solve an issue I have with my web app.
It is a very simple app where a sine wave is produced using Web Audio Api and there is a slider to change the value of the gain (volume).
I have no problem doing this, however I am trying to use the library knobRot.js and use a knob to change the gain value with no success.
I have been trying all day testing out all the events in the documentation including knobdrag function but i cannot figure out out to change the volume with the knob instead of the slider.
here the jsfiddle





http://jsfiddle.net/RKH35/5/


Any help or suggestion?
It recognises the event change in the console log if I use


  1. $('#‎black-knob').on('knobdrag', function(e){
  2. //called until mouse button released
  3. console.log(e);
  4. });
Thanks