Code Monkey home page Code Monkey logo

jsonic's Introduction

jsonic

A javascript framework

For more information, please visit my website.

site: http://jsonic.net

link

<script type="text/javascript" src="Jsonic.js"></script>

Compose Music

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);

Audio Visualization

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();

Speech Recognition

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();

Band

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
});

Ultrasound Channel(removed after v1.1)

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();

jsonic's People

Contributors

arthusliang avatar

Stargazers

野声 avatar __qms avatar Xiao P avatar  avatar Raven avatar Znak Zorro avatar Yiivon avatar xyz avatar 刘贝 avatar

Watchers

James Cloos avatar Yiivon avatar  avatar Xiao P avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.