frequency-bars
v1.0.0
Published
nanocomponent rendering realtime audio frequencies as a bar chart
Downloads
4
Maintainers
Readme
frequency-bars
nanocomponent rendering realtime audio frequencies as a bar chart
Install - Usage - License: Apache-2.0
Install
npm install frequency-bars
Usage
var FrequencyBars = require('frequency-bars')
var html = require('nanohtml')
var bars = new FrequencyBars()
var audio = new Audio('./path/to/audio.mp3')
document.body.appendChild(html`
<div>
${bars.render({
width: 400,
height: 240,
background: '#222',
audio
})}
</div>
`)
audio.play()