Controlling loop range from OSC

Dear all,

I’m trying to prepare a kind of live setup with Ardour.

The idea is as follows: I have several tracks all together in the same session. I got a grid midi controller (akai apcmini), with which I pretend to directly access to several different timestamps. The entire setup goes through SuperCollider for sending the corresponding OSC messages.

Whatever the setup is, I cannot find a reasonable way to set the loop range from OSC. There are a lot of posibilites for regions and edit range and moving the cursors and the markers, but I still didn’t find a message like “set-end-loop-region”.

The workaround I have found so far is the following:
-> ardour/locate (set the red bar to a specific position)
-> ??? (place a cursor/loop marker to that specific position, and then place the red cursor to another position)
-> Editor/select-range-between-cursors
->Editor/set-loop-from-edit-range
-> play loop

but I still need at least one more action.

Does somebody can help?

Thank you very much,

Andrés

It would have to be added to the OSC support.