-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.js
71 lines (64 loc) · 1.08 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
export const A4 = {
FREQUENCY: 440.0,
NOTE_NAME: 'A',
OCTAVE: 4
}
export const tones = [
'C',
'C#',
'D',
'D#',
'E',
'F',
'F#',
'G',
'G#',
'A',
'A#',
'B'
]
const ionian = [2, 2, 1, 2, 2, 2, 1]
const dorian = [2, 1, 2, 2, 2, 1, 2]
const phrygian = [1, 2, 2, 2, 1, 2, 2]
const lydian = [2, 2, 2, 1, 2, 2, 1]
const mixolydian = [2, 2, 1, 2, 2, 1, 2]
const aeolian = [2, 1, 2, 2, 1, 2, 2]
const locrian = [1, 2, 2, 1, 2, 2, 2]
export const scales = {
ionian,
dorian,
phrygian,
lydian,
mixolydian,
aeolian,
locrian
}
const major = [4, 3]
const major7 = [4, 3, 4]
const major9 = [4, 3, 4, 3]
const major11 = [4, 3, 4, 3, 3]
const dominant7 = [4, 3, 3]
const diminished = [3, 3, 3]
const halfDiminished = [3, 3, 4]
const minor = [3, 4]
const minor7 = [3, 4, 3]
const minor9 = [3, 4, 3, 4]
const minor11 = [3, 4, 3, 4, 3]
export const chords = {
major,
major7,
major9,
major11,
dominant7,
diminished,
halfDiminished,
minor,
minor7,
minor9,
minor11
}
export const DISPLAY_MODES = {
CHORD: 'CHORD',
SCALE: 'SCALE'
}
export const FRET_COUNT = 13