07-01-2022, 10:18 AM | #1 |
Human being with feelings
Join Date: Oct 2018
Posts: 14
|
Sending OSC command from Reaper to X Air mixer - cool
I just found a cool way how to send OSC command directly from Reaper to X Air mixer during live session and it might be interesting to others:
Situation: - I have a song with tracks that I use for live playing with Reaper. - I want to send timed OSC commands to our X18 mixer to switch off and on insert effect in mixer during the song (ex. for choruses) I found this solution: 1. Download command line utility sendosc.exe from https://github.com/yoggy/sendosc 2. Create a lua script with just 1 line of code: "reaper.ExecProcess('D:\\Downloads\\sendosc-win-1.0.2\\sendosc.exe 192.168.0.110 10024 /ch/08/insert/on i 0', 0)" You have to change the IP address and port number for your X Air mixer. You have to change the path to the sendosc utility. You have to use double \\ in a path string. You have to change the OSC command if you want to change different parameter of X Air mixer. I am switching OFF (and later ON) the insert FX on channel no. 8. 3. Insert action marker beginning with ! and ID of the lua user action, ex. !_RS1687c9d8d1924feb8fdd0812521ef8025cdb88f7 When Reaper plays the song and gets to the marker it will execute shell command that sends OSC command to X Air mixer. Last edited by hlavsa; 05-05-2023 at 12:06 AM. |
07-01-2022, 12:24 PM | #2 |
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,785
|
Great !
I did something similar, but not for automatic procedure, but for bidirectional syncing of values in Reaper and the XAir. I also used an external program - namely OSCIIBot by Cockos - to convert Midi and OSC to and fro. (In Reaper I use JSFXes instead of scrips to send and receive (Midi-) messages.) This does work fine, but I never was happy with using an external program. Later ReaLearn was created and same now does speak OSC. IMHO this is a much nicer option than using external converter software. -Michael Last edited by mschnell; 07-01-2022 at 12:31 PM. |
07-07-2022, 01:58 PM | #3 | |
Human being with feelings
Join Date: Oct 2018
Posts: 14
|
Quote:
But I would be interested if I could send OSC directly from Reaper. It should be possible using OSC library for Python in Reaper or OSC library for Lua. Any suggestions? |
|
07-07-2022, 04:37 PM | #4 |
Human being with feelings
Join Date: Aug 2009
Posts: 402
|
thanks for posting.. i will probably find a use for this with X32 also..
I agree with mschnell that external programs are never ideal solution but this sendosc file is only 18kbs so its very lightweight (and assuming its not buggy in anyway).. I'm already using OSCii to link selected faders with X32 faders which works ok but ultimately it would be great if there was more native solution such as a script etc.. Last edited by EcBaPr; 07-07-2022 at 04:49 PM. |
07-07-2022, 09:40 PM | #5 | |
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,785
|
Quote:
-Michael |
|
07-08-2022, 12:13 AM | #6 |
Human being with feelings
Join Date: Aug 2009
Posts: 402
|
IMO ReaLearn is a bit overkill if you just want to send OSC address occasionally to one device.. the DLL is 20meg.. ideally a native solution in Reaper would be best otherwise scripting solution would be good..
with that said, nothing wrong with Realearn especially for multiple controllers/devices or if you want a gui but just doesn't seem the most efficient for occasional updates to a single device.. |
07-08-2022, 09:57 AM | #7 |
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,785
|
AFAIU the file size of a DLL says nothing about how heavy it is when actually used.
The great thing about Reaper is that you can use (many kinds of) plugins to add seldomly used features for interested users. -Michael |
07-08-2022, 07:07 PM | #8 | |
Human being with feelings
Join Date: Aug 2009
Posts: 402
|
Quote:
these days ram isnt a major issue and 50mb isnt huge but if all you need to do is just update a single address occasionally, its not as economical as it could be.. nothing against Realearn.. its great, especially for more complex setups but IMO the best solution for simple applications would be a script directly from Reaper (if its possible ?).. |
|
07-08-2022, 09:47 PM | #9 |
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,785
|
No.
AFAIK, Reaper does not offer an API for directly using OSC. Hence the functionality (plugin) would need to do OS Network API calls do to OSC transfers with external equipment. -Michael |
07-09-2022, 04:57 AM | #10 |
Human being with feelings
Join Date: Aug 2010
Location: Germany
Posts: 2,199
|
Just some facts about ReaLearn's resource consumption:
|
07-16-2022, 04:47 AM | #11 |
Human being with feelings
Join Date: Jun 2022
Posts: 2
|
I can't figure out, how to use ReaLearn to control the XAir via OSC
- with MIDI it works fine (but only a subset of XAir-Parameters is available via MIDI) - with sendosc I can control the XAir, so principially it should work. But using the same parameters I struggle with ReaLearn/OSC: 1. I added a OSC-Device in ReaLearn (LocalPort: tried different ones, eg. 7878, 8000, 8080,10024 ...; Host-Address: XAir-IP; Host-Port: 10024) 2. As control input and feedback output I chose XAir (OSC) 3. XAir is not set as OSC-Source in Reaper -> Options -> OSC - "learn" doesn't react on XAir fader movements - I neither receive XAir-fader-movements nor do the faders react on fader movements in Reaper. Could anyone please help me? Thank you! Ralf |
07-16-2022, 06:04 AM | #12 |
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,785
|
Welcome to the Reaper Fprums !
You don't talk about the XAir's IP address. Same needs to be configured in ReaLearn. -Michael Last edited by mschnell; 07-16-2022 at 06:10 AM. |
07-16-2022, 06:47 AM | #13 |
Human being with feelings
Join Date: Jun 2022
Posts: 2
|
Thanks for your fast reply, Michael.
XAir's IP is what I entered in Device host (when I configured XAir as OSC device), see "Bild 001.png" (grayed out). Do I have to configure it elsewhere? |
07-16-2022, 02:51 PM | #14 |
Human being with feelings
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,785
|
Bild001 looks rather funny on that behalf.
-Michael |
Thread Tools | |
Display Modes | |
|
|