Skip to content

Commit

Permalink
fix: test and build
Browse files Browse the repository at this point in the history
  • Loading branch information
danigb committed Sep 17, 2024
1 parent bd25680 commit 8317cd6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 1 addition & 3 deletions packages/chord-type/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ const CHORDS: string[][] = [
["1P 3m 5P 7m 9M 13M", "minor thirteenth", "m13 -13"],
// '''Diminished'''
["1P 3m 5d", "diminished", "dim ° o"],
["1P 3m 5d 7d", "diminished seventh", "dim7 °7 o7 07"],
["1P 3m 5d 7d", "diminished seventh", "dim7 °7 o7"],
["1P 3m 5d 7m", "half-diminished", "m7b5 ø -7b5 h7 h"],
["1P 3m 5A", "minor augmented", "m#5 -#5 m+ maug"],

// ==Dominant/Seventh==
// '''Normal'''
["1P 3M 5P 7m", "dominant seventh", "7 dom"],
Expand Down
14 changes: 8 additions & 6 deletions packages/chord-type/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ let index: Record<ChordTypeName, ChordType> = {};
* Given a chord name or chroma, return the chord properties
* @param {string} source - chord name or pitch class set chroma
* @example
* ChordType.get('major') // => { name: 'major', ... }
* import { get } from 'tonaljs/chord-type'
* get('major') // => { name: 'major', ... }
*/
export function get(type: ChordTypeName): ChordType {
return index[type] || NoChordType;
}

/** @deprecated */
export const chordType = get;

/**
* Get all chord (long) names
*/
Expand Down Expand Up @@ -136,9 +140,7 @@ export default {
add,
removeAll,
keys,

/** @deprecated */
entries: all,
/** @deprecated */
chordType: get,
// deprecated
entries,
chordType,
};
2 changes: 1 addition & 1 deletion packages/tonal/browser/tonal.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/tonal/browser/tonal.min.js.map

Large diffs are not rendered by default.

0 comments on commit 8317cd6

Please sign in to comment.