mohayonao / CoffeeCollider

Sound Processing Language for Web Audio
http://mohayonao.github.io/CoffeeCollider/
MIT License
220 stars 15 forks source link

Fixed cc interface #62

Closed mohayonao closed 10 years ago

mohayonao commented 10 years ago

default append mode will be true

cc.execute(code); // same as
cc.execute(code, true)
cc.isPlaying();// return true or false

now

var cc = new CoffeeCollider();
cc.play();
cc.execute(code);
// cc.pause();

new (auto run interface)

var cc = new CoffeeCollider();
cc.run(code); // play & execute
// cc.pause(); // (in the future) auto stop
cc.load("test.coffee", function(code) {
  cc.run(code);
});
mohayonao commented 10 years ago

default append mode should not be changed. it's very bad changing.