1.0.1 • Published 3 years ago

wavesurfer-sum-to-mono-plugin v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

WaveSurferSumToMonoPlugin

WaveSurfer.js sum to mono plugin

Usage

import SumToMonoPlugin from "wavesurfer-sum-to-mono-plugin";
const wavesurfer = WaveSurfer.create({
  container: document.getElementById("wavesurfer"),
  backend: "MediaElement", // All backends supported.
  ...
  plugins: [
      ...
      SumToMonoPlugin.create(),
      ...
  ],
});

wavesurfer.on("toggle-mono", (isMono) => {
  console.log(isMono); // true, false
});

Installation

$ npm i wavesurfer-sum-to-mono-plugin

Todos

  • Write tests

License

MIT

Free Software, Hell Yeah!

1.0.1

3 years ago