Replies: 1 comment 5 replies
-
const wavesurfer = WaveSurfer.create({
// ...
})
wavesurfer.on('canplay', () => {
// Create Web Audio context
const audioContext = new AudioContext()
// Create a MediaElementSourceNode from the audio element
const mediaNode = audioContext.createMediaElementSource(wavesurfer.getMediaElement())
// Create a lowpass filter
const filter = audioContext.createBiquadFilter()
filter.type = 'lowpass'
// Connect the media node to the filter
mediaNode.connect(filter)
// Connect the filter to the audio output
filter.connect(audioContext.destination)
}) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I am trying to apply a low pass filter on a mp3 file the user uploads, but am unsure how to approach this. I looked at the WebAudio example, but am still having trouble applying the LPF on the wavesurfer audio. Any tips would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions