Skip to content

Commit aa083dd

Browse files
authored
Feat/key chords (#447)
* feat: generate secondary and substitute dominants and supertonics * feat: update tonal * chore: version bump
1 parent d1f2d3a commit aa083dd

File tree

13 files changed

+2341
-368
lines changed

13 files changed

+2341
-368
lines changed

docs/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# tonal
22

3+
## 6.3.0
4+
5+
- New `Key.majorKeyChords` and `Key.minorKeyChords` functions.
6+
7+
```js
8+
import * as Key from "tonal";
9+
10+
Key.majorKeyChords("C").find((chord) => chord.name === "Em"); // => { name: "Em", roles: ["T", "ii/II"] }
11+
```
12+
13+
- Renamed fields of key results. `secondaryDominantsMinorRelative` is now `secondaryDominantSupertonics` and `substituteDominantsMinorRelative` is now `substituteDominantSupertonics`. Previous names are kept for compatibility as deprecated (will be removed in next major version)
14+
315
## 6.2.0
416

517
### Minor Changes

packages/key/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @tonaljs/key
22

3+
## 4.11.0
4+
5+
- New `Key.majorKeyChords` and `Key.minorKeyChords` functions.
6+
7+
```js
8+
import * as Key from "tonal";
9+
10+
Key.majorKeyChords("C").find((chord) => chord.name === "Em"); // => { name: "Em", roles: ["T", "ii/II"] }
11+
```
12+
13+
- Renamed fields of key results. `secondaryDominantsMinorRelative` is now `secondaryDominantSupertonics` and `substituteDominantsMinorRelative` is now `substituteDominantSupertonics`. Previous names are kept for compatibility as deprecated (will be removed in next major version)
14+
315
## 4.10.0
416

517
### Minor Changes

0 commit comments

Comments
 (0)