index.js
function (offset) {
    for (var i = beatmap.timingPoints.length - 1; i >= 0; i--) {
      if (beatmap.timingPoints[i].offset <= offset) { return beatmap.timingPoints[i]; }
    }
    return beatmap.timingPoints[0];
  }
function (offset) {
    for (var i = beatmap.timingPoints.length - 1; i >= 0; i--) {
      if (beatmap.timingPoints[i].offset <= offset) { return beatmap.timingPoints[i]; }
    }
    return beatmap.timingPoints[0];
  }
function ( offset ) { for ( var i = beatmap . timingPoints . length - 1 ; i >= 0 ; i -- ) { if ( beatmap . timingPoints [ i ] . offset <= offset ) { return beatmap . timingPoints [ i ] ; } } return beatmap . timingPoints [ 0 ] ; }
Get the timing point affecting a specific offset
@param  {Integer} offset
@return {Object} timingPoint
Get the timing point affecting a specific offset