code: function() {
              var xDeg = parseInt(slider.value);
              var x = Math.sin(xDeg * (Math.PI / 180));
              wavesurfer.panner.setPosition(x, 0, 0);
          }
docs: Bind panner slider @see http://stackoverflow.com/a/14412601/352796