-
b07a54c0: Breaking change:
Chord.get
andChord.tokenize
assumes all numbers are part of the chord type, and never the tonic octave, when using with a single string parameter.Before, in v4.x:
Chord.get("C4maj7"); // => { symbol: 'Cmaj7', tonic: 'C4' ... }
Now, in > 5.x:
Chord.get("C4maj7"); // => { empty: true } <- there is no "4maj7" chord type, so no chord is returned
The old behaviour can be replicated by using an array as parameter.
This works both in v4.x and v5.x:
Chord.get(["C4", "maj7"]); // => { symbol: 'Cmaj7', tonic: 'C4' ... }
The reasons for this change are:
- Chord symbols never use octaves
- The old behavior is confusing and arbitrary
- Updated dependencies [b07a54c0]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- 96df1a19: Add 6add9 to chord types aliases. Rename to "sixth added ninth"
- Updated dependencies [96df1a19]
- @tonaljs/[email protected]
- 6fcd52db: Add Scale.steps and Chord.steps
- Updated dependencies [6fcd52db]
- @tonaljs/[email protected]
-
Chord.degrees
Example:
[1, 2, 3, 4].map(Chord.degrees("C4")) => ["C4", "E4", "G4", "C5"]
Deprecation removal:
@tonal/tonal
won't receive any updates. Usetonal
instead.
- Updated dependencies
- @tonaljs/[email protected]
-
- fix time signature parsing
- add support for irrational time signatures
- add option
assumePerfectFifth
toChord.detect
function
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- Unify package versions
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- fix npm publish problem
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- b120fc42: Publish tonal in
tonal
package. So usenpm install tonal
instead ofnpm install @tonaljs/tonal
- fix memory leak
- Updated dependencies
- Updated dependencies [b120fc42]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- Bug fixing
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- @tonaljs/[email protected]