Skip to content

Commit

Permalink
Updated Keyboard demo to have more realistic keyboard-layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Jan 19, 2025
1 parent a142c9f commit ad98af2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
@onmouseout="End"
@ontouchstart="e => Start(keys[k].Octave, keys[k].Pitch, e)"
@ontouchend="End"
x="@(keys.GetRange(0, i).Count(k => k.Color == "white")*100-35)"
x="@(keys.GetRange(0, i).Count(k => k.Color == "white")*100-30 - (keys[k].Pitch is 2 or 7 ? 10 : 0) + (keys[k].Pitch is 4 or 11 ? 10 : 0))"
y="0"
width="70"
width="60"
height="400"
fill="black"
stroke="black"
Expand Down

0 comments on commit ad98af2

Please sign in to comment.