This appears to work in my tests with Ableton. Just update the midi out device to the HX Stomp (assuming it generates a midi out port) and the CC number (the example uses CC 55).
It resends the CC messages every time a song or rackspace changes, or when the playhead starts.
Var counter : Integer = 0
On BeatChanged(bar : integer, beat : integer)
if counter < 5 then
SendNowToMidiOutDevice("IAC Driver Bus 1", MakeControlChangeMessage(55,127))
end
counter = counter + 1
End
// Called when you switch to another song
On Song(oldSongIndex : integer, newSongIndex : integer)
counter = 0
End
// Called when you switch to another rackspace
On Rackspace(oldRackspaceIndex : integer, newRackspaceIndex : integer)
counter = 0
End
// Called on attempt to change playhead status
On SystemEvent(newValue : double) Matching PlayheadStateChanged
if newValue == 1.0 then
counter = 0
end
End