|
35 | 35 | <div class="fretboard"
|
36 | 36 | [class.fretboard__leftHanded]="orientation === Orientations.left"
|
37 | 37 | [class.fretboard__24]="fretMode === FretModes.twentyFour">
|
38 |
| - <ng-container *ngFor="let fret of frets"> |
39 |
| - <span class="fretboard__help" [attr.data-fret]="fret"></span> |
40 |
| - </ng-container> |
| 38 | + <ng-container *ngFor="let fret of frets"> |
| 39 | + <span class="fretboard__help" [attr.data-fret]="fret"></span> |
| 40 | + </ng-container> |
41 | 41 | </div>
|
42 | 42 | </div>
|
43 | 43 |
|
44 |
| - |
45 | 44 | <div class="controlPanel">
|
| 45 | + <div class="controlPanel__row"> |
| 46 | + <div class="controlPanel__section"> |
| 47 | + <h4 class="controlPanel__title" *ngIf="mode | displayScaleDegrees">Highlight scale degrees</h4> |
| 48 | + <app-scale-degrees |
| 49 | + *ngIf="mode | displayScaleDegrees" |
| 50 | + [tonicActive]="highlightedDegrees.has(ScaleDegrees.tonic)" |
| 51 | + [mediantActive]="highlightedDegrees.has(ScaleDegrees.mediant)" |
| 52 | + [dominantActive]="highlightedDegrees.has(ScaleDegrees.dominant)" |
| 53 | + (setTonicHighlight)="toggleHighlight(ScaleDegrees.tonic)" |
| 54 | + (setMediantHighlight)="toggleHighlight(ScaleDegrees.mediant)" |
| 55 | + (setDominantHighlight)="toggleHighlight(ScaleDegrees.dominant)" |
| 56 | + ></app-scale-degrees> |
| 57 | + </div> |
| 58 | + <div class="controlPanel__section"> |
| 59 | + <h4 class="controlPanel__title">Scale degrees display</h4> |
| 60 | + <div class="button__group button__group--right"> |
| 61 | + <button class="fretboard__toggleButton" |
| 62 | + [class.fretboard__toggleButton--active]="noteNameDisplay === NoteDisplays.noteNames" |
| 63 | + (click)="toggleNoteDisplay(NoteDisplays.noteNames)">Note names |
| 64 | + </button> |
| 65 | + <button (click)="toggleNoteDisplay(NoteDisplays.numbers)" |
| 66 | + class="fretboard__toggleButton" |
| 67 | + [class.fretboard__toggleButton--active]="noteNameDisplay === NoteDisplays.numbers">Note numbers |
| 68 | + </button> |
| 69 | + </div> |
46 | 70 |
|
47 |
| - <div class="controlPanel__section"> |
48 |
| - <span class="controlPanel__title" *ngIf="!(mode | displayScaleDegrees)">Configure scale degrees</span> |
49 |
| - <span class="controlPanel__title" *ngIf="mode | displayScaleDegrees">Highlight scale degrees</span> |
50 |
| - <app-scale-degrees |
51 |
| - *ngIf="mode | displayScaleDegrees" |
52 |
| - [tonicActive]="highlightedDegrees.has(ScaleDegrees.tonic)" |
53 |
| - [mediantActive]="highlightedDegrees.has(ScaleDegrees.mediant)" |
54 |
| - [dominantActive]="highlightedDegrees.has(ScaleDegrees.dominant)" |
55 |
| - (setTonicHighlight)="toggleHighlight(ScaleDegrees.tonic)" |
56 |
| - (setMediantHighlight)="toggleHighlight(ScaleDegrees.mediant)" |
57 |
| - (setDominantHighlight)="toggleHighlight(ScaleDegrees.dominant)" |
58 |
| - ></app-scale-degrees> |
59 |
| - |
60 |
| - <div class="button__group"> |
61 |
| - <button class="fretboard__toggleButton" |
62 |
| - [class.fretboard__toggleButton--active]="noteNameDisplay === NoteDisplays.noteNames" |
63 |
| - (click)="toggleNoteDisplay(NoteDisplays.noteNames)">Note names |
64 |
| - </button> |
65 |
| - <button (click)="toggleNoteDisplay(NoteDisplays.numbers)" |
66 |
| - class="fretboard__toggleButton" |
67 |
| - [class.fretboard__toggleButton--active]="noteNameDisplay === NoteDisplays.numbers">Note numbers |
68 |
| - </button> |
69 | 71 | </div>
|
70 | 72 | </div>
|
71 |
| - |
72 |
| - <div class="controlPanel__section"> |
73 |
| - <span class="controlPanel__title controlPanel__title--right">Configure fretboard</span> |
| 73 | + <div class="controlPanel__column"> |
| 74 | + <h4 class="controlPanel__title">Fretboard</h4> |
74 | 75 | <app-fretboard-config
|
75 | 76 | [fretMode]="fretMode"
|
76 | 77 | [orientation]="orientation"
|
77 | 78 | (setFretMode)="setFretMode($event)"
|
78 | 79 | (setOrientation)="setOrientation($event)"
|
79 | 80 | ></app-fretboard-config>
|
80 | 81 | </div>
|
81 |
| -</div> |
82 | 82 |
|
83 |
| -<div class="fretboard__tuningGroup"> |
84 |
| - <button class="fretboard__changeTuning" |
85 |
| - [class.tuning--active]="tuning === Tunings.standard" |
86 |
| - (click)="setTuning(Tunings.standard)">Standard |
87 |
| - </button> |
88 |
| - <button class="fretboard__changeTuning" |
89 |
| - [class.tuning--active]="tuning === Tunings.dropd" |
90 |
| - (click)="setTuning(Tunings.dropd)">Drop D |
91 |
| - </button> |
92 |
| - <button class="fretboard__changeTuning" |
93 |
| - [class.tuning--active]="tuning === Tunings.dadgad" |
94 |
| - (click)="setTuning(Tunings.dadgad)">DADGAD |
95 |
| - </button> |
| 83 | + <div class="controlPanel__column"> |
| 84 | + <h4 class="controlPanel__title">Guitar tuning</h4> |
| 85 | + <div class="fretboard__tuningGroup"> |
| 86 | + <button class="fretboard__changeTuning" |
| 87 | + [class.tuning--active]="tuning === Tunings.standard" |
| 88 | + (click)="setTuning(Tunings.standard)">Standard |
| 89 | + </button> |
| 90 | + <button class="fretboard__changeTuning" |
| 91 | + [class.tuning--active]="tuning === Tunings.dropd" |
| 92 | + (click)="setTuning(Tunings.dropd)">Drop D |
| 93 | + </button> |
| 94 | + <button class="fretboard__changeTuning" |
| 95 | + [class.tuning--active]="tuning === Tunings.dadgad" |
| 96 | + (click)="setTuning(Tunings.dadgad)">DADGAD |
| 97 | + </button> |
| 98 | + </div> |
| 99 | + </div> |
96 | 100 | </div>
|
| 101 | + |
| 102 | + |
0 commit comments