fix: double-sharp notes in PianoKeys, barre bar on E-shape chords
This commit is contained in:
@@ -7,6 +7,8 @@ const NOTE_CHROMA: Record<string, number> = {
|
|||||||
'G': 7, 'G#': 8, 'Ab': 8,
|
'G': 7, 'G#': 8, 'Ab': 8,
|
||||||
'A': 9, 'A#': 10, 'Bb': 10,
|
'A': 9, 'A#': 10, 'Bb': 10,
|
||||||
'B': 11, 'Cb': 11, 'B#': 0,
|
'B': 11, 'Cb': 11, 'B#': 0,
|
||||||
|
// Double-sharps tonal may return (e.g. Baug → F##=G)
|
||||||
|
'C##': 2, 'D##': 4, 'F##': 7, 'G##': 9, 'A##': 11,
|
||||||
};
|
};
|
||||||
|
|
||||||
const WHITE_KEYS = ['C', 'D', 'E', 'F', 'G', 'A', 'B'];
|
const WHITE_KEYS = ['C', 'D', 'E', 'F', 'G', 'A', 'B'];
|
||||||
|
|||||||
@@ -18,31 +18,31 @@ export const GUITAR_VOICINGS: Record<string, GuitarVoicingTemplate> = {
|
|||||||
// E major open: [0,2,2,1,0,0] E B E G# B E
|
// E major open: [0,2,2,1,0,0] E B E G# B E
|
||||||
'major': {
|
'major': {
|
||||||
frets: [0, 2, 2, 1, 0, 0],
|
frets: [0, 2, 2, 1, 0, 0],
|
||||||
barre: null,
|
barre: 0,
|
||||||
rootString: 'E',
|
rootString: 'E',
|
||||||
},
|
},
|
||||||
// E7: [0,2,0,1,0,0] E B D G# B E
|
// E7: [0,2,0,1,0,0] E B D G# B E
|
||||||
'dominant seventh': {
|
'dominant seventh': {
|
||||||
frets: [0, 2, 0, 1, 0, 0],
|
frets: [0, 2, 0, 1, 0, 0],
|
||||||
barre: null,
|
barre: 0,
|
||||||
rootString: 'E',
|
rootString: 'E',
|
||||||
},
|
},
|
||||||
// Emaj7: [0,2,1,1,0,0] E B D# G# B E
|
// Emaj7: [0,2,1,1,0,0] E B D# G# B E
|
||||||
'major seventh': {
|
'major seventh': {
|
||||||
frets: [0, 2, 1, 1, 0, 0],
|
frets: [0, 2, 1, 1, 0, 0],
|
||||||
barre: null,
|
barre: 0,
|
||||||
rootString: 'E',
|
rootString: 'E',
|
||||||
},
|
},
|
||||||
// Eaug: [0,3,2,1,1,0] E C(=B#) E G# C E
|
// Eaug: [0,3,2,1,1,0] E C(=B#) E G# C E
|
||||||
'augmented': {
|
'augmented': {
|
||||||
frets: [0, 3, 2, 1, 1, 0],
|
frets: [0, 3, 2, 1, 1, 0],
|
||||||
barre: null,
|
barre: 0,
|
||||||
rootString: 'E',
|
rootString: 'E',
|
||||||
},
|
},
|
||||||
// Esus4: [0,2,2,2,0,0] E B E A B E
|
// Esus4: [0,2,2,2,0,0] E B E A B E
|
||||||
'suspended fourth': {
|
'suspended fourth': {
|
||||||
frets: [0, 2, 2, 2, 0, 0],
|
frets: [0, 2, 2, 2, 0, 0],
|
||||||
barre: null,
|
barre: 0,
|
||||||
rootString: 'E',
|
rootString: 'E',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user