@tonaljs/chord
Advanced tools
Comparing version
@@ -161,2 +161,3 @@ "use strict"; | ||
steps, | ||
// deprecate | ||
chord | ||
@@ -163,0 +164,0 @@ }; |
{ | ||
"name": "@tonaljs/chord", | ||
"version": "4.10.2", | ||
"version": "5.0.0", | ||
"description": "Musical chords and its relations", | ||
@@ -19,4 +19,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@tonaljs/chord-detect": "^4.8.1", | ||
"@tonaljs/chord-type": "^4.8.2", | ||
"@tonaljs/chord-detect": "^4.8.2", | ||
"@tonaljs/chord-type": "^5.0.0", | ||
"@tonaljs/collection": "^4.8.0", | ||
@@ -23,0 +23,0 @@ "@tonaljs/core": "^4.10.0", |
@@ -53,3 +53,3 @@ # @tonaljs/chord  [](https://www.npmjs.com/package/@tonaljs/chord) | ||
#### `Chord.get(name: string) =>` | ||
#### `Chord.get(name: string | [string, string]) => Chord` | ||
@@ -61,6 +61,8 @@ An alias of `Chord.getChord` but accepts a chord symbol as parameter. | ||
// same as | ||
Chord.get(["C", "maj7"]); | ||
// same as | ||
Chord.getChord("maj7", "C"); | ||
``` | ||
Important: currently chord with roots are NOT allowed (will be implemented in next version): | ||
Important: currently chord with bass are NOT allowed (will be implemented in next version): | ||
@@ -71,3 +73,3 @@ ```js | ||
### `Chord.degrees(chordName: string) => (degree: number) => string` | ||
### `Chord.degrees(chordName: string | [string, string]) => (degree: number) => string` | ||
@@ -77,3 +79,3 @@ `Scale.degrees` returns a function to get a note name from a scale degree: | ||
```js | ||
const c4m7 = Chord.degrees("C4m7"); | ||
const c4m7 = Chord.degrees(["C4", "m7"); | ||
c4m7(1); // => "C4" | ||
@@ -80,0 +82,0 @@ c4m7(2); // => "Eb4" |
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
40271
0.53%432
0.47%156
1.3%- Removed
Updated
Updated