- @tonaljs/[email protected]
-
b113754: ####
default
export is deprecated for @tonaljs modulesUsing default exports for single packages are deprecated, so instead of:
import Note from "@tonaljs/note";
You should do this:
import * as Note from "@tonaljs/note";
The same for all modules.
- Updated dependencies [b113754]
- @tonaljs/[email protected]
- Updated dependencies [48fecc4]
- Updated dependencies [48fecc4]
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- Dependencies between packages are now fixed
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- Named type was renamed to NamedPitch. Add old export for backwards compatibility
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- Add missing -maj7 alias
-
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
- 96df1a19: Add 6add9 to chord types aliases. Rename to "sixth added ninth"
-
- fix time signature parsing
- add support for irrational time signatures
- add option
assumePerfectFifth
toChord.detect
function
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- Unify package versions
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]
- fix npm publish problem
- Updated dependencies
- @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]
- Bug fixing
- Updated dependencies
- @tonaljs/[email protected]
- @tonaljs/[email protected]