Skip to content

LinusU/vu-meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VU Meter

A VU Meter for Node.js, works on streams of raw pcm data.

Installation

npm install --save vu-meter

Usage

const VUMeter = require('vu-meter')

const meter = new VUMeter()

process.stdin.pipe(meter)

meter.on('data', (data) => {
  data[0] // dB value of left channel
  data[1] // dB value of right channel
})

API

new VUMeter()

Create a new transform stream that emits the current amplitude in decibels.

Currently only 2-channel 16-bit little-endian signed integer pcm encoded data is supported.

data event

Emits a Float64Array that contains the amplitude of the left and right channel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published