operations.js
function distances (tonic, gamut) {
  if (!tonic) {
    if (!gamut[0]) return []
    tonic = gamut[0]
  }
  tonic = op.setDefaultOctave(0, tonic)
  return gamut.map(function (p) {
    return p ? op.subtract(tonic, op.setDefaultOctave(0, p)) : null
  })
}
function distances (tonic, gamut) {
  if (!tonic) {
    if (!gamut[0]) return []
    tonic = gamut[0]
  }
  tonic = op.setDefaultOctave(0, tonic)
  return gamut.map(function (p) {
    return p ? op.subtract(tonic, op.setDefaultOctave(0, p)) : null
  })
}
function distances ( tonic , gamut ) { if ( ! tonic ) { if ( ! gamut [ 0 ] ) return [ ] tonic = gamut [ 0 ] } tonic = op . setDefaultOctave ( 0 , tonic ) return gamut . map ( function ( p ) { return p ? op . subtract ( tonic , op . setDefaultOctave ( 0 , p ) ) : null } ) }
get distances from tonic to the rest of the notes
get distances from tonic to the rest of the notes