src/app/models/chord.ts
backgroundColor |
backgroundColor: |
Type : "none"
|
barreChordRadius |
barreChordRadius: |
Type : 0.25
|
barreChordStrokeColor |
barreChordStrokeColor: |
Type : "#000000"
|
barreChordStrokeWidth |
barreChordStrokeWidth: |
Type : 0
|
color |
color: |
Type : "#000000"
|
emptyStringIndicatorSize |
emptyStringIndicatorSize: |
Type : 0.6
|
fixedDiagramPosition |
fixedDiagramPosition: |
Type : false
|
fontFamily |
fontFamily: |
Type : "Arial, \"Helvetica Neue\", Helvetica, sans-serif"
|
fretColor |
fretColor: |
Type : "#000000"
|
fretLabelColor |
fretLabelColor: |
Type : "#000000"
|
fretLabelFontSize |
fretLabelFontSize: |
Type : 38
|
frets |
frets: |
Type : 5
|
fretSize |
fretSize: |
Type : 1.5
|
nutColor |
nutColor: |
Type : "#000"
|
nutSize |
nutSize: |
Type : 0.65
|
nutStrokeColor |
nutStrokeColor: |
Type : "#000000"
|
nutStrokeWidth |
nutStrokeWidth: |
Type : 0
|
nutTextColor |
nutTextColor: |
Type : "#FFF"
|
nutTextSize |
nutTextSize: |
Type : 22
|
position |
position: |
Type : 1
|
sidePadding |
sidePadding: |
Type : 0.2
|
stringColor |
stringColor: |
Type : "#000000"
|
strings |
strings: |
Type : 6
|
strokeWidth |
strokeWidth: |
Type : 2
|
title |
title: |
Type : "Chord Title"
|
titleBottomMargin |
titleBottomMargin: |
Type : 0
|
titleColor |
titleColor: |
Type : "#000000"
|
titleFontSize |
titleFontSize: |
Type : 48
|
topFretWidth |
topFretWidth: |
Type : 10
|
tuning |
tuning: |
Type : ["E", "A", "D", "G", "B", "E"]
|
tuningsColor |
tuningsColor: |
Type : "#000000"
|
tuningsFontSize |
tuningsFontSize: |
Type : 28
|
export interface ChordConfigure {
strings: 6;
frets: 5;
position: 1;
tuning: ['E', 'A', 'D', 'G', 'B', 'E'];
fretLabelFontSize: 38;
tuningsFontSize: 28;
nutSize: 0.65;
nutColor: '#000';
nutTextColor: '#FFF';
nutTextSize: 22;
nutStrokeColor: '#000000';
nutStrokeWidth: 0;
barreChordStrokeColor: '#000000';
barreChordStrokeWidth: 0;
fretSize: 1.5;
sidePadding: 0.2;
fontFamily: 'Arial, "Helvetica Neue", Helvetica, sans-serif';
title: 'Chord Title';
titleFontSize: 48;
titleBottomMargin: 0;
color: '#000000';
backgroundColor: 'none';
barreChordRadius: 0.25;
emptyStringIndicatorSize: 0.6;
strokeWidth: 2;
topFretWidth: 10;
titleColor: '#000000';
stringColor: '#000000';
fretLabelColor: '#000000';
tuningsColor: '#000000';
fretColor: '#000000';
fixedDiagramPosition: false;
}
export interface Barre {
fromString: number,
toString: number,
fret: number,
text: string,
color: string,
textColor: string
}
export interface ChordLayout {
fingers: [
[1,2],
[2,3],
[3,3],
[6, 'x']
];
title: 'F# minor';
position: 2;
}
export class ChordObject {
configure: ChordConfigure;
chord: ChordLayout;
}