react-fm

0.0.3 • Public • Published

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.

Package Sidebar

Install

npm i react-fm

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • vad3x