0.0.1 • Published 10 years ago

cordova-plugin-pitch v0.0.1

Weekly downloads
5
License
Apache 2.0
Repository
github
Last release
10 years ago

com.bandpad.cordova.audiofrequency

This plugin captures the device's audio input stream and analyses it to return the maximum frequency.

It adds the following window event:

  • audiofrequency

Installation

cordova plugin add com.bandoad.cordova.audiofrequency

Supported Platforms

  • iOS
  • Android

Example

window.addEventListener("audiofrequency", onAudiofrequency, false);

function onAudiofrequency(e) {
    console.log("Frequency: " + e.frequency + " Hz");
}