wavedraw

1.1.0 • Public • Published

wavedraw for node.js

This library currently supports only mono single channel wave files. I haven't tried it with 8 bit wave. I suggest using 16 bit, mono at 44100.

Installation

npm install wavedraw

Usage

const wavedraw = require('wavedraw');
const wd = new wavedraw('test.wav');
const options = {
  width: 600,
  height: 300,
  rms: true,
  maximums: true,
  average: false,
  start: 'START',
  end: 'END',
  colors: {
    maximums: '#0000ff',
    rms: '#659df7',
    background: '#ffffff'
  },
  filename: 'example1.png'
};
 
wd.drawWave(options);  // outputs wave drawing to example1.png

alt text

Todo

  • [] More unit tests
  • [] Ability to draw mel spectrograms

Package Sidebar

Install

npm i wavedraw

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

514 kB

Total Files

12

Last publish

Collaborators

  • reaperkrew