Old 03-30-2017, 07:40 AM   #1
Erriez
Human being with feelings
 
Join Date: Jun 2010
Location: The Netherlands
Posts: 177
Default Csurf OSC source

I'd like to extend the csurf OSC surface with new commands and functionality, but can't find the source in the reaper_extension_sdk.zip.

Can someone tell me where I can find the csurf OSC sources?

Thanks!
Erriez is offline   Reply With Quote
Old 03-30-2017, 08:23 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Erriez View Post
I'd like to extend the csurf OSC surface with new commands and functionality, but can't find the source in the reaper_extension_sdk.zip.

Can someone tell me where I can find the csurf OSC sources?

Thanks!
The OSC support in Reaper is not open source.
__________________
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 03-31-2017, 01:41 AM   #3
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 11,184
Default

Have you checked out reaper_plugin_functions.h, you might be able to roll your own.

Check this one and its cousins:

#if defined(REAPERAPI_WANT_CreateLocalOscHandler) || !defined(REAPERAPI_MINIMAL)
REAPERAPI_DEF //==============================================
// CreateLocalOscHandler
// callback is a function pointer: void (*callback)(void* obj, const char* msg, int msglen), which handles OSC messages sent from REAPER. The function return is a local osc handler. See SendLocalOscMessage, DestroyOscHandler.

void* (*CreateLocalOscHandler)(void* obj, void* callback);
#endif
__________________
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 03-31-2017, 05:12 AM   #4
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by Geoff Waddington View Post
Have you checked out reaper_plugin_functions.h, you might be able to roll your own.

Check this one and its cousins:

#if defined(REAPERAPI_WANT_CreateLocalOscHandler) || !defined(REAPERAPI_MINIMAL)
REAPERAPI_DEF //==============================================
// CreateLocalOscHandler
// callback is a function pointer: void (*callback)(void* obj, const char* msg, int msglen), which handles OSC messages sent from REAPER. The function return is a local osc handler. See SendLocalOscMessage, DestroyOscHandler.

void* (*CreateLocalOscHandler)(void* obj, void* callback);
#endif
I just tried using that and couldn't get it to work. There should be more documentation on how that should be used. (In any case, a completely custom OSC implementation could be done in an extension plugin, but it's of course a relatively large thing to implement.)
__________________
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 03-19-2024, 12:46 PM   #5
Erriez
Human being with feelings
 
Join Date: Jun 2010
Location: The Netherlands
Posts: 177
Default

Years later, I found the OSC sources on Github:
https://github.com/justinfrankel/rea...s/reaper_csurf

Thanks!
Erriez 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 01:09 PM.


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