Here ist the M4L patch, just edit the names it is reacting, then it should work.
Select_Scene_Feedback.amxd (136.0 KB)
And here an example script:
mOSC : OSCMessage
mOSCP : OSCMessage
mOSCT : OSCMessage
// Called on attempt to change playhead status
On SystemEvent(newValue : double) Matching PlayheadStateChanged
if newValue == 1.0 then
OSC_SendSpecific(mOSC, "127.0.0.1", 8000)
OSC_SendSpecific(mOSCP, "127.0.0.1", 8000)
The trick is following:
In Ableton Live the Link button is activated, as it is in Gig Performer.
The OnSystemEvent makes sure that the currently selected Scene in Ableton Live is triggered.
This is necessary because with Link enabled only the global play in Ableton Live is trigger but not the scene!
In the on Activate the OSC message is sent to Ableton Live and the M4L patch selects the desired scene by a given index.
In the M4L patch the incoming OSC messages are parsed and the internal Ableton Live API is called to start/stop the scene playing, select the desired scene, control volume of different tracks, control the mutes of different tracks.
But this is not the only thing, when you move a volume fade in Ableton Live OSC messages are sent back to Gig Performer, so that assigned widgets get the value back from Ableton Live.
Look at the M4L Patch and you see how the OSC Names of the Widgets in Gig Performer have to be set.
But you can - of course - change the M4L patch.
Hope that helps and enjoy
ps: All that could be done in sending midi messges to Ableton live.
But with this M4L patch it is much easier, as bidi communication is there and no need for doing correct widget assignments in each rackspace.