ditty.bpm = 100;
dur = 1.25;
slp = 1.5;
loop( () => {
// Play the notes of a major scale
sine.play(c4, { attack: 0.01, release: 0.75, duration: dur });
sleep(slp);
sine.play(d4, { attack: 0.01, release: 0.25, duration: dur });
sleep(slp);
sine.play(e4, { attack: 0.01, release: 0.75, duration: dur });
sleep(slp);
sine.play(g4, { attack: 0.01, release: 0.75, duration: dur });
sleep(slp);
sine.play(a4, { attack: 0.01, release: 0.25, duration: dur });
sleep(slp);
sine.play(c5, { attack: 0.01, release: 0.25, duration: dur });
sleep(slp);
}, { name: 'Mohanam' });