Band

Constructor

var band = new Jsonic.Band();

Property

AudioContextObjectThe context.
AnalyserObjectAnalyser node of current node.
ChannelPairsObjectThe array to store instances of Jsonic.ChannelPair
IntervalNumberThe interval to send data
onMsgFunctionFired when band received message.
onStartReceiveFunctionFired when band start to receive message.

Method

.initDefaultChannel()

To add defaut channelpairs.

band.initDefaultChannel();

.addChannelPair()

Add ChannelPairs to band

band.addChannelPair(instance1,instance2,...);

.send()

stop rendering canvases

dataStringdata to be sent
callbackFunction || NullThe interval to send data
band.send('Hello Jsonic');

.listenSource()

listen to a input

navigator.webkitGetUserMedia({
    audio:{optional:[{echoCancellation:false}]}
},function(stream){
    _input = band.AudioContext.createMediaStreamSource(stream);
    band.listenSource(_input);
},function(e){});

.scanEnvironment()

start to listen to the environment

band.scanEnvironment();