1.0.1 • Published 3 years ago

wavesurfer-custom-height-for-channels-plugin v1.0.1

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

WaveSurfer Custom Height For Channels Plugin

WaveSurfer.js Custom Height For Channels Plugin

Usage

import CustomHeightForChannelsPlugin from "wavesurfer-custom-height-for-channels-plugin";
const wavesurfer = WaveSurfer.create({
  container: document.getElementById("wavesurfer"),
  backend: "MediaElement", // All backends supported.
  ...
  plugins: [
      ...
      CustomHeightForChannelsPlugin.create({
        1: 44,
        //2: 30, // 2 channels height will be 128px by default WaveSurfer default height
        4: 26,
        5: 26,
        6: 20,
      }),
      ...
  ],
});

Installation

$ npm i wavesurfer-custom-height-for-channels-plugin

Todos

  • Write tests

License

MIT

Free Software, Hell Yeah!

1.0.1

3 years ago

1.0.0

3 years ago