|
|
|
07-03-2013, 06:55 AM
|
#1
|
Human being with feelings
Join Date: May 2013
Posts: 16
|
OSC and Reaper Actions
Hi everyone!
I need to know if anyone out there knows how to map a button in TouchOSC to a reaper action.
I know I can learn one using the actions dialog, but I want to hardcode the text in the .ReaperOSC file and hardcode the text in the button in TouchOSC.
So, say I want to map "split items at edit cursor" action ID #40757.
What text do I add to the .ReaperOSC file, and what command do I give the button in TouchOSC?
|
|
|
07-03-2013, 01:19 PM
|
#2
|
Human being with feelings
Join Date: May 2013
Posts: 16
|
I Figured It Out!
For anyone else that wants to know how to get actions to work from TouchOSC.
You have to put
ACTION i/action t/action/@
in the .ReaperOSC file.
Then
/action/40757
in the button.
Replace 40757 with whatever action from the action list you want.
|
|
|
07-05-2013, 12:03 AM
|
#3
|
Human being with feelings
Join Date: Aug 2006
Location: Berlin
Posts: 11,817
|
Thanks. I'll keep that in mind for when I get a tablet.
|
|
|
07-05-2013, 07:43 AM
|
#4
|
Human being with feelings
Join Date: Mar 2008
Location: Unwired (probably in the proximity of Amsterdam)
Posts: 4,868
|
Quote:
Originally Posted by tater01
For anyone else that wants to know how to get actions to work from TouchOSC.
You have to put
ACTION i/action t/action/@
in the .ReaperOSC file.
Then
/action/40757
in the button.
Replace 40757 with whatever action from the action list you want.
|
However, do beware custom actions, as their numbers can change, and we have no way to look up the appropriate number programmatically (as we can do with ReaScript). A (clumsy) workaround is to place the action on a toolbar, and use the action to trigger the toolbar button.
Btw, when you're sending
/action/40757
then you should only need the second part:
ACTION t/action/@
But it doesn't hurt to have both (actions do not send feedback via OSC, so there is no danger of redundant network traffic), so I'd just leave it as it is.
Quote:
Originally Posted by airon
Thanks. I'll keep that in mind for when I get a tablet.
|
No need to remember, it's all mentioned explicitly in the Default.ReaperOSC file. All you need to remember, is to read it when you need it.
Quote:
Originally Posted by Default.ReaperOSC
[...]
# Example: ACTION i/action t/action/@
# The device sends /action 40757 or /action/40757 to trigger the REAPER action
# "split items at edit cursor". See the REAPER actions window for a complete list
# of action command ID numbers.
[...]
ACTION i/action t/action/@
[...]
|
__________________
˙lɐd 'ʎɐʍ ƃuoɹʍ ǝɥʇ ǝɔıʌǝp ʇɐɥʇ ƃuıploɥ ǝɹ,noʎ
|
|
|
10-14-2020, 05:36 AM
|
#5
|
Human being with feelings
Join Date: Mar 2020
Posts: 26
|
Hello,
I created a new topic for this (maybe it wasn't necessary, https://forum.cockos.com/showthread.php?t=243441) because I am struggling to create an ACTION button in touchosc.
So in fact from what I am reading in this old post EACH BUTTON description (with the command ID) has to be put in a .reaperosc file and NOT ONLY in the touchosc editor corresponding button ???
Sorry I know very little nearly nothing about programming and this all OSC and touchOSC thing seems so complicated...
Anyway, all the best,
Alexandre
|
|
|
10-20-2020, 01:54 PM
|
#6
|
Human being with feelings
Join Date: Aug 2007
Location: London, UK
Posts: 767
|
Not quite as positive as that - Reaper only loads one reaperosc file, so any bindings have to be in the one you load. So you define one (that's "one", just a single one, not multiple) OSC string that you bind to "ACTION" and then use the single (just one) argument that you send over OSC as the action argument.
I don't think you can do anything more complex than that with it.
If you've not already come across it, I've got a different approach but it's still highly inflexible and impractical. That's just what we've got to work with. Potentially you could bind strings with multiple parameters and parse them out but...
https://forum.cockos.com/showthread.php?t=202734
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.
|
|
|
|
10-21-2020, 04:22 AM
|
#7
|
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,690
|
Definitively worth a Feature request !
OTOH there additionally is the more "dynamic" binding of actions to OSC messages in the menu where you also can bind them to Midi messages (e.g. CC). Here with Midi, the binding is defined by Midi Channel and CC #, and the CC value can be obtained by a script that is fired due to the message arriving via the Control Path and once having been a Midi message, translated by MidiToReaControlPath of by checking the "control" option in the Midi driver setting.
With OSC messages, they only can be bound to an action, and hence start a script, but any parameters seemingly are lost.
Also worth mentioning in that FR.
-Michael
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 04:25 AM.
|