Skip to content

Latest commit

 

History

History
155 lines (97 loc) · 2.74 KB

CHANGELOG.md

File metadata and controls

155 lines (97 loc) · 2.74 KB

@tonaljs/chord-type

5.1.1

Patch Changes

5.1.0

Minor Changes

  • b113754: #### default export is deprecated for @tonaljs modules

    Using 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.

Patch Changes

5.0.5

Patch Changes

5.0.4

Patch Changes

5.0.3

Patch Changes

5.0.2

  • Add missing -maj7 alias

5.0.0

Major Changes

  • b07a54c0: Breaking change: Chord.get and Chord.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:

    1. Chord symbols never use octaves
    2. The old behavior is confusing and arbitrary

4.8.1

Patch Changes

  • 96df1a19: Add 6add9 to chord types aliases. Rename to "sixth added ninth"

4.8.0

Minor Changes

    • fix time signature parsing
    • add support for irrational time signatures
    • add option assumePerfectFifth to Chord.detect function

Patch Changes

4.7.2

Patch Changes

4.7.1

Patch Changes

4.7.0

Minor Changes

  • b120fc42: Publish tonal in tonal package. So use npm install tonal instead of npm install @tonaljs/tonal

Patch Changes

4.6.10

Patch Changes