Soundtouch + Wavesurfer, issue applying filters #3860
ahsanabbasi404
started this conversation in
General
Replies: 2 comments
-
Here’s an example of how to put wavesurfer audio into a Web Audio context: https://wavesurfer.xyz/examples/?webaudio.js It should be similar for sound touch. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Well, I tried that but still getting some errors. Here is one of the attempt I tried:
};` Uncaught (in promise) TypeError: Failed to execute 'connect' on 'AudioNode': Overload resolution failed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm having trouble applying SoundTouch.js to WaveSurfer. Since
setFilter
is no longer available, I can't connect SoundTouch.js with WaveSurfer's audio element. I tried using Audio Worklet but couldn't sync them properly.Could you guide me on how to connect SoundTouch.js with WaveSurfer? I’ve seen older examples, but they reference outdated versions. Here's the approach I tried:
st = new soundtouch.SoundTouch(sampleRate); filter = new soundtouch.SimpleFilter(new soundtouch.WebAudioBufferSource(source), st); node = soundtouch.getWebAudioNode(context, filter); node.connect(context.destination); // now how to connect with wavesurfer?
(I am trying to change pitchSemitones and tempo using soundtouchjs)
Any help would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions