An experimental rewrite of wavesufer.js to play around with new ideas.
- TypeScript API
- Better architecture
- Minimize the available options and provide sensible defaults
- Improve the decoding and rendering performance
Keeping backwards compatibility with earlier versions of wavesurfer.js.
Principles:
- Modular and event-driven
- Allow swapping the decoding, rendering and playback mechanisms
- Extensible with plugins
Install dev dependencies:
yarn
Start the TypeScript compiler in watch mode:
yarn build:dev
Run an HTTP server to view the examples:
python3 -m http.server --cgi 8080
Open http://localhost:8080/tutorial in your browser. There's no hot reload yet, so you'll need to reload the page manually on every change.