Parts of the documentation imply that you can have more than one onResponse() to an incoming patch and the responseId parameter will match based on the byte string defined in the JSON.
But, I don’t see a way to actually declare separate patch.onResponse() methods in a LUA script.
I do see that in theory if I define a
"patch": [{ "responses": [{ "id": 1, "header": [0, 0, 0x0E, 0x22, 1, 4], "rules": [] }] }]
with multiple id and byte strings in the device JSON I can get the incoming data routed to a patchResponse() and then inside that single method branch to different handlers based on the responseId.
Is that the accepted way of dealing with (for example) a request/response for a single patch and a request/response for an entire bank? The headers for the request and response will differ, so they will be distinct (the bank is not simply a series of complete single patch sysex dumps)