Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var alteration = function alteration(key) {
var k = asKey(key);
if (!hasTonic(k)) return null;
var toMajor = modeNum(k);
var toC = tonalPitches.parseNote(k.tonic)[1];
return toC + toMajor;
};
export const alteration = (key) => {
const k = asKey(key)
if (!hasTonic(k)) return null
const toMajor = modeNum(k)
const toC = parseNote(k.tonic)[1]
return toC + toMajor
}