Skip to content

Commit

Permalink
This is a bit hackish - treat the Omni mode of the Prophet 12 as MIDI…
Browse files Browse the repository at this point in the history
… channel 1. Not really what the user wants, but prevents us from using MIDI channel 0x7f, which is not valid and thus will make the Prophet 12 appear non-detected.
  • Loading branch information
christofmuc committed Oct 22, 2020
1 parent eae02fc commit 306b484
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adaptions/DSI Prophet 12.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def channelIfValidDeviceResponse(message):
and message[8] == 0x00 # Family member
and message[9] == 0x00): # Family member
# Extract the current MIDI channel from index 2 of the message
return message[2]
# If the device is set to OMNI it will return 0x7f as MIDI channel - we use 1 for now which will work
return message[2] if message[2] != 0x7f else 1
return -1


Expand Down

0 comments on commit 306b484

Please sign in to comment.