summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ab079c6)
dispWidth = screen.get_width() - 2 * BORDER
dispHeight = screen.get_height() - 2 * BORDER
dispWidth = screen.get_width() - 2 * BORDER
dispHeight = screen.get_height() - 2 * BORDER
- columnWidth = int(round(float(dispWidth) / keyboardLength))
+ columnWidth = int(round(float(dispWidth) / self.keyboardLength))
- for i in range(keyboardLength) :
+ for i in range(self.keyboardLength) :
upperLeftCorner = (i*columnWidth + BORDER, BORDER)
rect = pygame.Rect(upperLeftCorner, (columnWidth, dispHeight))
rects.append(rect)
upperLeftCorner = (i*columnWidth + BORDER, BORDER)
rect = pygame.Rect(upperLeftCorner, (columnWidth, dispHeight))
rects.append(rect)
class SongPlayingScreen(_PlayingScreenBase) :
def __init__(self, song) :
class SongPlayingScreen(_PlayingScreenBase) :
def __init__(self, song) :
- super(SongPlayingScreen, self).__init__(song.)
+ super(SongPlayingScreen, self).__init__(song.distinctNotes)