Old 10-25-2020, 05:16 PM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 2,129
Default Osc and Jsfx?

Does JSFX support sending and getting OSC-messages?
I haven't found anything yet but I could have looked into the wrong parts of it...
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1385 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 10-26-2020, 04:04 AM   #2
JLP
Human being with feelings
 
Join Date: Jul 2019
Posts: 31
Default

Don't have the answer, but I'm really interested in it!
JLP is offline   Reply With Quote
Old 10-26-2020, 04:17 AM   #3
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 10,216
Default

I'm rather sure that not out of the box.

JSFXes can't access the Reaper API (as same needs to be accessed in the realm of the main thread while JSFXes run in the realm of the track's thread), nor can they access the OS API (for similar reasons).

Possible ways could be:
- use gmem and a support Reascript. But using OSC via the Reaper API also is very limited.
- send / receiver Midi message out / from outside of Reaper and use OSCIIBot (e.g. via Loopmidi) (I in fact do use this in a bidirectional way to remote-control a rack mixer from a Control Surface attached to Reaper via Midi.)
- somebody creates a supporting Reaper extension. (Maybe looking at "CSI" might help.)
- a VST using the OS network API (in a second thread).

-Michael

Last edited by mschnell; 10-26-2020 at 01:59 PM.
mschnell is online now   Reply With Quote
Old 10-26-2020, 11:25 AM   #4
jrk
Human being with feelings
 
Join Date: Aug 2015
Posts: 1,561
Default

Out of interest, what's the target for your OSC? i.e. what are you aiming to send to?
__________________
it's meant to sound like that...
jrk is offline   Reply With Quote
Old 10-26-2020, 12:48 PM   #5
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 2,129
Default

If you mean me, I would like to attempt a Soundboard for podcasts. Our Ultraschall project has already one but lacks in many parts and the developer of it doesn't have enough time to keep it going.
This Soundboard is a vst with osc capability. So replacing it with a Jsfx should not get rid of the Osc-management as this is used by many users of it.

Using ReaScript and gmem isn't an option as this is too limited. For instance, I can send OSC-messages only to Reaper itself but not outside of it.
And listening to osc isn't possible at all.
And Jsfx unfortunately doesn't have extension support so adding it that way isn't that easy, if at all possible.

I would like to avoid hacky solutions that may be possible somehow as the more hacky it is, the more bug potential it has. Hence I hoped, Jsfx can listen to and send OSC.

I think I'll request that then.

Thanks for the answers
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1385 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is offline   Reply With Quote
Old 10-26-2020, 02:02 PM   #6
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 10,216
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Using ReaScript and gmem isn't an option as this is too limited. For instance, I can send OSC-messages only to Reaper itself but not outside of it.
You might be able to get rid of this limitation with a Python script that directly uses the OS networking API for OSC (via USP) by means of open source Python libraries.
-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 04:08 PM.


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