Skip to content

goto-bus-stop/frequency-bars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frequency-bars

nanocomponent rendering realtime audio frequencies as a bar chart

Install - Usage - License: Apache-2.0

npm travis standard

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()

License

Apache-2.0

About

nanocomponent rendering realtime audio frequencies as a bar chart

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •