lib/note.js
function (number, halfSteps) {
  var diatonicHalfSteps = getDiatonicHalfSteps(number);
  var halfStepOffset = halfSteps - diatonicHalfSteps;

  // Handle various abnormalities
  if (halfStepOffset === 11) halfStepOffset = -1;
  if (halfStepOffset === -11) halfStepOffset = 1;

  return halfStepOffset;
}
function (number, halfSteps) {
  var diatonicHalfSteps = getDiatonicHalfSteps(number);
  var halfStepOffset = halfSteps - diatonicHalfSteps;

  // Handle various abnormalities
  if (halfStepOffset === 11) halfStepOffset = -1;
  if (halfStepOffset === -11) halfStepOffset = 1;

  return halfStepOffset;
}
function ( number , halfSteps ) { var diatonicHalfSteps = getDiatonicHalfSteps ( number ) ; var halfStepOffset = halfSteps - diatonicHalfSteps ; // Handle various abnormalities if ( halfStepOffset === 11 ) halfStepOffset = - 1 ; if ( halfStepOffset === - 11 ) halfStepOffset = 1 ; return halfStepOffset ; }
Find the offset between
Find the offset between