Skip to content

Commit

Permalink
ICPIanoKeyboardElement has now 6 proper octaves. Computer keyboard st…
Browse files Browse the repository at this point in the history
…arts at 48 MIDINN
  • Loading branch information
lucretiomsp committed Nov 16, 2024
1 parent 24678c0 commit e9c3338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CoypuIDE/ICPianoKeyboardElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ ICPianoKeyboardElement >> getNoteAtPosition: aPoint [
{ #category : 'accessing' }
ICPianoKeyboardElement >> highestNote [

^ 86
^ 96
]

{ #category : 'accessing' }
Expand Down Expand Up @@ -237,7 +237,7 @@ ICPianoKeyboardElement >> initializeBlackKeys [
blackNoteX := self pianoX + (self whiteKeyWidth * 0.75).

"Number of octaves in the keyboard"
numOctaves := 4. "You have a 4-octave keyboard"
numOctaves := 6. "You have a 6-octave keyboard"

"Total number of black keys"
blackKeyCount := 5. "Five black keys per octave"
Expand Down Expand Up @@ -419,7 +419,7 @@ ICPianoKeyboardElement >> keyHeight: anObject [
{ #category : 'accessing' }
ICPianoKeyboardElement >> lowestNote [

^ 48
^ 24
]

{ #category : 'accessing' }
Expand Down

0 comments on commit e9c3338

Please sign in to comment.