midi: prevent the main process from exiting when MIDI setup fails and use stderr when appropriate (#218)
This commit is contained in:
parent
04b985705e
commit
565ab78064
3 changed files with 13 additions and 5 deletions
|
|
@ -12,8 +12,8 @@ try:
|
|||
import rtmidi
|
||||
API = rtmidi.RtMidiIn.UNIX_JACK if 'jack' in argv else rtmidi.RtMidiIn.UNSPECIFIED
|
||||
JACK = API == rtmidi.RtMidiIn.UNIX_JACK
|
||||
in_dev = rtmidi.RtMidiIn(API, 'Midi->OSC probe')
|
||||
out_dev = rtmidi.RtMidiOut(API, 'OSC->Midi probe')
|
||||
in_dev = rtmidi.RtMidiIn(API, 'MIDI->OSC probe')
|
||||
out_dev = rtmidi.RtMidiOut(API, 'OSC->MIDI probe')
|
||||
except:
|
||||
ipcSend('error', 'pyrtmidi not found (or wrong version)')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue