for i, rect in enumerate(self.keyboardRects) :
hue = FIRST_HUE - hueStep * i
tone = self.distinctNotes[i]
- c = Column(self, hue, rect, tone)
+ atBorder = False
+ if i == 0 :
+ atBorder = 'left'
+ elif i == self.keyboardLength -1 :
+ atBorder = 'right'
+ c = Column(self, hue, rect, tone, atBorder)
self.add(c, layer=BACKGROUND_LAYER)
self.columns[tone.midi] = c