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