Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function substr(a, b) {
if (a.length !== b.length) return null;
return tonalPitches.isPitchClass(a) ? tonalPitches.ivlPitch(b[1] - a[1]) : tonalPitches.ivlPitch(b[1] - a[1], b[2] - a[2]);
}
function substr (a, b) {
if (a.length !== b.length) return null
return isPitchClass(a)
? ivlPitch(b[1] - a[1])
: ivlPitch(b[1] - a[1], b[2] - a[2])
}