A javascript framework
For more information, please visit my website.
site: http://jsonic.net
<script type="text/javascript" src="Jsonic.js"></script>
http://jsonic.net/doc/melody.html
You can use javascripte to play a tune.
var musicSocre = new Jsonic.Melody.MusicScore('E','major','4/4'),
track = new Jsonic.Melody.Track();;
musicSocre.w(new Jsonic.Melody.Note(3),new Jsonic.Melody.Note(4));
//play music
track.play(musicSocre,90);
http://jsonic.net/doc/painter.html
Render canvas with the data from audio.
var painter = new Jsonic.Painter();
painter.attach(canvas,analyserNode,{'FF':{func:'wave'}});
painter.start();
http://jsonic.net/doc/voix.html
Do you know Siri?
var voix = new Jsonic.Voix();
voix.bind('hello',function(){
console.log('You said hello');
});
voix.start();
http://jsonic.net/doc/band.html
create a band
var band = new Jsonic.Band();
band.initDefaultChannel();
Receiving end
navigator.webkitGetUserMedia({
audio:{optional:[{echoCancellation:false}]}
},function(stream){
_input = band.AudioContext.createMediaStreamSource(stream);
band.listenSource(_input);
band.scanEnvironment();
},function(e){});
Sending end
band.send('Hello Jsonic',function(){
//call back
});
http://jsonic.net/doc/ultrasound.html
Use ultrasound to transfer data.(Something with a higher performance is coming...)
create a sender
var ultrasound = new Jsonic.Ultrasound(),
sender = ultrasound.createSender();
sender.send('123');
create an accepter
var ultrasound = new Jsonic.Ultrasound(),
accepter = ultrasound.createAccepter();
accepter.bind('123',function(msg){
alert(msg);
});
accepter.start();