Is there a way I can make buttons on my midi controller change instrum

AS of now at live shows I use a bluetooth keypad to swtich between instruments. would be nice to scroll through them with midi cc

Off the top of my head I expect that xRules would allow you to set that up with a bit of scripting.

https://www.renoise.com/tools/xrules

MIDI Map->Global->Navigation->Instruments.

You can trigger previous/next instruments and I think you can use a knob to scroll through the list.