From 306b4849b2a56f0588732c02ad0f7f38157c8e2b Mon Sep 17 00:00:00 2001 From: cruc Date: Thu, 22 Oct 2020 23:41:42 +0200 Subject: [PATCH] This is a bit hackish - treat the Omni mode of the Prophet 12 as MIDI 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. --- adaptions/DSI Prophet 12.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adaptions/DSI Prophet 12.py b/adaptions/DSI Prophet 12.py index f63a267e..22755655 100644 --- a/adaptions/DSI Prophet 12.py +++ b/adaptions/DSI Prophet 12.py @@ -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