lib/note.js
function (int) {
  var map = interval.isPerfect(int.number) ? perfectOffsets : majorOffsets;
  var key = _.invert(map)[int.quality];

  return parseInt(key, 10);
}
function (int) {
  var map = interval.isPerfect(int.number) ? perfectOffsets : majorOffsets;
  var key = _.invert(map)[int.quality];

  return parseInt(key, 10);
}
function ( int ) { var map = interval . isPerfect ( int . number ) ? perfectOffsets : majorOffsets ; var key = _ . invert ( map ) [ int . quality ] ; return parseInt ( key , 10 ) ; }
Find the number of half steps between interval and corresponding diatonic interval
Find the number of half steps between interval and corresponding diatonic interval