message: don't iterate if no index is found
diff: @@ -81,12 +81,14 @@ define(["Tone/core/Tone", "Tone/core/Timeline", "Tone/type/Type"], function(Tone
  Tone.TimelineState.prototype.getNextState = function(state, time){
  time = this.toSeconds(time);
  var index = this._search(time);
  + if (index !== -1){
  for (var i = index; i < this._timeline.length; i++){
  var event = this._timeline[i];
  if (event.state === state){
  return event;
  }
  }
  + }
  };
  return Tone.TimelineState;
  