 
   # -
   setBPM: (bpm) ->
-    # TODO Optional - re-calculate timer offsets
     TinyRave.setBPM(bpm)
 
   getBPM: ->


#
# Core Extensions
Number.prototype.beat = Number.prototype.beats = ->
  console.error "You must call TinyRave.setBPM(yourBPM) before calling Number.beat()" unless TinyRave.BPM?
  bps = TinyRave.BPM / 60
  this / bps

#
# TinyRave Object
TinyRave = {
  setBPM: (@BPM) -> @timer.invalidateBeatLength()
  getBPM: -> @BPM
  timer: new TinyRaveTimer()
}
