bugfixs
This commit is contained in:
parent
c169e11409
commit
98f039b2ee
5 changed files with 58 additions and 68 deletions
|
|
@ -517,13 +517,13 @@ def MidiMsg(midimsg, mididest):
|
|||
|
||||
desterror = -1
|
||||
|
||||
print("midi3 got midimsg", midimsg, "for", mididest)
|
||||
print("jamidi3 got midimsg", midimsg, "for", mididest)
|
||||
|
||||
for port in range(len(OutDevice)):
|
||||
# To mididest
|
||||
if midiname[port].find(mididest) != -1:
|
||||
if debug>0:
|
||||
print("midi 3 sending to name", midiname[port], "port", port, ":", midimsg)
|
||||
print("jamidi 3 sending to name", midiname[port], "port", port, ":", midimsg)
|
||||
midiport[port].send_message(midimsg)
|
||||
desterror = 0
|
||||
|
||||
|
|
@ -566,8 +566,8 @@ def findJamName(mididevice, midichan):
|
|||
|
||||
#print(v[0]["mididevice"],v[0]["midichan"], type(v[0]["midichan"]))
|
||||
if (v[0]["mididevice"] == mididevice) and (v[0]["midichan"] == midichan):
|
||||
print("Incoming event from", k)
|
||||
return k
|
||||
print("Incoming event from", k, "xname", v[0]["xname"])
|
||||
return v[0]["xname"]
|
||||
return "None"
|
||||
|
||||
|
||||
|
|
@ -579,11 +579,11 @@ def findJamDevices(name):
|
|||
for (k, v) in Confs.items():
|
||||
|
||||
if v[0]["type"] == "mididevice":
|
||||
#print(k, name,k.find(name))
|
||||
if k.find(name) != -1:
|
||||
#print(k, name,v[0]["xname"])
|
||||
if v[0]["xname"] == name:
|
||||
#print(v[0]["mididevice"])
|
||||
devices.append(v[0]["mididevice"])
|
||||
#print(devices)
|
||||
# print(devices)
|
||||
return devices
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue