Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var alteredNotes = function alteredNotes(key) {
var alt = alteration(key);
return alt === null ? null : alt < 0 ? tonalRanges.midiRange(-1, alt).map(tonalDistances.fifthsFrom('F')) : tonalRanges.midiRange(1, alt).map(tonalDistances.fifthsFrom('B'));
};
export const alteredNotes = (key) => {
var alt = alteration(key)
return alt === null ? null
: alt < 0 ? midiRange(-1, alt).map(fifthsFrom('F'))
: midiRange(1, alt).map(fifthsFrom('B'))
}
export const alteredNotes = (key) => {
var alt = alteration(key)
return alt === null ? null
: alt < 0 ? midiRange(-1, alt).map(fifthsFrom('F'))
: midiRange(1, alt).map(fifthsFrom('B'))
}
export const cycleOfFifths = (s, e, t) => midiRange(s, e).map(fifthsFrom(t))
var cycleOfFifths = function cycleOfFifths(s, e, t) {
return midiRange(s, e).map(tonalDistances.fifthsFrom(t));
};