Old 08-28-2018, 09:15 AM   #1
mikechr
Human being with feelings
 
Join Date: Jan 2016
Posts: 16
Default Generate and send an OSC message from an action?

Hi. Is it possible to generate and send an OSC message from a developer written action? If so, what language options are there? Thanks!
mikechr is offline   Reply With Quote
Old 08-28-2018, 12:32 PM   #2
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 11,184
Default

Quote:
Originally Posted by mikechr View Post
Hi. Is it possible to generate and send an OSC message from a developer written action? If so, what language options are there? Thanks!
I don't think so, Reaper's OSC support is more for getting data into Reaper.

I'm currently working on rolling my own, follow the thread in my sig for updates.
__________________
To install you need the CSI Software and Support Files
For installation instructions and documentation see the Wiki
Donate -- via PayPal to waddingtongeoff@gmail.com
Geoff Waddington is offline   Reply With Quote
Old 08-28-2018, 12:42 PM   #3
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by mikechr View Post
Hi. Is it possible to generate and send an OSC message from a developer written action? If so, what language options are there? Thanks!
The Reaper API only has OscLocalMessageToHost which sends an OSC message directly to Reaper itself. Which to me seems kind of redundant because you could probably do everything that OSC messages can do directly with API calls anyway...

You could write a C or C++ extension plugin that uses some OSC library like oscpkt for C++.

I think it is possible to do some networking stuff with EEL and Python ReaScript. (But not too easily with Lua, though.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 08-28-2018, 12:53 PM   #4
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 11,184
Default

Quote:
Originally Posted by Xenakios View Post
The Reaper API only has OscLocalMessageToHost which sends an OSC message directly to Reaper itself. Which to me seems kind of redundant because you could probably do everything that OSC messages can do directly with API calls anyway...

You could write a C or C++ extension plugin that uses some OSC library like oscpkt for C++.

I think it is possible to do some networking stuff with EEL and Python ReaScript. (But not too easily with Lua, though.)
Yup, should have mentioned, I'm using OscPkt, it's small, header only , and has been compiled into the last few builds, with a bit of ifdef magic for header file order in Windows/Mac, so far so good...
__________________
To install you need the CSI Software and Support Files
For installation instructions and documentation see the Wiki
Donate -- via PayPal to waddingtongeoff@gmail.com
Geoff Waddington is offline   Reply With Quote
Old 08-28-2018, 05:12 PM   #5
mccrabney
Human being with feelings
 
mccrabney's Avatar
 
Join Date: Aug 2015
Posts: 3,671
Default

as a really lofi hack to get osc out of reaper via script or action, i use dummy tracks. these tracks don't do anything, don't have any audio, etc - their sole purpose is to send osc based on arbitrary track states. they sit in a dedicated order at the top of all of my other tracks.

i use actions to toggle mute, arm, etc on these tracks. this results in osc being sent out of reaper that i use to [do stuff] in other programs.

for example, i use this trick to essentially query REAPER to see if midi input quantize is on, and if it is, it lights up an LED. etc.
__________________
mccrabney scripts: MIDI edits from the Arrange screen ala jjos/MPC sequencer
|sis - - - anacru| isn't what we performed: pls no extra noteons in loop recording
| - - - - - anacru|sis <==this is what we actually performed.
mccrabney is online now   Reply With Quote
Old 08-28-2018, 09:17 PM   #6
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,690
Default

I use OSCIIBot to convert Midi messages generated by Reaper to OSC messages.

I set up a bidirectional system:

Surface-device <-(Midi-via-USB)-> Reaper-JSFXes <-(Midi-via-Loop-Device)-> OSCIIBot <-(OSC-via-WLAN)-> Rack-Mixer

-Michael
mschnell is online now   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 07:16 AM.


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