X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/a38e2f50572bdaaff5aa6d99a8cefe91bb856ec5..baf4f2fe0e04d6b95c428813dd920b597031ec04:/src/app/logfilereader.py?ds=sidebyside diff --git a/src/app/logfilereader.py b/src/app/logfilereader.py index a32d834..9955623 100755 --- a/src/app/logfilereader.py +++ b/src/app/logfilereader.py @@ -174,6 +174,10 @@ class LogFilePlayer(PlayingScreenBase) : chan, key = [int(v) for v in message.split(None, 1)] self.synth.noteoff(chan, key) + elif eventName.startswith('COL') : + pos = [int(n) for n in message.split(None, 4)[-1].strip('()').split(',')] + self.cursor.setPosition(pos) + pygame.event.clear() # à virer #EventDispatcher.dispatchEvents()