Skip to content

Commit

Permalink
Bugfix - Prophet 12 patch name should use Layer A name and not Layer …
Browse files Browse the repository at this point in the history
…B name!
  • Loading branch information
christofmuc committed Oct 19, 2020
1 parent 30b6724 commit 2924403
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adaptions/DSI Prophet 12.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ def nameFromDump(message):
dataBlock = message[4:-1]
if len(dataBlock) > 0:
patchData = unescapeSysex(dataBlock)
return ''.join([chr(x) for x in patchData[914:931]])
layer_a_name = ''.join([chr(x) for x in patchData[914-512:931-512]]).strip() # each layer needs 512 bytes
return layer_a_name
# layer_b_name = ''.join([chr(x) for x in patchData[914:931]]).strip() # This is layer B name found first
# return layer_a_name if layer_a_name == layer_b_name else layer_a_name + "|" + layer_b_name
return "Invalid"


Expand Down

0 comments on commit 2924403

Please sign in to comment.