How to use the tonal-pitches.isNum function in tonal-pitches

To help you get started, we’ve selected a few tonal-pitches 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 const fromAlter = (n) => isNum(n) ? major(n) : null
github tonaljs / tonal / packages / tonal-arrays / dist / index.js View on Github external
var objHeight = function objHeight(p) {
  if (!p) return -Infinity;
  var f = p[1] * 7;
  var o = tonalPitches.isNum(p[2]) ? p[2] : -Math.floor(f / 12) - 10;
  return f + o * 12;
};
github tonaljs / tonal / packages / tonal-arrays / lib / index.js View on Github external
const objHeight = function (p) {
  if (!p) return -Infinity
  const f = p[1] * 7
  const o = isNum(p[2]) ? p[2] : -Math.floor(f / 12) - 10
  return f + o * 12
}
github tonaljs / tonal / packages / tonal-keys / dist / index.js View on Github external
var fromAlter = function fromAlter(n) {
  return tonalPitches.isNum(n) ? major(n) : null;
};
github tonaljs / tonal / packages / tonal-collections / dist / index.js View on Github external
const objHeight = function (p) {
  if (!p) return -Infinity
  const f = p[1] * 7
  const o = tonalPitches.isNum(p[2]) ? p[2] : -Math.floor(f / 12) - 10
  return f + o * 12
}