watilde / beeplay

Write a song in JavaScript
http://watilde.github.io/beeplay
MIT License
1.04k stars 54 forks source link

Loop features #1

Open watilde opened 10 years ago

watilde commented 10 years ago

:cat: < I need loooooop features!

Like the following:

beeplay({bpm: 120, loop: true})
  .play(null, 1)
  .play('C4', 1)
  .play('D4', 1)
  .play('D4', 1);
beeplay({bpm: 120})
  .play(null, 1)
  .ds('key', count)
  .play('C4', 1)
  .play('D4', 1)
  .play('D4', 1)
  .ds('key');
beeplay({bpm: 120})
  .play('C4', 1)
  .play('D4', 1)
  .play('D4', 1)
  .dc(count);