How to use the tonal-distances.dist 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 / dist / index.js View on Github external
var tonalFreq = require('tonal-freq');
var tonalArrays = require('tonal-arrays');
var tonalRanges = require('tonal-ranges');



exports.noteName = tonalNotes.noteName;
exports.chroma = tonalNotes.chroma;
exports.pc = tonalNotes.pc;
exports.enharmonics = tonalNotes.enharmonics;
exports.simplify = tonalNotes.simplify;
exports.transpose = tonalDistances.transpose;
exports.tr = tonalDistances.tr;
exports.interval = tonalDistances.interval;
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;

tonal-distances

Transpose and find distance between notes

MIT
Latest version published 9 years ago

Package Health Score

63 / 100
Full package analysis