Skip to content

NHQ/jsynth-mic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsynth-mic

A simple Web Audio API module for accessing the getUserMedia audio stream from a mic/line-in. Returns an emitter, which.on('node') passes yours listener a Web Audio Node. See the example. Currently, the opinion of this module is to mix the mic to mono.

npm install jsynth-mic

the example

var audioContext = window.AudioContext || webkitAudioContext
var master = new audioContext()

// call the module with the master audio context
var mic = require('./')(master)

// it returns an event emitter
mic.on('node', function(node){
//  console.log(node) // a gain node
  node.connect(master.destination)
})

testing

you can run the example by browserifying entry.js, or using opa

npm install -g opa watchify
opa -e entry

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published