Replies: 3 comments 2 replies
-
Sure - just change the line you noted to this: fp.add_router_rule(type='prog', chan=CHAN, par1='0-127*1+1', patch='select') Make sure to also set |
Beta Was this translation helpful? Give feedback.
-
Aha - the program change message continues to get processed even though the patch has changed. I'm working on #102 to fix this, but for now instead of making the changes to headlesspi.py I suggested above, you would add the following at the beginning of the bank-level router_rules:
- clear
- {type: note}
- {type: cc}
- {type: pbend}
- {type: cpress}
- {type: kpress}
- {type: prog, par1: 0-127*1+1, patch: select} This clears all the default router rules (including program changes), then creates default routing for the other five voice message types, and finally routes program changes to patch selection. |
Beta Was this translation helpful? Give feedback.
-
Ok, now it works fine with this modification. It seems better to me to add it in the bank file instead of the python code. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I use a headless Squishbox and want to use the "Program Change" keys on my midi keyboard controller.
When my keyboard send a "Program Change" message, it doesn't change the patch described in bank file, but change the instrument in the sf2 file.
When i read headlesspi.py, on the line 44:
fp.add_router_rule(type='cc', chan=CHAN, par1=SELECT_PATCH, par2=selectspec, patch='select')
I wonder if there is a way to use the standard 'prog' midi message to change the patch ?
Perhaps there is a way to override using a "bankX.yaml" file ?
Thank you for your help !!
Beta Was this translation helpful? Give feedback.
All reactions