How to use tonal-notes - 6 common examples

To help you get started, we’ve selected a few tonal-notes 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 / lib / index.js View on Github external
export function build (tonic, mode) {
  if (!isStr(mode)) return null
  var m = mode.trim().toLowerCase()
  if (!isModeStr(m)) return null
  var t = pc(tonic) || false
  var n = t ? t + ' ' + m : null
  return { name: n, tonic: t, mode: m }
}
github tonaljs / tonal / packages / tonal-keys / dist / index.js View on Github external
function build(tonic, mode) {
  if (!tonalPitches.isStr(mode)) return null;
  var m = mode.trim().toLowerCase();
  if (!isModeStr(m)) return null;
  var t = tonalNotes.pc(tonic) || false;
  var n = t ? t + ' ' + m : null;
  return { name: n, tonic: t, mode: m };
}
github tonaljs / tonal / packages / tonal / dist / index.js View on Github external
'use strict';

var tonalNotes = require('tonal-notes');
var tonalDistances = require('tonal-distances');
var tonalMidi = require('tonal-midi');
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;
github tonaljs / tonal / packages / tonal / dist / index.js View on Github external
'use strict';

var tonalNotes = require('tonal-notes');
var tonalDistances = require('tonal-distances');
var tonalMidi = require('tonal-midi');
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;
github tonaljs / tonal / packages / tonal / dist / index.js View on Github external
'use strict';

var tonalNotes = require('tonal-notes');
var tonalDistances = require('tonal-distances');
var tonalMidi = require('tonal-midi');
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;
github tonaljs / tonal / packages / tonal / dist / index.js View on Github external
'use strict';

var tonalNotes = require('tonal-notes');
var tonalDistances = require('tonal-distances');
var tonalMidi = require('tonal-midi');
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;

tonal-notes

Work with notes

MIT
Latest version published 9 years ago

Package Health Score

64 / 100
Full package analysis