An open API service indexing awesome lists of open source software.

https://github.com/goto-bus-stop/frequency-bars

nanocomponent rendering realtime audio frequencies as a bar chart
https://github.com/goto-bus-stop/frequency-bars

Last synced: 2 months ago
JSON representation

nanocomponent rendering realtime audio frequencies as a bar chart

Awesome Lists containing this project

README

        

# frequency-bars

nanocomponent rendering realtime audio frequencies as a bar chart

[Install](#install) - [Usage](#usage) - [License: Apache-2.0](#license)

[![npm][npm-image]][npm-url]
[![travis][travis-image]][travis-url]
[![standard][standard-image]][standard-url]

[npm-image]: https://img.shields.io/npm/v/frequency-bars.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/frequency-bars
[travis-image]: https://img.shields.io/travis/com/goto-bus-stop/frequency-bars.svg?style=flat-square
[travis-url]: https://travis-ci.com/goto-bus-stop/frequency-bars
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: http://npm.im/standard

## Install

```
npm install frequency-bars
```

## Usage

```js
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`


${bars.render({
width: 400,
height: 240,
background: '#222',
audio
})}

`)

audio.play()
```

## License

[Apache-2.0](LICENSE.md)