midi: define ipcSend before any possible use

This commit is contained in:
jean-emmanuel 2018-01-10 14:05:36 +01:00
parent cb86370cb4
commit 9abacf65c5

View file

@ -4,6 +4,9 @@ import traceback
import json as JSON
import re
def ipcSend(name, data):
print(JSON.dumps([name, data]))
stdout.flush()
try:
import rtmidi
@ -18,10 +21,6 @@ except:
if version_info.major == 3:
raw_input = input
def ipcSend(name, data):
print(JSON.dumps([name, data]))
stdout.flush()
debug = False
if 'debug' in argv:
debug = True