0.0.3 • Published 10 years ago

react-fm v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

React Frequency Meter

demo

React Frequency Meter allows you to visualize frequencies in audio using Web Audio Api.

Usage

Install via npm:

$ npm install --save react-router

Then with a module bundler like webpack that supports either CommonJS or ES2015 modules, use as you would anything else:

// using an ES6 transpiler, like babel
import FrequencyMeter from 'react-fm';

// not using an ES6 transpiler
var FrequencyMeter = require('react-fm')

...

<FrequencyMeter
    audioContext={audioContext}
    audioSource={audioSource}
/>

You also need to include lib/index.css for styles.

Read Web Audio Api Docs to know about AudioContext and AudioSource.

Examples

See examples folder for complete examples.