Skip to content

Commit 883c822

Browse files
committed
working C minor CAGED shapes
1 parent fd33c87 commit 883c822

2 files changed

Lines changed: 34 additions & 32 deletions

File tree

src/frets/system/caged.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { Note } from "tonal";
21
import {
3-
pentatonicPatterns,
4-
diatonicPatterns,
52
cagedPositionMapping,
3+
diatonicPatterns,
4+
pentatonicPatterns,
65
} from "./patterns.js";
76

7+
import { Note } from "tonal";
8+
89
export default function caged(strings, scale) {
910
const noteCount = scale.intervals.length;
1011
if (noteCount !== 5 && noteCount !== 7)

src/frets/system/patterns.js

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -50,47 +50,48 @@ export const pentatonicPatterns = {
5050
};
5151

5252
// Diatonic patterns (3 notes per string for most strings)
53-
// Used by CAGED system for 7-note scales
53+
// Used by CAGED system for 7-note minor/major scales
54+
// These patterns are based on minor scale interval indices
5455
export const diatonicPatterns = {
55-
C: [
56-
[2, 3, 4], // High E string: 3rd, 4th, 5th
57-
[5, 6, 0], // B string: 6th, 7th, root
58-
[3, 4, 5], // G string: 4th, 5th, 6th
59-
[1, 2], // D string: 2nd, 3rd
60-
[6, 0], // A string: 7th, root
61-
[3, 4, 5], // Low E string: 4th, 5th, 6th
62-
],
63-
A: [
64-
[5, 6, 0], // High E string: 6th, 7th, root
65-
[0, 1, 2], // B string: root, 2nd, 3rd
66-
[5, 6, 0], // G string: 6th, 7th, root
67-
[2, 3, 4], // D string: 3rd, 4th, 5th
68-
[0, 1, 2], // A string: root, 2nd, 3rd
69-
[5, 6, 0], // Low E string: 6th, 7th, root
70-
],
7156
G: [
7257
[0, 1, 2], // High E string: root, 2nd, 3rd
7358
[4, 5, 6], // B string: 5th, 6th, 7th
74-
[2, 3, 4], // G string: 3rd, 4th, 5th
75-
[6, 0, 1], // D string: 7th, root, 2nd
76-
[4, 5, 6], // A string: 5th, 6th, 7th
77-
[2, 3, 4], // Low E string: 3rd, 4th, 5th
59+
[1, 2, 3], // G string: 2nd, 3rd, 4th
60+
[6, 0], // D string: 7th, root
61+
[3, 4, 5], // A string: 4th, 5th, 6th
62+
[0, 1, 2], // Low E string: root, 2nd, 3rd
7863
],
7964
E: [
80-
[0, 1, 2], // High E string: root, 2nd, 3rd
81-
[5, 6, 0], // B string: 6th, 7th, root
65+
[1, 2, 3], // High E string: 2nd, 3rd, 4th
66+
[6, 0], // B string: 7th, root
8267
[3, 4, 5], // G string: 4th, 5th, 6th
68+
[0, 1, 2], // D string: root, 2nd, 3rd
69+
[4, 5, 6], // A string: 5th, 6th, 7th
70+
[1, 2, 3], // Low E string: 2nd, 3rd, 4th
71+
],
72+
D: [
73+
[3, 4, 5], // High E string: 4th, 5th, 6th
74+
[0, 1, 2], // B string: root, 2nd, 3rd
75+
[4, 5, 6], // G string: 5th, 6th, 7th
8376
[1, 2, 3], // D string: 2nd, 3rd, 4th
84-
[6, 0, 1], // A string: 7th, root, 2nd
77+
[6, 0], // A string: 7th, root
8578
[3, 4, 5], // Low E string: 4th, 5th, 6th
8679
],
87-
D: [
88-
[5, 6, 0], // High E string: 6th, 7th, root
80+
C: [
81+
[4, 5, 6], // High E string: 5th, 6th, 7th
82+
[1, 2, 3], // B string: 2nd, 3rd, 4th
83+
[6, 0], // G string: 7th, root
84+
[3, 4, 5], // D string: 4th, 5th, 6th
85+
[0, 1, 2], // A string: root, 2nd, 3rd
86+
[4, 5, 6], // Low E string: 5th, 6th, 7th
87+
],
88+
A: [
89+
[6, 0], // High E string: 7th, root
8990
[3, 4, 5], // B string: 4th, 5th, 6th
9091
[0, 1, 2], // G string: root, 2nd, 3rd
91-
[5, 6, 0], // D string: 6th, 7th, root
92-
[3, 4], // A string: 4th, 5th
93-
[0, 1, 2], // Low E string: root, 2nd, 3rd
92+
[4, 5, 6], // D string: 5th, 6th, 7th
93+
[1, 2, 3], // A string: 2nd, 3rd, 4th
94+
[6, 0], // Low E string: 7th, root
9495
],
9596
};
9697

0 commit comments

Comments
 (0)