This is an example of how to add an arbitrary Web Audio node into a wavesurfer.js graph. Panner node is one such node.
Create a WaveSurfer instance and load an audio clip.
                        Create a panner node and add it to the Web
                        Audio graph using the setFilter method.
                    
In your HTML, add a range input.
                        Listen to the range input's input event and set the panner's position
                        according to the input's value.
                        Adapted from this SO answer.