Skip to content

Commit b59442f

Browse files
Fix piano chord display: use Piano(25) at octave 3 for compact view
Piano(44) placed Am7 notes at the far right edge, making them hard to see. Piano(25) with octave 3 centers A3-C4-E4-G4 in the middle of the keyboard.
1 parent 07bcc4f commit b59442f

4 files changed

Lines changed: 85 additions & 190 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ FretboardSVG.chord(guitar, Chord("Am"), 0, Orientation.Vertical, Handedness.Left
9999
### PianoSVG — Chord Voicing
100100

101101
```python
102-
PianoSVG.chord(Piano(44), Chord("Am7"), 4)
102+
PianoSVG.chord(Piano(25), Chord("Am7"), 3)
103103
```
104104

105105
<p align="center">
@@ -109,7 +109,7 @@ PianoSVG.chord(Piano(44), Chord("Am7"), 4)
109109
### PianoSVG — Scale
110110

111111
```python
112-
PianoSVG.scale(Piano(44), Scale("C", "major"), 4)
112+
PianoSVG.scale(Piano(25), Scale("C", "major"), 4)
113113
```
114114

115115
<p align="center">
@@ -119,7 +119,7 @@ PianoSVG.scale(Piano(44), Scale("C", "major"), 4)
119119
### PianoSVG — Harmonic Field
120120

121121
```python
122-
PianoSVG.field(Piano(44), Field("C", "major"), 4)
122+
PianoSVG.field(Piano(25), Field("C", "major"), 4)
123123
```
124124

125125
<p align="center">

assets/piano_chord_am7.svg

Lines changed: 32 additions & 51 deletions
Loading

assets/piano_field_cmaj.svg

Lines changed: 15 additions & 82 deletions
Loading

0 commit comments

Comments
 (0)