X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/49c528b6d2cdaa39e08e00ccfa74a60751f8640a..b0a3123973062597484f6bc64ad0900eddc21ba7:/src/app/event_pprinters.py diff --git a/src/app/event_pprinters.py b/src/app/event_pprinters.py index 679924e..bc5834d 100755 --- a/src/app/event_pprinters.py +++ b/src/app/event_pprinters.py @@ -11,10 +11,10 @@ import sys self = sys.modules[__name__] def log_NOTEON(e): - return '' + return '%3d %3d %3d' % (e.chan, e.key, e.vel) def log_NOTEOFF(e): - return '' + return '%3d %3d' % (e.chan, e.key) def log_NOTEEND(e): return '' @@ -23,10 +23,10 @@ def log_COLSTATECHANGE(e): col = e.column tone = col.tone return u'%2d %5s %3s %3s %s' % \ - (col.index, col.state, tone.midi, tone.name, e.syllabus) + (col.index, e.state, tone.midi, tone.name, e.syllabus) def _log_col(e) : - """ formate l'événement + """ formate les événements de colonne COLDOWN, COLUP, COLOVER - etat - index de colonne - hauteur midi @@ -41,7 +41,6 @@ def _log_col(e) : log_COLDOWN = log_COLUP = log_COLOVER = _log_col def log_default(e) : - return '' return str(e) pprinters = {}