$URL$
"""
import pygame
-from cursors import WarpingCursor
-from column import Column
-import events
-from eventutils import event_handler, EventDispatcher, EventHandlerMixin
import types
-from musicxml import Tone
-from config import FRAMERATE
-from config import FIRST_HUE
-from config import MIDI_VELOCITY_RANGE
-from config import MIDI_PAN_RANGE
-from config import MIDI_VELOCITY_WRONG_NOTE_ATTN
+import minwii.events as events
+from minwii.eventutils import event_handler, EventDispatcher, EventHandlerMixin
+from minwii.musicxml import Tone
+from minwii.config import FRAMERATE
+from minwii.config import FIRST_HUE
+from minwii.config import MIDI_VELOCITY_RANGE
+from minwii.config import MIDI_PAN_RANGE
+from minwii.config import MIDI_VELOCITY_WRONG_NOTE_ATTN
+from minwii.globals import BACKGROUND_LAYER
+from minwii.globals import CURSOR_LAYER
+from minwii.globals import PLAYING_MODES_DICT
-from globals import BACKGROUND_LAYER
-from globals import CURSOR_LAYER
-from globals import PLAYING_MODES_DICT
+from cursors import WarpingCursor
+from column import Column
class PlayingScreenBase(pygame.sprite.LayeredDirty, EventHandlerMixin) :
if self.currentColumn:
self.currentColumn.update(False)
note, verseIndex = self.noteIterator.next()
- syllabus = note.lyrics[verseIndex].syllabus()
+ try :
+ syllabus = note.lyrics[verseIndex].syllabus()
+ except IndexError :
+ syllabus = u'…'
column = self.columns[note.midi]
column.update(True, syllabus)
self.currentColumn = column