// // You can find the Dittytoy API Reference here: https://Dittytoy.net/syntax // Example ditties can be found here: https://dittytoy.net/user/Dittytoy // // Most of your ditty will run 44100 times per second using javascript in the browser. // Make sure you optimize your ditty to work well on as many devices as possible. To do that, try to limit // the number of simultaneously active synths: make sure they don't last longer than necessary, or you can // hear them, and spread them over different loops (each loop runs in a separate worker). // ditty.bpm = 120/0.75; //delete 0.75 loop( () => { sine.play(c4); sleep(0.25); sleep(0.25); sine.play(d4); sleep(0.25); sleep(0.25); // 0000000 sine.play(c4); sine.play(d4); sine.play(e4); sine.play(f4); sine.play(g4); sleep(0.25); sine.play(d4); sleep(0.25); sleep(0.25); sleep(0.25); // 0000000 sleep(0.25); sleep(0.25); sleep(0.25); sleep(0.25); // 0000000 sleep(0.25); sleep(0.25); sleep(0.25); sleep(0.25); // 000000 }, { name: 'my first loop' });