Old 02-18-2017, 08:09 PM   #1
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default Sending OSC data from Reaper to VVVV / Processing ?

Hi all

Is it possible to connect Reaper to VVVV via OSC ?
I want to send track audio signal as OSC data (range 0.0 to 1.0 float) to VVVV and use it to modulate my visual stuff (rotation ,color and etc..)

I know It's not possible to do that in Lua!
How about EEL ?
__________________
Outboarder Scripts
Outboarder is offline   Reply With Quote
Old 02-19-2017, 12:15 AM   #2
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default

I know how to get OSC message in VVVV.
I like to know how to send L and R values in JSFX below.

Code:
slider1:0<0,1,0.000001>Left
slider2:0<0,1,0.000001>Right
slider3:M=3<0,10,0.01>Mul
slider4:8000<0,10000,1000>Bud Rate
slider5:1<1,64,1>Channel 

@init
slider1 = 0;
slider2 = 0;
slider3 = 3;
slider4 = 8000;
slider5 = 1;

ClientIP = "192.168.1.50";
Client = "Reaper";

ServerIP = "127.0.0.1";
Server = "VVVV";

@slider

@sample
    ampL = abs(spl0);
    ampR = abs(spl1);
    peakL = max(peakL, ampL);
    peakR = max(peakR, ampR);
    
    time_precise()-T > 0.02 ? ( 
       SL = 0;
       SR = 0;
       T=time_precise();
    );
    
    SL = max(SL, ampL);
    SR = max(SR, ampR);
        
    L = SL*M; 
    R = SR*M;
    
    slider1 = L;
    slider2 = R;
    
@block
https://www.youtube.com/watch?v=XTVBdWnsxk0
__________________
Outboarder Scripts

Last edited by Outboarder; 02-20-2017 at 12:11 AM.
Outboarder is offline   Reply With Quote
Old 02-20-2017, 02:01 AM   #3
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default

I managed to connect Reaper to VVVV via virtual midi cable (LoopBe1).
It's working as I expected but still want to know is it possible to send OSC in JSFX ?
__________________
Outboarder Scripts
Outboarder is offline   Reply With Quote
Old 02-21-2017, 07:33 PM   #4
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default Does Anyone know !?

I found this article written by Justin in 2013 :
http://1014.org/?article=511

Code:
oscfmt0 = trackindex;
oscsend(destination, { "/track/%.0f/volume" }, 0.5);
Is it possible to use this in JSFX ?
If it's possible ,could someone give me an example code ?
__________________
Outboarder Scripts
Outboarder is offline   Reply With Quote
Old 02-23-2017, 02:39 AM   #5
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 834
Default

Thank you Veto for explanation.
I stick with Virtual Midi solution for now. Hope they implement native JSFX-OSC in the near future.
__________________
Outboarder Scripts
Outboarder 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:58 AM.


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