-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cdf5cb
commit 0e82a1f
Showing
8 changed files
with
36 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
import { Notes } from "."; | ||
export const cagedNotes = ['Shape C', 'Shape A', 'Shape G', 'Shape E', 'Shape D'] as const; | ||
|
||
export enum Caged { | ||
Shape1 = `Shape ${Notes.C}`, | ||
Shape2 = `Shape ${Notes.A}`, | ||
Shape3 = `Shape ${Notes.G}`, | ||
Shape4 = `Shape ${Notes.E}`, | ||
Shape5 = `Shape ${Notes.D}`, | ||
} | ||
|
||
export type CagedType = keyof typeof Caged; | ||
|
||
export const cagedNotes = Object.values(Caged) as unknown as CagedType[]; | ||
export type Caged = (typeof cagedNotes)[number]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
export enum GuitarStrings { | ||
String1 = "String 1", | ||
String2 = "String 2", | ||
String3 = "String 3", | ||
String4 = "String 4", | ||
String5 = "String 5", | ||
String6 = "String 6", | ||
} | ||
export const guitarStrings = ['String 1', 'String 2', 'String 3', 'String 4', 'String 5', 'String 6']; | ||
|
||
export type GuitarString = keyof typeof GuitarStrings; | ||
|
||
export const guitarStrings = Object.values( | ||
GuitarStrings | ||
) as unknown as GuitarString[]; | ||
export type GuitarString = (typeof guitarStrings)[number]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
export enum Notes { | ||
C = "C", | ||
Csharp = "C#", | ||
Dbemol = "Db", | ||
D = "D", | ||
Dsharp = "D#", | ||
Ebemol = "Eb", | ||
E = "E", | ||
F = "F", | ||
Fsharp = "F#", | ||
Gbemol = "Gb", | ||
G = "G", | ||
Gsharp = "G#", | ||
Abemol = "Ab", | ||
A = "A", | ||
Asharp = "A#", | ||
Bbemol = "Bb", | ||
B = "B", | ||
} | ||
export const notes = [ | ||
'C', | ||
'C#', | ||
'Db', | ||
'D', | ||
'D#', | ||
'Eb', | ||
'E', | ||
'F', | ||
'F#', | ||
'Gb', | ||
'G', | ||
'G#', | ||
'Ab', | ||
'A', | ||
'A#', | ||
'Bb', | ||
'B', | ||
] as const; | ||
|
||
export type Note = keyof typeof Notes; | ||
|
||
export const notes = Object.values(Notes) as Note[]; | ||
export type Note = typeof notes[number]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const getRandomItemFrom = <T>(arrary: T[]): T => { | ||
return arrary[Math.floor(Math.random()*arrary.length)]; | ||
export const getRandomItemFrom = <T>(array: readonly T[]): T => { | ||
return array[Math.floor(Math.random() * array.length)]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters