I have been re doing my setup with the new TouchOSC app (which is a vast improvement on the last version). And I’ve managed to do most of the things I wanted to do thanks to the time savers in GP4 and the hive mind here, but I am stuck with one small (easy?) thing…
I have used the ‘pager’ control in touchOSC and assigned the /GigPerformer/SwitchToRack OSC function to it, which works a treat when operating it from the iPad. Switching the page, switches the rackspace in GP and displays all of the relevant controllers for that rackspace etc.
However, I also use a footswitch to change the rackspace via MIDI PC messages when my fingers are busy. But the pager control in touchOSC doesn’t change with it… which it’d be nice if it did!
So presumably the /GigPerformer/SwitchToRack command isn’t bidirectional or perhaps its not as simple as all the widgets that just work? So I assume I’d need a script to do this that says something like; when receiving MIDI PC change x, send /GigPerformer/SwitchToRack message to touchOSC…?
Sorry if this is a simple one that I should know, It’s the first script I’ve needed in this version of GP (my last one needed loads that I copied from here without properly understanding!). So my scripting ability has probably diminish since then I’m afraid!!
I’m using Hexlers Protokol and as you can see, the message sent from touchOSC using the ‘SwitchToRack’ (first image) does not get sent from GP (second image) when switching rackspace… only the rackspace name (halfway down the list) and all the widgets.
@TimHartnell add this as a Gig script (Window > Show Gig Script Editor). Update the IP and Port variables to what you need.
// Called when you switch to another rackspace
On Rackspace(oldRackspaceIndex : integer, newRackspaceIndex : integer)
Var osc : OSCMessage
ip : String = "127.0.0.1"
port : Integer = 8000
OSC_SendSpecific(osc, ip, port)
The ‘pager’ widget in TouchOSC can add some nice flexibility in having dedicated widgets per rackspace, if that’s what you need. Having the rackspace index sent back to it just makes sure you’re always in sync, regardless of how you change rackspaces (osc app or controller).