How to use the tonal-distances.fifthsFrom function in tonal-distances

To help you get started, we’ve selected a few tonal-distances 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-ranges / lib / index.js View on Github external
export const cycleOfFifths = (s, e, t) => midiRange(s, e).map(fifthsFrom(t))
github tonaljs / tonal / packages / tonal-ranges / dist / index.js View on Github external
var cycleOfFifths = function cycleOfFifths(s, e, t) {
  return midiRange(s, e).map(tonalDistances.fifthsFrom(t));
};

tonal-distances

Transpose and find distance between notes

MIT
Latest version published 9 years ago

Package Health Score

66 / 100
Full package analysis