Duplex - Trigger Pattern X

Hi all,

With Duplex I’m trying to configure a button (tied to say CC-7) that triggers pattern index 3, is there something built in that I’m missing or is this something I’ll need to code myself? If the latter, if any guides exist to extending Duplex they are most welcome!

Ps. I can create a custom map using the built in applications, and in the shell I can use “renoise.song().transport:set_scheduled_sequence(2)” in realtime to do the action as needed, just trying to work out how to get the command implemented in Duplex so I can tie it to a button.

EDIT - just found this, helpful stuff!