Skip to content

Commit 2924403

Browse files
committed
Bugfix - Prophet 12 patch name should use Layer A name and not Layer B name!
1 parent 30b6724 commit 2924403

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adaptions/DSI Prophet 12.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,10 @@ def nameFromDump(message):
8585
dataBlock = message[4:-1]
8686
if len(dataBlock) > 0:
8787
patchData = unescapeSysex(dataBlock)
88-
return ''.join([chr(x) for x in patchData[914:931]])
88+
layer_a_name = ''.join([chr(x) for x in patchData[914-512:931-512]]).strip() # each layer needs 512 bytes
89+
return layer_a_name
90+
# layer_b_name = ''.join([chr(x) for x in patchData[914:931]]).strip() # This is layer B name found first
91+
# return layer_a_name if layer_a_name == layer_b_name else layer_a_name + "|" + layer_b_name
8992
return "Invalid"
9093

9194

0 commit comments

Comments
 (0)