watilde / beeplay

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

Add a tracking mode #9

Closed hellocreep closed 10 years ago

hellocreep commented 10 years ago

Hi, Daijiro Wachi.

This is a funny library, I play with it, but I notice it's hard to find the current note in the music. So I added a tracking mode to track this current note for easier knowing where it is.

use it like this

intro = beeplay({bpm: bpm, track: function(notes, trackId, stack) {
  console.log(notes);
}})
watilde commented 10 years ago

Thanks for your Pull Request :smiley_cat: LGTM

watilde commented 10 years ago

Ship ship ship!