Old 12-05-2013, 04:13 PM   #1
worldoftwilights
Human being with feelings
 
Join Date: Apr 2010
Posts: 18
Default SWS Actions CMD id with OSC

Hello!

I can't understand how to set the address of a SWS Action as a OSC Command.

since I have it defaulted to t/action/@

i assumed the line command would be something like this:

/action/_SWS_SETREPEAT with the trigger to activate it.

OSC output is right (I can see it receiving the message).

But it's not working.. With MIDI i managed to make it works, but i'd love to see it with OSC

Do you have any ideas?
Thanks.

Gio.
worldoftwilights is offline   Reply With Quote
Old 12-08-2013, 02:19 PM   #2
EnkelMagnus
Human being with feelings
 
Join Date: Feb 2010
Posts: 96
Default

# i: integer. These messages include an integer argument, and are sent from the
# device to REAPER.

# Example: ACTION i/action t/action/@
# The device sends /action 40757 or /action/40757 to trigger the REAPER action

action sends an Integer.
Try sending /action/53646
which is the command id for your action.

[img]http://img10.**************/img10/8872/7lid.png[/img]
EnkelMagnus is offline   Reply With Quote
Old 12-08-2013, 02:50 PM   #3
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,823
Default

The default ReaperOSC mapping also include s/action/str (as of a few builds ago), so you should be able to send /action/str _SWSSETREPEAT.
schwa is offline   Reply With Quote
Old 12-08-2013, 07:21 PM   #4
worldoftwilights
Human being with feelings
 
Join Date: Apr 2010
Posts: 18
Default

@EnkelMAgnus

Thanks mate! now I got how actions work!

and thanks also to schwa!! the problem was in the OSC File.

i had s/action/str (which didn't work)
then i switched to s/action/str/ (with the slash at the end)

Now it works thanks men!
worldoftwilights is offline   Reply With Quote
Old 12-16-2013, 08:12 AM   #5
Xane002
Human being with feelings
 
Join Date: Aug 2009
Posts: 91
Default

Quote:
Originally Posted by schwa View Post
The default ReaperOSC mapping also include s/action/str (as of a few builds ago), so you should be able to send /action/str _SWSSETREPEAT.
IF!!....your OSC client can send it.

I've been testing a few different IOS clients and TouchOSC, TBMidi Stuff, and ControlOSC have no such "widget" that can send a string as an argument.

The only "client" I have found to do such is Pure Data...but that is not a solution since PD is a computer based software not available on IOS.

Xane002 is offline   Reply With Quote
Old 12-24-2013, 11:03 PM   #6
AvantGuy
Human being with feelings
 
AvantGuy's Avatar
 
Join Date: Sep 2013
Location: Albuquerque NM
Posts: 21
Default

Quote:
Originally Posted by Xane002 View Post
...The only "client" I have found to do such is Pure Data...but that is not a solution since PD is a computer based software not available on IOS.
Would libpd be useful?

http://puredata.info/downloads/libpd
__________________
As performer and composer:
- soundcloud
- bandcamp
AvantGuy is offline   Reply With Quote
Old 12-24-2013, 11:57 PM   #7
Xane002
Human being with feelings
 
Join Date: Aug 2009
Posts: 91
Default

Quote:
Originally Posted by AvantGuy View Post
Sadly, I'm not a programmer.

But, thanks for the suggestion. I did come across this in my recent searches, but still, not a coder.

Thank you!
Xane002 is offline   Reply With Quote
Old 12-25-2013, 03:46 AM   #8
EnkelMagnus
Human being with feelings
 
Join Date: Feb 2010
Posts: 96
Default

Quote:
Originally Posted by Xane002 View Post
IF!!....your OSC client can send it.

I've been testing a few different IOS clients and TouchOSC, TBMidi Stuff, and ControlOSC have no such "widget" that can send a string as an argument.

The only "client" I have found to do such is Pure Data...but that is not a solution since PD is a computer based software not available on IOS.

But you don't need to send a String as an argument.
You can either do /action "str _SWSSETREPEAT" or /action/str _SWSSETREPEAT with a 1 as an argument. I believe Schwa confussled this one. That's what the default.ReaperOsc tells me at least.
EnkelMagnus is offline   Reply With Quote
Old 12-25-2013, 11:11 AM   #9
Xane002
Human being with feelings
 
Join Date: Aug 2009
Posts: 91
Default

Quote:
Originally Posted by EnkelMagnus View Post
But you don't need to send a String as an argument.
You can either do /action "str _SWSSETREPEAT" or /action/str _SWSSETREPEAT with a 1 as an argument. I believe Schwa confussled this one. That's what the default.ReaperOsc tells me at least.
You're right - I'm mixing my terms.

The action function in the ReaperOSC file allows for intergers, toggles, and strings. These are present in my ReaperOSC file.

I cannot get Reaper to respond to string commands, even with your suggestions above.

For clarity, I'm using a button object in TouchOSC to send Cmd IDs and would like to use the same object to send Custom IDs instead. There is no specific "string" object that I can find in TouchOSC.

For instance, if my Cmd ID was 12345, and the Custom ID was _fj20s in Reaper's Action List, I currently use this command in TouchOSC with a button object:

action/12345

This triggers the action list item.

action/_fj20s

Does not trigger the action list item.

Nor does:
action/str _fj20s
action/"_fj20s"
action/str "_fj20s"
action _fj20s
action "_fj20s"
action/str/_fj20s
action/str/"_fj20s"


But, even using a previous command such as /track/@/name "vox" (To use Cockos' example in the OSC file), Reaper is not recognizing the "vox" as an input.

I believe this is a TouchOSC problem. However, no matter what I put in my object in TouchOSC, I see coming into Reaper. It's just, Reaper doesn't respond to anything but toggles for some reason.

Thank you for the suggestion! I'm certainly open to other ideas!
Xane002 is offline   Reply With Quote
Old 01-09-2014, 02:39 AM   #10
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by schwa View Post
The default ReaperOSC mapping also include s/action/str (as of a few builds ago), so you should be able to send /action/str _SWSSETREPEAT.
Does this work with custom actions too? Because I cannot make it work!

TouchOSC is sending /action/str _f48b951da4bce94f9cf0a1ad2e213ee8 and I have ACTION i/action s/action/str/ t/action/@ f/action/@/cc in my .reaperosc but REAPER does not respond to the incoming message.

What should I do to make it work?


P.S. _f48b951da4bce94f9cf0a1ad2e213ee8 is the command ID of my custom action

Last edited by amagalma; 01-09-2014 at 02:40 AM. Reason: P.S.
amagalma is offline   Reply With Quote
Old 01-09-2014, 06:31 AM   #11
Xane002
Human being with feelings
 
Join Date: Aug 2009
Posts: 91
Default

Quote:
Originally Posted by amagalma View Post

What should I do to make it work?
Get Lemur for IOS.

Seriously.

It can send those Custom IDs as strings and Reaper will respond.

TouchOSC just can't send strings, only float and integer values.

If you're using Apple products, Lemur is the best for this. Not only can it do this simple task of sending a string as a value, Lemur's graphics are more capable of customization - buttons can have labels - you don't have to hover a text object above. There are containers which have the ability for multiple tabs. Lemur can process expressions, use variables to control or change other objects in your project... It's way beyond TouchOSC.

And right now, it's $25 US - half price.

The reason the Custom ID is important to me is that I use 60+ buttons to trigger actions. Most of which are song selections. The problem is, and was exactly what I experienced upgrading to Reaper 4.581 and SWS Extensions 2.4 is that Cmd IDs shifted 99 places in value. You probably have experienced this yourself.

At least now, I know I can keep up with the improvements of Reaper, take advantage of the optimizations, and not have to re-address 60+ buttons on my OSC controller each time - potentially.
Xane002 is offline   Reply With Quote
Old 01-09-2014, 08:23 AM   #12
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,458
Default

Quote:
Originally Posted by Xane002 View Post
The problem is, and was exactly what I experienced upgrading to Reaper 4.581 and SWS Extensions 2.4 is that Cmd IDs shifted 99 places in value. You probably have experienced this yourself.

At least now, I know I can keep up with the improvements of Reaper, take advantage of the optimizations, and not have to re-address 60+ buttons on my OSC controller each time - potentially.
Yep, that is why Cmd IDs are important to me too!

Unfortunately, I can't use Lemur since I am on Android Are there any Android apps with similar potent to Lemur ?

Last edited by amagalma; 01-09-2014 at 08:24 AM. Reason: bad english! :)
amagalma is offline   Reply With Quote
Old 01-12-2014, 05:29 AM   #13
Ozymandias
Human being with feelings
 
Join Date: Apr 2011
Posts: 144
Default

Quote:
Originally Posted by Xane002 View Post
The problem is, and was exactly what I experienced upgrading to Reaper 4.581 and SWS Extensions 2.4 is that Cmd IDs shifted 99 places in value.
Do you know whether the Reaper and SWS upgrades were both responsible for Cmd ID shifts, or was it the SWS upgrade alone?
Ozymandias is offline   Reply With Quote
Old 01-12-2014, 09:04 AM   #14
Xane002
Human being with feelings
 
Join Date: Aug 2009
Posts: 91
Default

Quote:
Originally Posted by Ozymandias View Post
Do you know whether the Reaper and SWS upgrades were both responsible for Cmd ID shifts, or was it the SWS upgrade alone?
The amount of added actions for me may have been more than say, an incremental update would include with both since I froze my system in December 2012 when I got my setup functional.

So, I can't answer how many actions were added or from which Cockos or SWS the additions came.

I do know that an addition of one action, or a thousand didn't matter - it was the same amount of work to fix my OSC arrangement using Cmd Ids.
Xane002 is offline   Reply With Quote
Old 01-12-2014, 09:30 AM   #15
Xane002
Human being with feelings
 
Join Date: Aug 2009
Posts: 91
Default

Quote:
Originally Posted by amagalma View Post
Unfortunately, I can't use Lemur since I am on Android Are there any Android apps with similar potent to Lemur ?
Not that I know of. But, it's been a year since I looked into Android solutions. I did have a Galaxy S3 I was experimenting with but I no longer use that phone.

When I first started using OSC and Reaper, TouchOSC was not customizable on Android. It is now but that's moot considering it only sends floats and integers.

I played with Control OSC which is available for both IOS and Android and it too does not send string values.

Looking at the Google Play store:

OSC Commander: https://play.google.com/store/apps/d...ommander&hl=en

There's a tidbit in the updates that say: "Fixed OSC String encoding of special characters" This makes me wonder if it would work for Custom ID

But, I don't see much else in the Play store that is as capable as Lemur.

The nice thing about OSC is that it's platform agnostic - so, if there's something better someday on Android I'd certainly take a look. The Android tablets are a lot more affordable than iPads so I hope there is a comparable solution someday.

But, none yet.
Xane002 is offline   Reply With Quote
Old 04-25-2014, 05:57 AM   #16
EricM
Human being with feelings
 
EricM's Avatar
 
Join Date: Jul 2009
Location: Ljubljana, Slovenia
Posts: 3,801
Default

Quote:
Originally Posted by schwa View Post
The default ReaperOSC mapping also include s/action/str (as of a few builds ago), so you should be able to send /action/str _SWSSETREPEAT.
Dear schwa / Cockos team,

would it be possible to interpret messages like these:



to trigger Custom ID commands (once)? As Xane002 posts, lots of
controllers don't support sending string as an argument,
making us unable to reliably recall custom Actions.

There is a workaround to learn them, but as normal buttons
send the commands twice (ON & OFF message), the actions also
get triggered twice. Which is not desirable.

The workaround for TouchOSC is to use Toggle state buttons,
which only send the command once. But than you lose the
ability to use visual feedback, and on a touch device it
is hard to know if the button was actually pressed or not
without it.

e
__________________
Shoelace 4 Theme | SoundCloud/erXon
EricM is offline   Reply With Quote
Old 12-21-2014, 09:16 AM   #17
n0ne
Human being with feelings
 
Join Date: Jun 2014
Posts: 152
Default

Quote:
Originally Posted by Xane002 View Post
Get Lemur for IOS.

Seriously.

It can send those Custom IDs as strings and Reaper will respond.

TouchOSC just can't send strings, only float and integer values.

If you're using Apple products, Lemur is the best for this. Not only can it do this simple task of sending a string as a value, Lemur's graphics are more capable of customization - buttons can have labels - you don't have to hover a text object above. There are containers which have the ability for multiple tabs. Lemur can process expressions, use variables to control or change other objects in your project... It's way beyond TouchOSC.

And right now, it's $25 US - half price.

The reason the Custom ID is important to me is that I use 60+ buttons to trigger actions. Most of which are song selections. The problem is, and was exactly what I experienced upgrading to Reaper 4.581 and SWS Extensions 2.4 is that Cmd IDs shifted 99 places in value. You probably have experienced this yourself.

At least now, I know I can keep up with the improvements of Reaper, take advantage of the optimizations, and not have to re-address 60+ buttons on my OSC controller each time - potentially.
Hi Xane002,

How did you get it to work on your Lemur app? I've tried just about every combination but its not triggering with the costum id. Im using oscout like this:
oscout(0,'/action/str _SWS_SEL1', 1); or ...
oscout(0,'/action/str/, '_SWS_SEL1',);

Good news foor android user btw: lemur is now also available on android!

Thanks
n0ne is offline   Reply With Quote
Old 12-21-2014, 11:09 AM   #18
Xane002
Human being with feelings
 
Join Date: Aug 2009
Posts: 91
Default

Quote:
Originally Posted by n0ne View Post
Hi Xane002,

How did you get it to work on your Lemur app? I've tried just about every combination but its not triggering with the costum id. Im using oscout like this:
oscout(0,'/action/str _SWS_SEL1', 1); or ...
oscout(0,'/action/str/, '_SWS_SEL1',);

Good news foor android user btw: lemur is now also available on android!

Thanks
Here's what my Lemur string looks like:

oscout(0, '/action/str', '_5315b4ae45804c508f2812f1587f55df');
Attached Images
File Type: jpg lemur_action_example.jpg (18.1 KB, 538 views)
Xane002 is offline   Reply With Quote
Old 12-22-2014, 03:04 AM   #19
n0ne
Human being with feelings
 
Join Date: Jun 2014
Posts: 152
Default

Awesome!! Thanks
n0ne is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.