Windows executable! and Device List for Audio
This commit is contained in:
parent
19e90ce808
commit
41408de31c
BIN
dist/underbridge.exe
vendored
Normal file
BIN
dist/underbridge.exe
vendored
Normal file
Binary file not shown.
@ -38,6 +38,13 @@ def getMIDIDevice():
|
|||||||
except:
|
except:
|
||||||
displaymsg.set("Can´t find OP-Z : MIDI Error")
|
displaymsg.set("Can´t find OP-Z : MIDI Error")
|
||||||
|
|
||||||
|
def getAudioDevice():
|
||||||
|
p = pyaudio.PyAudio()
|
||||||
|
info = p.get_host_api_info_by_index(0)
|
||||||
|
numdevices = info.get('deviceCount')
|
||||||
|
for i in range(0, numdevices):
|
||||||
|
if (p.get_device_info_by_host_api_device_index(0, i).get('maxInputChannels')) > 0:
|
||||||
|
print("Input Device id ", i, " - ", p.get_device_info_by_host_api_device_index(0, i).get('name'))
|
||||||
|
|
||||||
def getBPM():
|
def getBPM():
|
||||||
global op_device
|
global op_device
|
||||||
@ -204,6 +211,7 @@ def sequenceMaster():
|
|||||||
|
|
||||||
getMIDIDevice()
|
getMIDIDevice()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
getAudioDevice()
|
||||||
|
|
||||||
displaymsg.set("Sequence started")
|
displaymsg.set("Sequence started")
|
||||||
|
|
||||||
@ -238,7 +246,7 @@ def sequenceMaster():
|
|||||||
pattern_nr = 0
|
pattern_nr = 0
|
||||||
sequenceMaster()
|
sequenceMaster()
|
||||||
except:
|
except:
|
||||||
displaymsg.set("OP-Z connection Problem :(")
|
displaymsg.set("OP-Z Audio Device Problem :(")
|
||||||
|
|
||||||
def cancelRec():
|
def cancelRec():
|
||||||
global cancel
|
global cancel
|
||||||
|
Loading…
Reference in New Issue
Block a user