earstream
Streaming audio reactivity in the browser using WebRTC + Web Audio API
Last updated 6 years ago by dguttman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install earstream 
SYNC missed versions from official npm registry.

Earstream

Streaming audio reactivity in the browser using WebRTC + Web Audio API

Example

var earstream = require('earstream')

var nBars = 12

var bars = []

for (var i = nBars; i > 0; i--) {
  var bar = document.createElement('div')
  bar.style.height = '20px'
  bar.style.background = 'steelblue'
  bar.style.border = '1px solid white'
  bars.push(bar)
  document.body.appendChild(bar)
};

var es = earstream(nBars)

es.on('data', function(data) {
  data.norm.forEach(function(v, i) {
    bars[i].style.width = v * 100 + '%'
  })
})

License

MIT

Current Tags

  • 1.1.3                                ...           latest (6 years ago)

5 Versions

  • 1.1.3                                ...           6 years ago
  • 1.1.2                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |