@musodojo/music-theory-data 31.0.0 → 32.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -287
- package/esm/src/data/chord-progressions/mod.d.ts +3 -0
- package/esm/src/data/chord-progressions/mod.d.ts.map +1 -1
- package/esm/src/data/chord-progressions/mod.js +2 -0
- package/esm/src/data/chords/mod.d.ts +12 -0
- package/esm/src/data/chords/mod.d.ts.map +1 -1
- package/esm/src/data/chords/mod.js +1 -0
- package/esm/src/data/chromatic.d.ts +2 -0
- package/esm/src/data/chromatic.d.ts.map +1 -1
- package/esm/src/data/chromatic.js +2 -0
- package/esm/src/data/colors/mod.d.ts +14 -0
- package/esm/src/data/colors/mod.d.ts.map +1 -1
- package/esm/src/data/colors/mod.js +5 -0
- package/esm/src/data/note-collections/augmented-variants.d.ts +1 -0
- package/esm/src/data/note-collections/augmented-variants.d.ts.map +1 -1
- package/esm/src/data/note-collections/augmented-variants.js +4 -2
- package/esm/src/data/note-collections/diminished-variants.d.ts +1 -0
- package/esm/src/data/note-collections/diminished-variants.d.ts.map +1 -1
- package/esm/src/data/note-collections/diminished-variants.js +1 -0
- package/esm/src/data/note-collections/dominant-variants.d.ts +1 -0
- package/esm/src/data/note-collections/dominant-variants.d.ts.map +1 -1
- package/esm/src/data/note-collections/dominant-variants.js +1 -0
- package/esm/src/data/note-collections/major-variants.d.ts +1 -0
- package/esm/src/data/note-collections/major-variants.d.ts.map +1 -1
- package/esm/src/data/note-collections/major-variants.js +1 -0
- package/esm/src/data/note-collections/minor-variants.d.ts +1 -0
- package/esm/src/data/note-collections/minor-variants.d.ts.map +1 -1
- package/esm/src/data/note-collections/minor-variants.js +1 -0
- package/esm/src/data/note-collections/other-collections.d.ts +1 -0
- package/esm/src/data/note-collections/other-collections.d.ts.map +1 -1
- package/esm/src/data/note-collections/other-collections.js +1 -0
- package/esm/src/data/note-collections/pentatonic-variants.d.ts +1 -0
- package/esm/src/data/note-collections/pentatonic-variants.d.ts.map +1 -1
- package/esm/src/data/note-collections/pentatonic-variants.js +1 -0
- package/esm/src/data/tunings/bass-guitar-tunings.d.ts +7 -0
- package/esm/src/data/tunings/bass-guitar-tunings.d.ts.map +1 -1
- package/esm/src/data/tunings/bass-guitar-tunings.js +3 -0
- package/esm/src/data/tunings/folk-fretted-string-tunings.d.ts +7 -0
- package/esm/src/data/tunings/folk-fretted-string-tunings.d.ts.map +1 -1
- package/esm/src/data/tunings/folk-fretted-string-tunings.js +3 -0
- package/esm/src/data/tunings/guitar-tunings.d.ts +8 -0
- package/esm/src/data/tunings/guitar-tunings.d.ts.map +1 -1
- package/esm/src/data/tunings/guitar-tunings.js +3 -0
- package/esm/src/data/tunings/orchestral-string-tunings.d.ts +6 -0
- package/esm/src/data/tunings/orchestral-string-tunings.d.ts.map +1 -1
- package/esm/src/data/tunings/orchestral-string-tunings.js +2 -0
- package/esm/src/data/tunings/string-instrument-groups.d.ts +8 -0
- package/esm/src/data/tunings/string-instrument-groups.d.ts.map +1 -1
- package/esm/src/data/tunings/string-instrument-groups.js +6 -0
- package/esm/src/data/tunings/string-instrument-tunings.d.ts +10 -0
- package/esm/src/data/tunings/string-instrument-tunings.d.ts.map +1 -1
- package/esm/src/data/tunings/string-instrument-tunings.js +5 -0
- package/esm/src/mod.d.ts +0 -47
- package/esm/src/mod.d.ts.map +1 -1
- package/esm/src/mod.js +0 -47
- package/esm/src/utils/chord-progressions.d.ts +7 -0
- package/esm/src/utils/chord-progressions.d.ts.map +1 -1
- package/esm/src/utils/chord-progressions.js +6 -0
- package/package.json +1 -1
- package/script/src/data/chord-progressions/mod.d.ts +3 -0
- package/script/src/data/chord-progressions/mod.d.ts.map +1 -1
- package/script/src/data/chord-progressions/mod.js +2 -0
- package/script/src/data/chords/mod.d.ts +12 -0
- package/script/src/data/chords/mod.d.ts.map +1 -1
- package/script/src/data/chords/mod.js +1 -0
- package/script/src/data/chromatic.d.ts +2 -0
- package/script/src/data/chromatic.d.ts.map +1 -1
- package/script/src/data/chromatic.js +2 -0
- package/script/src/data/colors/mod.d.ts +14 -0
- package/script/src/data/colors/mod.d.ts.map +1 -1
- package/script/src/data/colors/mod.js +5 -0
- package/script/src/data/note-collections/augmented-variants.d.ts +1 -0
- package/script/src/data/note-collections/augmented-variants.d.ts.map +1 -1
- package/script/src/data/note-collections/augmented-variants.js +4 -2
- package/script/src/data/note-collections/diminished-variants.d.ts +1 -0
- package/script/src/data/note-collections/diminished-variants.d.ts.map +1 -1
- package/script/src/data/note-collections/diminished-variants.js +1 -0
- package/script/src/data/note-collections/dominant-variants.d.ts +1 -0
- package/script/src/data/note-collections/dominant-variants.d.ts.map +1 -1
- package/script/src/data/note-collections/dominant-variants.js +1 -0
- package/script/src/data/note-collections/major-variants.d.ts +1 -0
- package/script/src/data/note-collections/major-variants.d.ts.map +1 -1
- package/script/src/data/note-collections/major-variants.js +1 -0
- package/script/src/data/note-collections/minor-variants.d.ts +1 -0
- package/script/src/data/note-collections/minor-variants.d.ts.map +1 -1
- package/script/src/data/note-collections/minor-variants.js +1 -0
- package/script/src/data/note-collections/other-collections.d.ts +1 -0
- package/script/src/data/note-collections/other-collections.d.ts.map +1 -1
- package/script/src/data/note-collections/other-collections.js +1 -0
- package/script/src/data/note-collections/pentatonic-variants.d.ts +1 -0
- package/script/src/data/note-collections/pentatonic-variants.d.ts.map +1 -1
- package/script/src/data/note-collections/pentatonic-variants.js +1 -0
- package/script/src/data/tunings/bass-guitar-tunings.d.ts +7 -0
- package/script/src/data/tunings/bass-guitar-tunings.d.ts.map +1 -1
- package/script/src/data/tunings/bass-guitar-tunings.js +3 -0
- package/script/src/data/tunings/folk-fretted-string-tunings.d.ts +7 -0
- package/script/src/data/tunings/folk-fretted-string-tunings.d.ts.map +1 -1
- package/script/src/data/tunings/folk-fretted-string-tunings.js +3 -0
- package/script/src/data/tunings/guitar-tunings.d.ts +8 -0
- package/script/src/data/tunings/guitar-tunings.d.ts.map +1 -1
- package/script/src/data/tunings/guitar-tunings.js +3 -0
- package/script/src/data/tunings/orchestral-string-tunings.d.ts +6 -0
- package/script/src/data/tunings/orchestral-string-tunings.d.ts.map +1 -1
- package/script/src/data/tunings/orchestral-string-tunings.js +2 -0
- package/script/src/data/tunings/string-instrument-groups.d.ts +8 -0
- package/script/src/data/tunings/string-instrument-groups.d.ts.map +1 -1
- package/script/src/data/tunings/string-instrument-groups.js +6 -0
- package/script/src/data/tunings/string-instrument-tunings.d.ts +10 -0
- package/script/src/data/tunings/string-instrument-tunings.d.ts.map +1 -1
- package/script/src/data/tunings/string-instrument-tunings.js +5 -0
- package/script/src/mod.d.ts +0 -47
- package/script/src/mod.d.ts.map +1 -1
- package/script/src/mod.js +0 -47
- package/script/src/utils/chord-progressions.d.ts +7 -0
- package/script/src/utils/chord-progressions.d.ts.map +1 -1
- package/script/src/utils/chord-progressions.js +6 -0
|
@@ -2,15 +2,21 @@ import { type ChordProgressionKey } from "../data/chord-progressions/mod.js";
|
|
|
2
2
|
import type { ChordProgression } from "../types/chord-progressions";
|
|
3
3
|
import type { RootNote } from "../data/labels/note-labels.js";
|
|
4
4
|
import type { NoteCollectionKey } from "../data/note-collections/mod.js";
|
|
5
|
+
/** A resolved chord in a progression, including its root and note-collection key. */
|
|
5
6
|
export interface ChordProgressionChordReference {
|
|
6
7
|
readonly rootNote: RootNote;
|
|
7
8
|
readonly chordName: string;
|
|
8
9
|
readonly noteCollectionKey: NoteCollectionKey;
|
|
9
10
|
}
|
|
11
|
+
/** Returns whether a string is one of the built-in chord progression keys. */
|
|
10
12
|
export declare function isValidChordProgressionKey(key: string): key is ChordProgressionKey;
|
|
13
|
+
/** Returns the spelled chord names for a progression in the requested root. */
|
|
11
14
|
export declare function getChordProgressionChordNames(rootNote: RootNote, progressionOrKey: ChordProgression | ChordProgressionKey): string[];
|
|
15
|
+
/** Returns the roman symbols authored for a chord progression. */
|
|
12
16
|
export declare function getChordProgressionRomanSymbols(progressionOrKey: ChordProgression | ChordProgressionKey): string[];
|
|
17
|
+
/** Returns all built-in chord progression keys with the requested total bar count. */
|
|
13
18
|
export declare function getChordProgressionKeysForTotalBars(totalBars: number): ChordProgressionKey[];
|
|
19
|
+
/** Returns each distinct chord name in a progression, preserving first-seen order. */
|
|
14
20
|
export declare function getChordProgressionUniqueChordNames(rootNote: RootNote, progressionOrKey: ChordProgression | ChordProgressionKey): string[];
|
|
15
21
|
/**
|
|
16
22
|
* Returns one chord reference for each authored chord entry in
|
|
@@ -39,5 +45,6 @@ export declare function getChordProgressionChordReferencesByBar(rootNote: RootNo
|
|
|
39
45
|
* appears twice and split bars preserve their left-to-right order.
|
|
40
46
|
*/
|
|
41
47
|
export declare function getChordProgressionSongChordReferences(rootNote: RootNote, progressionOrKey: ChordProgression | ChordProgressionKey): ChordProgressionChordReference[];
|
|
48
|
+
/** Returns the sum of authored chord durations in bars for a progression. */
|
|
42
49
|
export declare function getChordProgressionTotalDurationInBars(progressionOrKey: ChordProgression | ChordProgressionKey): number;
|
|
43
50
|
//# sourceMappingURL=chord-progressions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chord-progressions.d.ts","sourceRoot":"","sources":["../../../src/src/utils/chord-progressions.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EAEzB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,KAAK,EACV,gBAAgB,EAEjB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAMzE,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;CAC/C;AASD,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,GACV,GAA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,gBAAgB,EAAE,gBAAgB,GAAG,mBAAmB,GACvD,8BAA8B,EAAE,EAAE,CAiDpC;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,EAAE,gBAAgB,GAAG,mBAAmB,GACvD,8BAA8B,EAAE,CAKlC;AAED,6EAA6E;AAC7E,wBAAgB,sCAAsC,CACpD,gBAAgB,EAAE,gBAAgB,GAAG,mBAAmB,GACvD,MAAM,CAQR"}
|
|
@@ -2,6 +2,7 @@ import { chordProgressionBarGroups, chordProgressions, } from "../data/chord-pro
|
|
|
2
2
|
import { getChordQualityNoteCollectionKey } from "../data/chords/mod.js";
|
|
3
3
|
import { getNoteNamesForRootAndIntervals, normalizeRootNoteString, } from "./note-names.js";
|
|
4
4
|
const BAR_DURATION_EPSILON = 0.000000001;
|
|
5
|
+
/** Returns whether a string is one of the built-in chord progression keys. */
|
|
5
6
|
export function isValidChordProgressionKey(key) {
|
|
6
7
|
return Object.prototype.hasOwnProperty.call(chordProgressions, key);
|
|
7
8
|
}
|
|
@@ -32,6 +33,7 @@ function getResolvedChordProgressionChordReferences(rootNote, progressionOrKey)
|
|
|
32
33
|
}];
|
|
33
34
|
});
|
|
34
35
|
}
|
|
36
|
+
/** Returns the spelled chord names for a progression in the requested root. */
|
|
35
37
|
export function getChordProgressionChordNames(rootNote, progressionOrKey) {
|
|
36
38
|
const progression = resolveProgression(progressionOrKey);
|
|
37
39
|
if (!progression)
|
|
@@ -39,16 +41,19 @@ export function getChordProgressionChordNames(rootNote, progressionOrKey) {
|
|
|
39
41
|
const noteNames = getNoteNamesForRootAndIntervals(rootNote, progression.chords.map((chord) => chord.degree));
|
|
40
42
|
return progression.chords.map((chord, index) => noteNames[index] + chord.quality);
|
|
41
43
|
}
|
|
44
|
+
/** Returns the roman symbols authored for a chord progression. */
|
|
42
45
|
export function getChordProgressionRomanSymbols(progressionOrKey) {
|
|
43
46
|
const progression = resolveProgression(progressionOrKey);
|
|
44
47
|
if (!progression)
|
|
45
48
|
return [];
|
|
46
49
|
return progression.chords.map((chord) => chord.romanSymbol);
|
|
47
50
|
}
|
|
51
|
+
/** Returns all built-in chord progression keys with the requested total bar count. */
|
|
48
52
|
export function getChordProgressionKeysForTotalBars(totalBars) {
|
|
49
53
|
return chordProgressionBarGroups.find((group) => group.totalBars === totalBars)
|
|
50
54
|
?.progressionKeys.slice() ?? [];
|
|
51
55
|
}
|
|
56
|
+
/** Returns each distinct chord name in a progression, preserving first-seen order. */
|
|
52
57
|
export function getChordProgressionUniqueChordNames(rootNote, progressionOrKey) {
|
|
53
58
|
return Array.from(new Set(getChordProgressionChordNames(rootNote, progressionOrKey)));
|
|
54
59
|
}
|
|
@@ -123,6 +128,7 @@ export function getChordProgressionChordReferencesByBar(rootNote, progressionOrK
|
|
|
123
128
|
export function getChordProgressionSongChordReferences(rootNote, progressionOrKey) {
|
|
124
129
|
return getChordProgressionChordReferencesByBar(rootNote, progressionOrKey).flat();
|
|
125
130
|
}
|
|
131
|
+
/** Returns the sum of authored chord durations in bars for a progression. */
|
|
126
132
|
export function getChordProgressionTotalDurationInBars(progressionOrKey) {
|
|
127
133
|
const progression = resolveProgression(progressionOrKey);
|
|
128
134
|
if (!progression)
|
package/package.json
CHANGED
|
@@ -15,8 +15,11 @@ declare const _chordProgressions: {
|
|
|
15
15
|
readonly twelveBarBlues: ChordProgression;
|
|
16
16
|
readonly twelveBarBluesQuickChange: ChordProgression;
|
|
17
17
|
};
|
|
18
|
+
/** A key for one of the built-in chord progression templates. */
|
|
18
19
|
export type ChordProgressionKey = keyof typeof _chordProgressions;
|
|
20
|
+
/** Built-in chord progression templates keyed by progression id. */
|
|
19
21
|
export declare const chordProgressions: Record<ChordProgressionKey, ChordProgression>;
|
|
22
|
+
/** Built-in chord progression keys grouped by total duration in bars. */
|
|
20
23
|
export declare const chordProgressionBarGroups: readonly ChordProgressionBarGroup<ChordProgressionKey>[];
|
|
21
24
|
export {};
|
|
22
25
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/data/chord-progressions/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EAEzB,MAAM,gCAAgC,CAAC;AAqJxC,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;CAed,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAElE,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,EAAE,gBAAgB,CACxD,CAAC;AAiBrB,eAAO,MAAM,yBAAyB,EAAE,SAAS,wBAAwB,CACvE,mBAAmB,CACpB,EAM0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/data/chord-progressions/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EAEzB,MAAM,gCAAgC,CAAC;AAqJxC,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;CAed,CAAC;AAEX,iEAAiE;AACjE,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAElE,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,EAAE,gBAAgB,CACxD,CAAC;AAiBrB,yEAAyE;AACzE,eAAO,MAAM,yBAAyB,EAAE,SAAS,wBAAwB,CACvE,mBAAmB,CACpB,EAM0C,CAAC"}
|
|
@@ -144,6 +144,7 @@ const _chordProgressions = {
|
|
|
144
144
|
twelveBarBlues,
|
|
145
145
|
twelveBarBluesQuickChange,
|
|
146
146
|
};
|
|
147
|
+
/** Built-in chord progression templates keyed by progression id. */
|
|
147
148
|
exports.chordProgressions = _chordProgressions;
|
|
148
149
|
const chordProgressionsByTotalBars = Object.entries(exports.chordProgressions)
|
|
149
150
|
.reduce((groups, [key, progression]) => {
|
|
@@ -157,6 +158,7 @@ const chordProgressionsByTotalBars = Object.entries(exports.chordProgressions)
|
|
|
157
158
|
}
|
|
158
159
|
return groups;
|
|
159
160
|
}, new Map());
|
|
161
|
+
/** Built-in chord progression keys grouped by total duration in bars. */
|
|
160
162
|
exports.chordProgressionBarGroups = Array.from(chordProgressionsByTotalBars, ([totalBars, progressionKeys]) => ({
|
|
161
163
|
totalBars,
|
|
162
164
|
progressionKeys,
|
|
@@ -3,15 +3,25 @@ declare const _triadChordQualities: readonly ["M", "m", "°", "+"];
|
|
|
3
3
|
declare const _seventhChordQualities: readonly ["M7", "m7", "7", "ø7", "m7♭5", "°7", "m(M7)", "+M7", "M7♯5"];
|
|
4
4
|
declare const _upperCaseRomanNumerals: readonly ["I", "II", "III", "IV", "V", "VI", "VII"];
|
|
5
5
|
declare const _lowerCaseRomanNumerals: readonly ["i", "ii", "iii", "iv", "v", "vi", "vii"];
|
|
6
|
+
/** A supported triad chord quality suffix. */
|
|
6
7
|
export type Triad = (typeof _triadChordQualities)[number];
|
|
8
|
+
/** A supported seventh-chord quality suffix. */
|
|
7
9
|
export type SeventhChord = (typeof _seventhChordQualities)[number];
|
|
10
|
+
/** Any supported chord quality suffix. */
|
|
8
11
|
export type ChordQuality = Triad | SeventhChord;
|
|
12
|
+
/** An uppercase roman numeral for scale degrees one through seven. */
|
|
9
13
|
export type UpperCaseRomanNumeral = (typeof _upperCaseRomanNumerals)[number];
|
|
14
|
+
/** A lowercase roman numeral for scale degrees one through seven. */
|
|
10
15
|
export type LowerCaseRomanNumeral = (typeof _lowerCaseRomanNumerals)[number];
|
|
16
|
+
/** Any supported roman numeral scale-degree symbol. */
|
|
11
17
|
export type RomanNumeral = UpperCaseRomanNumeral | LowerCaseRomanNumeral;
|
|
18
|
+
/** A roman-numeral triad symbol with an optional triad quality suffix. */
|
|
12
19
|
export type RomanTriad = `${RomanNumeral}` | `${RomanNumeral}${Triad}`;
|
|
20
|
+
/** A roman-numeral seventh-chord symbol with a seventh quality suffix. */
|
|
13
21
|
export type RomanSeventhChord = `${RomanNumeral}${SeventhChord}`;
|
|
22
|
+
/** The letter case used when rendering a roman numeral chord symbol. */
|
|
14
23
|
export type RomanNumeralCase = "upper" | "lower";
|
|
24
|
+
/** Rendering metadata for converting a chord quality into roman notation. */
|
|
15
25
|
export interface ChordQualityRomanRendering {
|
|
16
26
|
readonly numeralCase: RomanNumeralCase;
|
|
17
27
|
readonly suffix: string;
|
|
@@ -22,6 +32,7 @@ export declare const triadChordQualities: readonly Triad[];
|
|
|
22
32
|
export declare const seventhChordQualities: readonly SeventhChord[];
|
|
23
33
|
/** The complete set of supported chord suffix qualities. */
|
|
24
34
|
export declare const chordQualities: readonly ChordQuality[];
|
|
35
|
+
/** Maps each supported chord quality to its matching note-collection key. */
|
|
25
36
|
export type ChordQualityNoteCollectionKeyMap = Record<ChordQuality, NoteCollectionKey>;
|
|
26
37
|
/** Note-collection keys for every supported chord quality. */
|
|
27
38
|
export declare const chordQualityNoteCollectionKeys: ChordQualityNoteCollectionKeyMap;
|
|
@@ -43,6 +54,7 @@ export declare const melodicMinorSeventhChords: SeventhChord[];
|
|
|
43
54
|
export declare const upperCaseRomanNumerals: readonly UpperCaseRomanNumeral[];
|
|
44
55
|
/** An array mapping 7 index scale degrees to their corresponding lower-case Roman numerals. */
|
|
45
56
|
export declare const lowerCaseRomanNumerals: readonly LowerCaseRomanNumeral[];
|
|
57
|
+
/** Returns the note-collection key that describes the notes in a chord quality. */
|
|
46
58
|
export declare function getChordQualityNoteCollectionKey(quality: ChordQuality): NoteCollectionKey;
|
|
47
59
|
export {};
|
|
48
60
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/data/chords/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,QAAA,MAAM,oBA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EAAE,SAAS,qBAAqB,EAC1C,CAAC;AAE1B,mFAAmF;AACnF,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,YAAY,GACpB,iBAAiB,CAEnB"}
|
|
@@ -138,6 +138,7 @@ exports.melodicMinorSeventhChords = [
|
|
|
138
138
|
exports.upperCaseRomanNumerals = _upperCaseRomanNumerals;
|
|
139
139
|
/** An array mapping 7 index scale degrees to their corresponding lower-case Roman numerals. */
|
|
140
140
|
exports.lowerCaseRomanNumerals = _lowerCaseRomanNumerals;
|
|
141
|
+
/** Returns the note-collection key that describes the notes in a chord quality. */
|
|
141
142
|
function getChordQualityNoteCollectionKey(quality) {
|
|
142
143
|
return exports.chordQualityNoteCollectionKeys[quality];
|
|
143
144
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** The number of pitch classes in 12-tone equal-tempered chromatic space. */
|
|
1
2
|
export declare const CHROMATIC_NOTE_COUNT: 12;
|
|
2
3
|
/** A zero-indexed chromatic pitch-class or relative degree slot. */
|
|
3
4
|
export type ChromaticIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
@@ -18,6 +19,7 @@ export type ChromaticTuple<T> = readonly [
|
|
|
18
19
|
T,
|
|
19
20
|
T
|
|
20
21
|
];
|
|
22
|
+
/** The ordered set of all valid chromatic indexes from C/root through B/7. */
|
|
21
23
|
export declare const CHROMATIC_INDEXES: ChromaticTuple<ChromaticIndex>;
|
|
22
24
|
/** A variable-length set of chromatic indexes, such as the pitch classes in a scale or dyad. */
|
|
23
25
|
export type ChromaticIndexSet = readonly ChromaticIndex[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chromatic.d.ts","sourceRoot":"","sources":["../../../src/src/data/chromatic.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,EAAG,EAAW,CAAC;AAEhD,oEAAoE;AACpE,MAAM,MAAM,cAAc,GACtB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,CAAC;AAEP,mDAAmD;AACnD,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC;AAEpD,iFAAiF;AACjF,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,SAAS;IACvC,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;CACF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,cAAc,CAanD,CAAC;AAEX,gGAAgG;AAChG,MAAM,MAAM,iBAAiB,GAAG,SAAS,cAAc,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"chromatic.d.ts","sourceRoot":"","sources":["../../../src/src/data/chromatic.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,EAAG,EAAW,CAAC;AAEhD,oEAAoE;AACpE,MAAM,MAAM,cAAc,GACtB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,CAAC;AAEP,mDAAmD;AACnD,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,UAAU,CAAC;AAEpD,iFAAiF;AACjF,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,SAAS;IACvC,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;IACD,CAAC;CACF,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,cAAc,CAanD,CAAC;AAEX,gGAAgG;AAChG,MAAM,MAAM,iBAAiB,GAAG,SAAS,cAAc,EAAE,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CHROMATIC_INDEXES = exports.CHROMATIC_NOTE_COUNT = void 0;
|
|
4
|
+
/** The number of pitch classes in 12-tone equal-tempered chromatic space. */
|
|
4
5
|
exports.CHROMATIC_NOTE_COUNT = 12;
|
|
6
|
+
/** The ordered set of all valid chromatic indexes from C/root through B/7. */
|
|
5
7
|
exports.CHROMATIC_INDEXES = [
|
|
6
8
|
0,
|
|
7
9
|
1,
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { type NoteLabelCollectionKey, type NoteLabelGroup } from "../labels/note-label-collections.js";
|
|
2
2
|
import type { ChromaticMode, ChromaticTuple } from "../chromatic.js";
|
|
3
|
+
/** Whether a note color collection uses absolute pitch classes or root-relative degrees. */
|
|
3
4
|
export type NoteColorMode = ChromaticMode;
|
|
5
|
+
/** A single note color value, or `null` when no semantic color is assigned. */
|
|
4
6
|
export type NoteColorValue = string | null;
|
|
7
|
+
/** A fixed 12-slot color tuple for absolute pitch classes or relative degrees. */
|
|
5
8
|
export type NoteColorTuple = ChromaticTuple<NoteColorValue>;
|
|
9
|
+
/** Metadata and color values for a named 12-slot note color collection. */
|
|
6
10
|
export interface NoteColorCollection {
|
|
7
11
|
readonly name: string;
|
|
8
12
|
readonly shortName?: string;
|
|
@@ -11,16 +15,24 @@ export interface NoteColorCollection {
|
|
|
11
15
|
readonly labelCollectionKey?: NoteLabelCollectionKey;
|
|
12
16
|
readonly colors: NoteColorTuple;
|
|
13
17
|
}
|
|
18
|
+
/** Backwards-compatible alias for a single note color value. */
|
|
14
19
|
export type Color = NoteColorValue;
|
|
20
|
+
/** Backwards-compatible alias for a 12-slot note color tuple. */
|
|
15
21
|
export type ColorGroup = NoteColorTuple;
|
|
22
|
+
/** Backwards-compatible alias for a note color collection. */
|
|
16
23
|
export type ColorCollection = NoteColorCollection;
|
|
24
|
+
/** Default label collection keys for absolute and relative note color modes. */
|
|
17
25
|
export type DefaultNoteColorLabelCollectionKeys = Readonly<Record<NoteColorMode, NoteLabelCollectionKey>> & Readonly<{
|
|
18
26
|
absolute: "noteNamesFlat";
|
|
19
27
|
relative: "intervalsFlat";
|
|
20
28
|
}>;
|
|
29
|
+
/** The default note label collection key used for each note color mode. */
|
|
21
30
|
export declare const defaultNoteColorLabelCollectionKeys: DefaultNoteColorLabelCollectionKeys;
|
|
31
|
+
/** Returns the default label collection key for an absolute or relative color mode. */
|
|
22
32
|
export declare function getDefaultNoteColorLabelCollectionKey(mode: NoteColorMode): NoteLabelCollectionKey;
|
|
33
|
+
/** Returns the explicit or default label collection key for a note color collection. */
|
|
23
34
|
export declare function getNoteColorLabelCollectionKey(collection: NoteColorCollection): NoteLabelCollectionKey;
|
|
35
|
+
/** Returns the 12 labels that should be displayed with a note color collection. */
|
|
24
36
|
export declare function getNoteColorLabels(collection: NoteColorCollection): NoteLabelGroup;
|
|
25
37
|
declare const _colorCollections: {
|
|
26
38
|
readonly musoDojo: {
|
|
@@ -56,7 +68,9 @@ declare const _colorCollections: {
|
|
|
56
68
|
readonly colors: readonly ["#E21C48", "#F26622", "#F99D1C", "#FFCC33", "#FFF32B", "#BCD85F", "#62BC47", "#009C95", "#0071BB", "#5E50A1", "#8D5BA6", "#CF3E96"];
|
|
57
69
|
};
|
|
58
70
|
};
|
|
71
|
+
/** A key for one of the built-in note color collections. */
|
|
59
72
|
export type ColorCollectionKey = keyof typeof _colorCollections;
|
|
73
|
+
/** Built-in absolute and relative note color palettes. */
|
|
60
74
|
export declare const colorCollections: Record<ColorCollectionKey, NoteColorCollection>;
|
|
61
75
|
export {};
|
|
62
76
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../src/src/data/colors/mod.ts"],"names":[],"mappings":"AAAA,OAAO,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AAQ,CAAC;IACT,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC,CAAC;AAEL,2EAA2E;AAC3E,eAAO,MAAM,mCAAmC,EAC9C,mCAGC,CAAC;AAEJ,uFAAuF;AACvF,wBAAgB,qCAAqC,CACnD,IAAI,EAAE,aAAa,GAClB,sBAAsB,CAExB;AAED,wFAAwF;AACxF,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,mBAAmB,GAC9B,sBAAsB,CAMxB;AAED,mFAAmF;AACnF,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,mBAAmB,GAC9B,cAAc,CAGhB;AAED,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFb,CAAC;AAEX,4DAA4D;AAC5D,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEhE,0DAA0D;AAC1D,eAAO,MAAM,gBAAgB,EAAE,MAAM,CACnC,kBAAkB,EAClB,mBAAmB,CACA,CAAC"}
|
|
@@ -5,19 +5,23 @@ exports.getDefaultNoteColorLabelCollectionKey = getDefaultNoteColorLabelCollecti
|
|
|
5
5
|
exports.getNoteColorLabelCollectionKey = getNoteColorLabelCollectionKey;
|
|
6
6
|
exports.getNoteColorLabels = getNoteColorLabels;
|
|
7
7
|
const note_label_collections_js_1 = require("../labels/note-label-collections.js");
|
|
8
|
+
/** The default note label collection key used for each note color mode. */
|
|
8
9
|
exports.defaultNoteColorLabelCollectionKeys = {
|
|
9
10
|
absolute: "noteNamesFlat",
|
|
10
11
|
relative: "intervalsFlat",
|
|
11
12
|
};
|
|
13
|
+
/** Returns the default label collection key for an absolute or relative color mode. */
|
|
12
14
|
function getDefaultNoteColorLabelCollectionKey(mode) {
|
|
13
15
|
return exports.defaultNoteColorLabelCollectionKeys[mode];
|
|
14
16
|
}
|
|
17
|
+
/** Returns the explicit or default label collection key for a note color collection. */
|
|
15
18
|
function getNoteColorLabelCollectionKey(collection) {
|
|
16
19
|
if (collection.labelCollectionKey) {
|
|
17
20
|
return collection.labelCollectionKey;
|
|
18
21
|
}
|
|
19
22
|
return getDefaultNoteColorLabelCollectionKey(collection.mode);
|
|
20
23
|
}
|
|
24
|
+
/** Returns the 12 labels that should be displayed with a note color collection. */
|
|
21
25
|
function getNoteColorLabels(collection) {
|
|
22
26
|
return note_label_collections_js_1.noteLabelCollections[getNoteColorLabelCollectionKey(collection)]
|
|
23
27
|
.labels;
|
|
@@ -108,4 +112,5 @@ const _colorCollections = {
|
|
|
108
112
|
],
|
|
109
113
|
},
|
|
110
114
|
};
|
|
115
|
+
/** Built-in absolute and relative note color palettes. */
|
|
111
116
|
exports.colorCollections = _colorCollections;
|
|
@@ -5,5 +5,6 @@ export declare const _augmentedVariants: {
|
|
|
5
5
|
readonly augmentedMajor7: ChordCollection;
|
|
6
6
|
};
|
|
7
7
|
export type AugmentedVariantKey = keyof typeof _augmentedVariants;
|
|
8
|
+
/** Built-in augmented-family chord collections keyed by collection id. */
|
|
8
9
|
export declare const augmentedVariants: Record<AugmentedVariantKey, ChordCollection>;
|
|
9
10
|
//# sourceMappingURL=augmented-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"augmented-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/augmented-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"augmented-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/augmented-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAsDpE,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAElE,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,EAAE,eAAe,CACvD,CAAC"}
|
|
@@ -27,9 +27,10 @@ const augmented7 = {
|
|
|
27
27
|
};
|
|
28
28
|
const augmentedMajor7 = {
|
|
29
29
|
category: "chord",
|
|
30
|
-
mostSimilarScale: "
|
|
31
|
-
primaryName: "
|
|
30
|
+
mostSimilarScale: "ionian",
|
|
31
|
+
primaryName: "augM7",
|
|
32
32
|
names: [
|
|
33
|
+
"augM7",
|
|
33
34
|
"+M7",
|
|
34
35
|
"M7♯5",
|
|
35
36
|
"maj7♯5",
|
|
@@ -54,4 +55,5 @@ exports._augmentedVariants = {
|
|
|
54
55
|
augmented7,
|
|
55
56
|
augmentedMajor7,
|
|
56
57
|
};
|
|
58
|
+
/** Built-in augmented-family chord collections keyed by collection id. */
|
|
57
59
|
exports.augmentedVariants = exports._augmentedVariants;
|
|
@@ -7,5 +7,6 @@ export declare const _diminishedVariants: {
|
|
|
7
7
|
readonly halfWholeDiminished: ModalScaleCollection;
|
|
8
8
|
};
|
|
9
9
|
export type DiminishedVariantKey = keyof typeof _diminishedVariants;
|
|
10
|
+
/** Built-in diminished chord and scale collections keyed by collection id. */
|
|
10
11
|
export declare const diminishedVariants: Record<DiminishedVariantKey, NoteCollection>;
|
|
11
12
|
//# sourceMappingURL=diminished-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diminished-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/diminished-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,cAAc,EACf,MAAM,8BAA8B,CAAC;AA4EtC,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEpE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,EAAE,cAAc,CACvD,CAAC"}
|
|
1
|
+
{"version":3,"file":"diminished-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/diminished-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,cAAc,EACf,MAAM,8BAA8B,CAAC;AA4EtC,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEpE,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,EAAE,cAAc,CACvD,CAAC"}
|
|
@@ -7,5 +7,6 @@ export declare const _dominantVariants: {
|
|
|
7
7
|
readonly dominantPentatonic: NonModalScaleCollection;
|
|
8
8
|
};
|
|
9
9
|
export type DominantVariantKey = keyof typeof _dominantVariants;
|
|
10
|
+
/** Built-in dominant-family chord and scale collections keyed by collection id. */
|
|
10
11
|
export declare const dominantVariants: Record<DominantVariantKey, NoteCollection>;
|
|
11
12
|
//# sourceMappingURL=dominant-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dominant-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/dominant-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,cAAc,EACf,MAAM,8BAA8B,CAAC;AAwHtC,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEhE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,EAAE,cAAc,CACrD,CAAC"}
|
|
1
|
+
{"version":3,"file":"dominant-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/dominant-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,cAAc,EACf,MAAM,8BAA8B,CAAC;AAwHtC,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAEhE,mFAAmF;AACnF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,EAAE,cAAc,CACrD,CAAC"}
|
|
@@ -8,5 +8,6 @@ export declare const _majorVariants: {
|
|
|
8
8
|
readonly major6Add9: ChordCollection;
|
|
9
9
|
};
|
|
10
10
|
export type MajorVariantKey = keyof typeof _majorVariants;
|
|
11
|
+
/** Built-in major-family chord collections keyed by collection id. */
|
|
11
12
|
export declare const majorVariants: Record<MajorVariantKey, ChordCollection>;
|
|
12
13
|
//# sourceMappingURL=major-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"major-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/major-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AA2HpE,eAAO,MAAM,cAAc;;;;;;;CAOjB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC;AAE1D,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,eAAe,EAAE,eAAe,CACnD,CAAC"}
|
|
1
|
+
{"version":3,"file":"major-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/major-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AA2HpE,eAAO,MAAM,cAAc;;;;;;;CAOjB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC;AAE1D,sEAAsE;AACtE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,eAAe,EAAE,eAAe,CACnD,CAAC"}
|
|
@@ -9,5 +9,6 @@ export declare const _minorVariants: {
|
|
|
9
9
|
readonly minor6Add9: ChordCollection;
|
|
10
10
|
};
|
|
11
11
|
export type MinorVariantKey = keyof typeof _minorVariants;
|
|
12
|
+
/** Built-in minor-family chord collections keyed by collection id. */
|
|
12
13
|
export declare const minorVariants: Record<MinorVariantKey, ChordCollection>;
|
|
13
14
|
//# sourceMappingURL=minor-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minor-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/minor-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAoHpE,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC;AAE1D,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,eAAe,EAAE,eAAe,CACnD,CAAC"}
|
|
1
|
+
{"version":3,"file":"minor-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/minor-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAoHpE,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC;AAE1D,sEAAsE;AACtE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,eAAe,EAAE,eAAe,CACnD,CAAC"}
|
|
@@ -9,5 +9,6 @@ export declare const _otherNoteCollections: {
|
|
|
9
9
|
readonly wholeTone: NonModalScaleCollection;
|
|
10
10
|
};
|
|
11
11
|
export type OtherNoteCollectionKey = keyof typeof _otherNoteCollections;
|
|
12
|
+
/** Miscellaneous built-in note collections keyed by collection id. */
|
|
12
13
|
export declare const otherNoteCollections: Record<OtherNoteCollectionKey, NoteCollection>;
|
|
13
14
|
//# sourceMappingURL=other-collections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"other-collections.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/other-collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAqItC,eAAO,MAAM,qBAAqB;;;;;;;;CAQxB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAExE,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,sBAAsB,EACtB,cAAc,CACS,CAAC"}
|
|
1
|
+
{"version":3,"file":"other-collections.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/other-collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAqItC,eAAO,MAAM,qBAAqB;;;;;;;;CAQxB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAExE,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,sBAAsB,EACtB,cAAc,CACS,CAAC"}
|
|
@@ -7,5 +7,6 @@ export declare const _pentatonicVariants: {
|
|
|
7
7
|
readonly minorPentatonic: ModalScaleCollection;
|
|
8
8
|
};
|
|
9
9
|
export type PentatonicVariantKey = keyof typeof _pentatonicVariants;
|
|
10
|
+
/** Built-in pentatonic scale variants keyed by collection id. */
|
|
10
11
|
export declare const pentatonicVariants: Record<PentatonicVariantKey, ModalScaleCollection>;
|
|
11
12
|
//# sourceMappingURL=pentatonic-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pentatonic-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/pentatonic-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AA0FzE,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEpE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,oBAAoB,EACpB,oBAAoB,CACC,CAAC"}
|
|
1
|
+
{"version":3,"file":"pentatonic-variants.d.ts","sourceRoot":"","sources":["../../../../src/src/data/note-collections/pentatonic-variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AA0FzE,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEpE,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,oBAAoB,EACpB,oBAAoB,CACC,CAAC"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import type { StringInstrumentKey, StringInstrumentTuning } from "../../types/string-instruments";
|
|
2
|
+
/** Instrument keys covered by the bass guitar tuning registry. */
|
|
2
3
|
export type BassGuitarInstrumentKey = Extract<StringInstrumentKey, "bassGuitar">;
|
|
3
4
|
declare const _bassGuitarTunings: {
|
|
4
5
|
readonly bassStandardEadg: StringInstrumentTuning;
|
|
5
6
|
readonly bassFiveStringBeadg: StringInstrumentTuning;
|
|
6
7
|
};
|
|
8
|
+
/** A key for one of the built-in bass guitar tunings. */
|
|
7
9
|
export type BassGuitarTuningKey = keyof typeof _bassGuitarTunings;
|
|
10
|
+
/** Dictionary of built-in bass guitar tunings keyed by tuning id. */
|
|
8
11
|
export type BassGuitarTunings = Record<BassGuitarTuningKey, StringInstrumentTuning>;
|
|
12
|
+
/** Built-in bass guitar tunings. */
|
|
9
13
|
export declare const bassGuitarTunings: BassGuitarTunings;
|
|
14
|
+
/** Ordered keys for the built-in bass guitar tunings. */
|
|
10
15
|
export declare const bassGuitarTuningKeys: readonly BassGuitarTuningKey[];
|
|
16
|
+
/** Bass guitar tuning keys grouped by instrument. */
|
|
11
17
|
export type BassGuitarTuningKeysByInstrument = Readonly<Record<BassGuitarInstrumentKey, readonly BassGuitarTuningKey[]>>;
|
|
18
|
+
/** Built-in bass guitar tuning keys grouped by instrument. */
|
|
12
19
|
export declare const bassGuitarTuningKeysByInstrument: BassGuitarTuningKeysByInstrument;
|
|
13
20
|
export {};
|
|
14
21
|
//# sourceMappingURL=bass-guitar-tunings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bass-guitar-tunings.d.ts","sourceRoot":"","sources":["../../../../src/src/data/tunings/bass-guitar-tunings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,mBAAmB,EACnB,YAAY,CACb,CAAC;AAkBF,QAAA,MAAM,kBAAkB;;;CAGd,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,mBAAmB,EACnB,sBAAsB,CACvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,iBAAsC,CAAC;AAEvE,eAAO,MAAM,oBAAoB,EAAE,SAAS,mBAAmB,EAE5B,CAAC;AAEpC,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CACrD,MAAM,CAAC,uBAAuB,EAAE,SAAS,mBAAmB,EAAE,CAAC,CAChE,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAC3C,gCAEC,CAAC"}
|
|
1
|
+
{"version":3,"file":"bass-guitar-tunings.d.ts","sourceRoot":"","sources":["../../../../src/src/data/tunings/bass-guitar-tunings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,gCAAgC,CAAC;AAExC,kEAAkE;AAClE,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,mBAAmB,EACnB,YAAY,CACb,CAAC;AAkBF,QAAA,MAAM,kBAAkB;;;CAGd,CAAC;AAEX,yDAAyD;AACzD,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAElE,qEAAqE;AACrE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CACpC,mBAAmB,EACnB,sBAAsB,CACvB,CAAC;AAEF,oCAAoC;AACpC,eAAO,MAAM,iBAAiB,EAAE,iBAAsC,CAAC;AAEvE,yDAAyD;AACzD,eAAO,MAAM,oBAAoB,EAAE,SAAS,mBAAmB,EAE5B,CAAC;AAEpC,qDAAqD;AACrD,MAAM,MAAM,gCAAgC,GAAG,QAAQ,CACrD,MAAM,CAAC,uBAAuB,EAAE,SAAS,mBAAmB,EAAE,CAAC,CAChE,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,gCAAgC,EAC3C,gCAEC,CAAC"}
|
|
@@ -19,8 +19,11 @@ const _bassGuitarTunings = {
|
|
|
19
19
|
bassStandardEadg,
|
|
20
20
|
bassFiveStringBeadg,
|
|
21
21
|
};
|
|
22
|
+
/** Built-in bass guitar tunings. */
|
|
22
23
|
exports.bassGuitarTunings = _bassGuitarTunings;
|
|
24
|
+
/** Ordered keys for the built-in bass guitar tunings. */
|
|
23
25
|
exports.bassGuitarTuningKeys = Object.keys(_bassGuitarTunings);
|
|
26
|
+
/** Built-in bass guitar tuning keys grouped by instrument. */
|
|
24
27
|
exports.bassGuitarTuningKeysByInstrument = {
|
|
25
28
|
bassGuitar: exports.bassGuitarTuningKeys,
|
|
26
29
|
};
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import type { StringInstrumentKey, StringInstrumentTuning } from "../../types/string-instruments";
|
|
2
|
+
/** Instrument keys covered by the folk and fretted string tuning registry. */
|
|
2
3
|
export type FolkFrettedStringInstrumentKey = Extract<StringInstrumentKey, "mandolin" | "ukulele">;
|
|
3
4
|
declare const _folkFrettedStringTunings: {
|
|
4
5
|
readonly mandolinStandardGdae: StringInstrumentTuning;
|
|
5
6
|
readonly ukuleleStandardGcea: StringInstrumentTuning;
|
|
6
7
|
};
|
|
8
|
+
/** A key for one of the built-in folk or fretted string tunings. */
|
|
7
9
|
export type FolkFrettedStringTuningKey = keyof typeof _folkFrettedStringTunings;
|
|
10
|
+
/** Dictionary of built-in folk and fretted string tunings keyed by tuning id. */
|
|
8
11
|
export type FolkFrettedStringTunings = Record<FolkFrettedStringTuningKey, StringInstrumentTuning>;
|
|
12
|
+
/** Built-in mandolin and ukulele tunings. */
|
|
9
13
|
export declare const folkFrettedStringTunings: FolkFrettedStringTunings;
|
|
14
|
+
/** Ordered keys for the built-in folk and fretted string tunings. */
|
|
10
15
|
export declare const folkFrettedStringTuningKeys: readonly FolkFrettedStringTuningKey[];
|
|
16
|
+
/** Folk and fretted string tuning keys grouped by instrument. */
|
|
11
17
|
export type FolkFrettedStringTuningKeysByInstrument = Readonly<Record<FolkFrettedStringInstrumentKey, readonly FolkFrettedStringTuningKey[]>>;
|
|
18
|
+
/** Built-in folk and fretted string tuning keys grouped by instrument. */
|
|
12
19
|
export declare const folkFrettedStringTuningKeysByInstrument: FolkFrettedStringTuningKeysByInstrument;
|
|
13
20
|
export {};
|
|
14
21
|
//# sourceMappingURL=folk-fretted-string-tunings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folk-fretted-string-tunings.d.ts","sourceRoot":"","sources":["../../../../src/src/data/tunings/folk-fretted-string-tunings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,8BAA8B,GAAG,OAAO,CAClD,mBAAmB,EACnB,UAAU,GAAG,SAAS,CACvB,CAAC;AAwBF,QAAA,MAAM,yBAAyB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,0BAA0B,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAEhF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAC3C,0BAA0B,EAC1B,sBAAsB,CACvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,wBACZ,CAAC;AAE5B,eAAO,MAAM,2BAA2B,EACtC,SAAS,0BAA0B,EAEO,CAAC;AAE7C,MAAM,MAAM,uCAAuC,GAAG,QAAQ,CAC5D,MAAM,CAAC,8BAA8B,EAAE,SAAS,0BAA0B,EAAE,CAAC,CAC9E,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAClD,uCAGC,CAAC"}
|
|
1
|
+
{"version":3,"file":"folk-fretted-string-tunings.d.ts","sourceRoot":"","sources":["../../../../src/src/data/tunings/folk-fretted-string-tunings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,gCAAgC,CAAC;AAExC,8EAA8E;AAC9E,MAAM,MAAM,8BAA8B,GAAG,OAAO,CAClD,mBAAmB,EACnB,UAAU,GAAG,SAAS,CACvB,CAAC;AAwBF,QAAA,MAAM,yBAAyB;;;CAGrB,CAAC;AAEX,oEAAoE;AACpE,MAAM,MAAM,0BAA0B,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAEhF,iFAAiF;AACjF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAC3C,0BAA0B,EAC1B,sBAAsB,CACvB,CAAC;AAEF,6CAA6C;AAC7C,eAAO,MAAM,wBAAwB,EAAE,wBACZ,CAAC;AAE5B,qEAAqE;AACrE,eAAO,MAAM,2BAA2B,EACtC,SAAS,0BAA0B,EAEO,CAAC;AAE7C,iEAAiE;AACjE,MAAM,MAAM,uCAAuC,GAAG,QAAQ,CAC5D,MAAM,CAAC,8BAA8B,EAAE,SAAS,0BAA0B,EAAE,CAAC,CAC9E,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,uCAAuC,EAClD,uCAGC,CAAC"}
|
|
@@ -25,8 +25,11 @@ const _folkFrettedStringTunings = {
|
|
|
25
25
|
mandolinStandardGdae,
|
|
26
26
|
ukuleleStandardGcea,
|
|
27
27
|
};
|
|
28
|
+
/** Built-in mandolin and ukulele tunings. */
|
|
28
29
|
exports.folkFrettedStringTunings = _folkFrettedStringTunings;
|
|
30
|
+
/** Ordered keys for the built-in folk and fretted string tunings. */
|
|
29
31
|
exports.folkFrettedStringTuningKeys = Object.keys(_folkFrettedStringTunings);
|
|
32
|
+
/** Built-in folk and fretted string tuning keys grouped by instrument. */
|
|
30
33
|
exports.folkFrettedStringTuningKeysByInstrument = {
|
|
31
34
|
mandolin: ["mandolinStandardGdae"],
|
|
32
35
|
ukulele: ["ukuleleStandardGcea"],
|
|
@@ -13,10 +13,15 @@ declare const _guitarTunings: {
|
|
|
13
13
|
readonly guitarOpenDMinor: StringInstrumentTuning;
|
|
14
14
|
readonly guitarJacobCollierTuning: StringInstrumentTuning;
|
|
15
15
|
};
|
|
16
|
+
/** A key for one of the built-in guitar tunings. */
|
|
16
17
|
export type GuitarTuningKey = keyof typeof _guitarTunings;
|
|
18
|
+
/** Dictionary of built-in guitar tunings keyed by tuning id. */
|
|
17
19
|
export type GuitarTunings = Record<GuitarTuningKey, StringInstrumentTuning>;
|
|
20
|
+
/** Built-in guitar tunings. */
|
|
18
21
|
export declare const guitarTunings: GuitarTunings;
|
|
22
|
+
/** Ordered keys for the built-in guitar tunings. */
|
|
19
23
|
export declare const guitarTuningKeys: readonly GuitarTuningKey[];
|
|
24
|
+
/** A named group of related guitar tunings. */
|
|
20
25
|
export interface GuitarTuningGroup {
|
|
21
26
|
displayName: string;
|
|
22
27
|
tuningKeys: readonly GuitarTuningKey[];
|
|
@@ -27,8 +32,11 @@ declare const _guitarTuningGroups: {
|
|
|
27
32
|
readonly modal: GuitarTuningGroup;
|
|
28
33
|
readonly open: GuitarTuningGroup;
|
|
29
34
|
};
|
|
35
|
+
/** A key for one of the built-in guitar tuning groups. */
|
|
30
36
|
export type GuitarTuningGroupKey = keyof typeof _guitarTuningGroups;
|
|
37
|
+
/** Dictionary of built-in guitar tuning groups keyed by group id. */
|
|
31
38
|
export type GuitarTuningGroups = Record<GuitarTuningGroupKey, GuitarTuningGroup>;
|
|
39
|
+
/** Built-in guitar tuning groups for standard, drop, modal, and open tunings. */
|
|
32
40
|
export declare const guitarTuningGroups: GuitarTuningGroups;
|
|
33
41
|
export {};
|
|
34
42
|
//# sourceMappingURL=guitar-tunings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guitar-tunings.d.ts","sourceRoot":"","sources":["../../../../src/src/data/tunings/guitar-tunings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAwG7E,QAAA,MAAM,cAAc;;;;;;;;;;;;;CAaV,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,cAAc,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,aAAa,EAAE,aAA8B,CAAC;AAE3D,eAAO,MAAM,gBAAgB,EAAE,SAAS,eAAe,EAExB,CAAC;AAEhC,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,SAAS,eAAe,EAAE,CAAC;CACxC;AAgCD,QAAA,MAAM,mBAAmB;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CACrC,oBAAoB,EACpB,iBAAiB,CAClB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,kBAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"guitar-tunings.d.ts","sourceRoot":"","sources":["../../../../src/src/data/tunings/guitar-tunings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAwG7E,QAAA,MAAM,cAAc;;;;;;;;;;;;;CAaV,CAAC;AAEX,oDAAoD;AACpD,MAAM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