@@ -552,7 +552,7 @@ public class FretboardView: FRView, FretboardDelegate {
552
552
string: " \( fretboard. strings [ index] . type) " ,
553
553
attributes: [
554
554
NSForegroundColorAttributeName: stringLabelColor,
555
- NSFontAttributeName: FRFont . systemFont ( ofSize: min ( min ( stringLabelSize. width, stringLabelSize. height) , 17 ) )
555
+ NSFontAttributeName: FRFont . systemFont ( ofSize: ( min ( stringLabelSize. width, stringLabelSize. height) * 2 ) / 3 )
556
556
] )
557
557
label. frame = CGRect ( origin: position, size: stringLabelSize)
558
558
}
@@ -581,7 +581,7 @@ public class FretboardView: FRView, FretboardDelegate {
581
581
string: " \( fretboard. startIndex + index) " ,
582
582
attributes: [
583
583
NSForegroundColorAttributeName: fretLabelColor,
584
- NSFontAttributeName: FRFont . systemFont ( ofSize: min ( fretLabelSize. width, fretLabelSize. height) - 2 )
584
+ NSFontAttributeName: FRFont . systemFont ( ofSize: ( min ( fretLabelSize. width, fretLabelSize. height) * 2 ) / 3 )
585
585
] )
586
586
}
587
587
label. frame = CGRect ( origin: position, size: fretLabelSize)
@@ -692,6 +692,7 @@ public class FretboardView: FRView, FretboardDelegate {
692
692
693
693
public func fretboard( _ fretboard: Fretboard , didChange: [ FretboardNote ] ) {
694
694
setup ( )
695
+ drawNotes ( )
695
696
}
696
697
697
698
public func fretboard( _ fretboard: Fretboard , didDirectionChange: FretboardDirection ) {
0 commit comments