tonal-distance
Advanced tools
Comparing version 1.0.0-1 to 1.0.0-pre2
@@ -1,7 +0,7 @@ | ||
"use strict"; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var index = require("tonal-note/index"); | ||
var index$1 = require("tonal-interval/index"); | ||
var tonalNote = require('tonal-note'); | ||
var tonalInterval = require('tonal-interval'); | ||
@@ -73,4 +73,4 @@ /** | ||
const encodeNote = encoder(index.props); | ||
const encodeIvl = encoder(index$1.props); | ||
const encodeNote = encoder(tonalNote.props); | ||
const encodeIvl = encoder(tonalInterval.props); | ||
@@ -99,3 +99,3 @@ /** | ||
const tr = n.length === 1 ? [n[0] + i[0]] : [n[0] + i[0], n[1] + i[1]]; | ||
return index.build(decode(tr[0], tr[1])); | ||
return tonalNote.build(decode(tr[0], tr[1])); | ||
} | ||
@@ -124,3 +124,3 @@ | ||
if (n === null) return null; | ||
return index.build(decode(n[0] + fifths)); | ||
return tonalNote.build(decode(n[0] + fifths)); | ||
} | ||
@@ -170,3 +170,3 @@ | ||
const i = [i1[0] + dir * i2[0], i1[1] + dir * i2[1]]; | ||
return index$1.build(decodeIvl(i)); | ||
return tonalInterval.build(decodeIvl(i)); | ||
} | ||
@@ -233,3 +233,3 @@ | ||
: [t[0] - f[0], t[1] - f[1]]; | ||
return index$1.build(decodeIvl(d)); | ||
return tonalInterval.build(decodeIvl(d)); | ||
} | ||
@@ -251,4 +251,4 @@ | ||
if (arguments.length === 1) return t => semitones(from, t); | ||
const f = index.props(from); | ||
const t = index.props(to); | ||
const f = tonalNote.props(from); | ||
const t = tonalNote.props(to); | ||
return f.midi !== null && t.midi !== null | ||
@@ -255,0 +255,0 @@ ? t.midi - f.midi |
@@ -21,4 +21,4 @@ /** | ||
*/ | ||
import { props as nprops, build as nbuild } from "tonal-note/index"; | ||
import { props as iprops, build as ibuild } from "tonal-interval/index"; | ||
import { props as nprops, build as nbuild } from "tonal-note"; | ||
import { props as iprops, build as ibuild } from "tonal-interval"; | ||
@@ -25,0 +25,0 @@ // Map from letter step to number of fifths starting from 'C': |
{ | ||
"name": "tonal-distance", | ||
"version": "1.0.0-1", | ||
"version": "1.0.0-pre2", | ||
"description": "Transpose notes and find intervals between them", | ||
@@ -23,4 +23,4 @@ "keywords": [ | ||
"dependencies": { | ||
"tonal-interval": "^1.0.0-1", | ||
"tonal-note": "^1.0.0-1" | ||
"tonal-interval": "^1.0.0-pre2", | ||
"tonal-note": "^1.0.0-pre2" | ||
}, | ||
@@ -27,0 +27,0 @@ "babel": { |
26557
Updatedtonal-interval@^1.0.0-pre2
Updatedtonal-note@^1.0.0-pre2