 
 state =
   activeLine: 0
+  moveNext: 0
 
 updateViz = ->
   viz.draw(canvas)

  
  switch type
    when 144 # Note on
      console.log note
    when 128 # Note off
      ;


  # TODO: This should be done in terms of context.currentTime
  track.update(osc.frequency, osc.gain, trackTime, dt, state)

  state.activeLine += state.moveNext
  state.moveNext = 0

invariants = ->
  state.activeLine = state.activeLine % 16
  if state.activeLine < 0
