How to use tonal-ranges - 6 common examples

To help you get started, we’ve selected a few tonal-ranges examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tonaljs / tonal / packages / tonal-keys / dist / index.js View on Github external
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'));
};
github tonaljs / tonal / packages / tonal-keys / lib / index.js View on Github external
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'))
}
github tonaljs / tonal / packages / tonal-keys / lib / index.js View on Github external
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'))
}
github tonaljs / tonal / packages / tonal / dist / index.js View on Github external
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;
github tonaljs / tonal / packages / tonal / dist / index.js View on Github external
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;
github tonaljs / tonal / packages / tonal / dist / index.js View on Github external
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;

tonal-ranges

Deprecated: use tonal-range

MIT
Latest version published 8 years ago

Package Health Score

66 / 100
Full package analysis