Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.24k stars 963 forks source link

Wavesurfer.js support #1223

Closed corysimmons closed 2 months ago

corysimmons commented 5 months ago

The feature you'd like I'd love to use Tone.js as the audio source of truth, and just use Wavesurfer.js for visualizing and scrubbing around a piece of audio. It'd be great if this were tightly integrated or an official plugin.

Any alternatives you've considered I'm currently trying to implement it myself but it's pretty gross. I saw some issue from 4 years ago where they were trying to do something similar by feeding the Tone AudioBuffer into Wavesurfer.

Additional context These two libraries seem like they'd go hand-in-hand.

tambien commented 2 months ago

I'm not familiar enough with wavesurfer.js to give much guidance here, but seems like it is probably possible if wavesurfer is build on the Web Audio API to pass the buffer from Tone.js like you're describing.