@tonaljs/chord
Advanced tools
Comparing version
@@ -101,2 +101,3 @@ import { detect } from '@tonaljs/chord-detect'; | ||
declare function steps(chordName: ChordNameOrTokens, tonic?: string): (normalized: number) => string; | ||
/** @deprecated */ | ||
declare const _default: { | ||
@@ -103,0 +104,0 @@ getChord: typeof getChord; |
@@ -120,4 +120,3 @@ "use strict"; | ||
const ivl = (0, import_interval.subtract)((0, import_pitch_distance.distance)(tonic.pc, bass.pc), "8P"); | ||
if (ivl) | ||
intervals.unshift(ivl); | ||
if (ivl) intervals.unshift(ivl); | ||
} | ||
@@ -169,4 +168,3 @@ const notes2 = tonic.empty ? [] : intervals.map((i) => (0, import_pitch_distance.transpose)(tonic.pc, i)); | ||
const note2 = tonic || chord2.tonic; | ||
if (!note2 || chord2.empty) | ||
return []; | ||
if (!note2 || chord2.empty) return []; | ||
return chord2.intervals.map((ivl) => (0, import_pitch_distance.transpose)(note2, ivl)); | ||
@@ -173,0 +171,0 @@ } |
{ | ||
"name": "@tonaljs/chord", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "Musical chords and its relations", | ||
@@ -19,10 +19,10 @@ "keywords": [ | ||
"dependencies": { | ||
"@tonaljs/chord-detect": "4.8.5", | ||
"@tonaljs/chord-type": "5.0.5", | ||
"@tonaljs/collection": "4.8.1", | ||
"@tonaljs/interval": "^5.0.0", | ||
"@tonaljs/pcset": "4.9.2", | ||
"@tonaljs/pitch-distance": "5.0.3", | ||
"@tonaljs/chord-detect": "4.9.0", | ||
"@tonaljs/chord-type": "5.1.0", | ||
"@tonaljs/collection": "4.9.0", | ||
"@tonaljs/interval": "^5.1.0", | ||
"@tonaljs/pcset": "4.10.0", | ||
"@tonaljs/pitch-distance": "5.0.4", | ||
"@tonaljs/pitch-note": "6.0.0", | ||
"@tonaljs/scale-type": "4.8.5" | ||
"@tonaljs/scale-type": "4.9.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "author": "danigb@gmail.com", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52966
0.11%503
-0.59%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated