+def log_NOTEON(e):
+ return '%3d %3d %3d' % (e.chan, e.key, e.vel)
+
+def log_NOTEOFF(e):
+ return '%3d %3d' % (e.chan, e.key)
+
+def log_NOTEEND(e):
+ return ''
+
+def log_COLSTATECHANGE(e):
+ col = e.column
+ tone = col.tone
+ return u'%2d %5s %3s %3s %s' % \
+ (col.index, e.state, tone.midi, tone.name, e.syllabus)