View Single Post
Old 10-09-2014, 06:38 AM  
dixo
Human being with feelings
 
dixo's Avatar
 
Join Date: May 2011
Posts: 83
Default FX parameter control via OSC

Hi,

This is a continuation of a thread started in another topic: http://forum.cockos.com/showpost.php...&postcount=118.

What I want to do is use a BCR2000 to control the parameters of multiple FX for the currently selected track in Reaper.
The idea is to use an oscii-bot script to map statically assigned Midi CC's on the BCR to OSC strings in a tailored .ReaperOSC file. In this way the encoders/buttons on the BCR will always have the same function for every track, allowing for static labels on the BCR (e.g. top row is always EQ).

What I want to achieve is that when I select a different track in Reaper, all parameters of all the FX on the track are sent via OSC to oscii-bot. The oscii-bot script will then take care of a FX name/parameter to Midi CC mapping. So it does not matter in which FX slot a VST sits, e.g. ReaComp will always map to the same encoders on the BCR, whether it sits in slot 1 on track 5 or slot 6 on track 1.

I have been experimenting a lot with various .ReaperOSC files, but keep running into stuff that does not work.

The greatest challenge seems to be to get Reaper to send all parameters for all FX when a different track is selected.

I think it has to do with my limited understanding of how Reaper handles track and FX banks.

My thinking was:

I only need to work on the current track, so my track bank size is 1.
I want to handle all FX and FX parameters, so these banks are infinite. For practical reasons, 16 FX and 32 parameters would be big enough for the time being.

So, I defined:

Code:
DEVICE_TRACK_COUNT 1
DEVICE_FX_COUNT 16
DEVICE_FX_PARAM_COUNT 32
DEVICE_FX_INST_PARAM_COUNT 32

DEVICE_TRACK_BANK_FOLLOWS MIXER
DEVICE_TRACK_FOLLOWS LAST_TOUCHED

TRACK_NAME s/track/@/name
TRACK_NUMBER s/track/@/number/str

FX_NAME s/fx/@/name

FX_PARAM_NAME  s/fx/@/fxparam/@/name
FX_PARAM_VALUE s/fx/@/fxparam/@/value/str
FX_PARAM_VALUE n/fx/@/fxparam/@/value
I expected Reaper to send the names and values of all the FX and FX parameters upon track change: the new track is always outside the current bank of the device (track bank size is 1) and the FX bank has space for data from multiple FX and FX parameters.
But it doesn't work, Reaper does not send any FX parameters at all.

User Banned answered the following in the other topic before I split it off:
Quote:
Originally Posted by Banned View Post
Haven't replicated your setup (not in studio atm), but it seems that you have to include the track number in your message patterns - even though you only use a single track per bank - if you want the current effect selection to update when switching *tracks* (as opposed to switching *effects*).
Any thoughts on how to get this working are most welcome!

Thanks,
Dixo
dixo is offline   Reply With Quote