How to use the tonal-notes.pc function in tonal-notes

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 };
}

tonal-notes

Work with notes

MIT
Latest version published 8 years ago

Package Health Score

63 / 100
Full package analysis