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'))
}
exports.distance = tonalDistances.distance;
exports.dist = tonalDistances.dist;
exports.fifthsFrom = tonalDistances.fifthsFrom;
exports.toMidi = tonalMidi.toMidi;
exports.fromMidi = tonalMidi.fromMidi;
exports.fromMidiSharps = tonalMidi.fromMidiSharps;
exports.toFreq = tonalFreq.toFreq;
exports.asArr = tonalArrays.asArr;
exports.map = tonalArrays.map;
exports.filter = tonalArrays.filter;
exports.listFn = tonalArrays.listFn;
exports.harmonizer = tonalArrays.harmonizer;
exports.harmonize = tonalArrays.harmonize;
exports.shuffle = tonalArrays.shuffle;
exports.midiRange = tonalRanges.midiRange;
exports.chromatic = tonalRanges.chromatic;
exports.cycleOfFifths = tonalRanges.cycleOfFifths;
exports.scaleRange = tonalRanges.scaleRange;
exports.dist = tonalDistances.dist;
exports.fifthsFrom = tonalDistances.fifthsFrom;
exports.toMidi = tonalMidi.toMidi;
exports.fromMidi = tonalMidi.fromMidi;
exports.fromMidiSharps = tonalMidi.fromMidiSharps;
exports.toFreq = tonalFreq.toFreq;
exports.asArr = tonalArrays.asArr;
exports.map = tonalArrays.map;
exports.filter = tonalArrays.filter;
exports.listFn = tonalArrays.listFn;
exports.harmonizer = tonalArrays.harmonizer;
exports.harmonize = tonalArrays.harmonize;
exports.shuffle = tonalArrays.shuffle;
exports.midiRange = tonalRanges.midiRange;
exports.chromatic = tonalRanges.chromatic;
exports.cycleOfFifths = tonalRanges.cycleOfFifths;
exports.scaleRange = tonalRanges.scaleRange;
exports.fifthsFrom = tonalDistances.fifthsFrom;
exports.toMidi = tonalMidi.toMidi;
exports.fromMidi = tonalMidi.fromMidi;
exports.fromMidiSharps = tonalMidi.fromMidiSharps;
exports.toFreq = tonalFreq.toFreq;
exports.asArr = tonalArrays.asArr;
exports.map = tonalArrays.map;
exports.filter = tonalArrays.filter;
exports.listFn = tonalArrays.listFn;
exports.harmonizer = tonalArrays.harmonizer;
exports.harmonize = tonalArrays.harmonize;
exports.shuffle = tonalArrays.shuffle;
exports.midiRange = tonalRanges.midiRange;
exports.chromatic = tonalRanges.chromatic;
exports.cycleOfFifths = tonalRanges.cycleOfFifths;
exports.scaleRange = tonalRanges.scaleRange;