From bc04100457505823140dbfe1df5d22c22e1435b9 Mon Sep 17 00:00:00 2001 From: Grissess <grissess@nexusg.org> Date: Thu, 20 Aug 2015 23:06:11 -0400 Subject: Partial commit (sorry :( ) --- broadcast.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'broadcast.py') diff --git a/broadcast.py b/broadcast.py index 2903e7a..b494645 100644 --- a/broadcast.py +++ b/broadcast.py @@ -143,6 +143,8 @@ if options.live or options.list_live: ev = S.event_input(seq.client) event = None if ev: + if options.verbose: + print 'SEQ:', ev if ev < 0: seq._error(ev) if ev.type == S.SND_SEQ_EVENT_NOTEON: @@ -160,7 +162,7 @@ if options.live or options.list_live: continue if event is not None: if isinstance(event, midi.NoteOnEvent) and event.velocity == 0: - ev.__class__ = midi.NoteOffEvent + event.__class__ = midi.NoteOffEvent if options.verbose: print 'EVENT:', event if isinstance(event, midi.NoteOnEvent): -- cgit v1.2.3-70-g09d2