midi: define ipcSend before any possible use
This commit is contained in:
parent
a6401b63e2
commit
eff2375a4b
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue