Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 05-17-2017, 12:36 PM   #1
DeBased
Human being with feelings
 
DeBased's Avatar
 
Join Date: Jun 2010
Location: UK
Posts: 412
Default TrackFX_SetParam() normalized even when Reaper has better param knowledge?

I'm trying to set several plugin's delay time in milliseconds, rather than normalized 0-1. I was hoping TrackFX_SetParam() would do it, but it still uses 0-1 for the plugins I've tried (Echoboy, Guitar Rig's Quad Delay).

What's strange is that Reaper will show actual millisecond values for those delays in automation lanes - so it has a deeper knowledge of the parameters' units and ranges:



So why does TrackFX_SetParam() not accept actual millisecond values here?
__________________
Reaper5, Win10Pro, Ryzen 5950x/64GB, RME UFX/BabyFace Pro, Behringer X-Touch
- my true 'global' (project-tab independent) Send/Receive FX
- my Behringer X-touch mods + XCtrl mode for CSI (coloured scribble strips!)
DeBased is offline   Reply With Quote
Old 05-17-2017, 04:51 PM   #2
junh1024
Human being with feelings
 
Join Date: Feb 2014
Posts: 240
Default

R doesn't actually have deep knowledge of the units iirc.

Here's my guess: You set the normalized 0-1 value, what the VST passes to the DAW is only a string for aesthetic value, not actualy directly programmable via the aesthetic "units". This wirks for humans users doing manual automation, but not programmers.
junh1024 is offline   Reply With Quote
Old 05-18-2017, 03:14 AM   #3
DeBased
Human being with feelings
 
DeBased's Avatar
 
Join Date: Jun 2010
Location: UK
Posts: 412
Default

Right, that possibility ocurred to me too. Doesn't VST3 add deeper parameter descriptions? Unfortunately I haven't worked with VST code.

I want this as I like delays syncing to tempo, but I like them to drift off a little, which no plugin I've seen supports. So I've written a JS that takes the tempo and allows you to modify it, and it spits out a millisecond delay value. I tried applying this via parameter modulation, but of course it's not only 0-1, but also plugins tend to use non-linear parameter ranges. So to apply the ms value correctly would mean reverse-engineering that for every plugin - doable, but sucks and not a universal solution.

The other approach would be to lie to plugins about the project tempo somehow, then all tempo-syncing plugins could be sync-drifted automatically. But that's probably not possible without modifying Reaper?

Actually that would be a good FR, per-plugin instance tempo-modification.
__________________
Reaper5, Win10Pro, Ryzen 5950x/64GB, RME UFX/BabyFace Pro, Behringer X-Touch
- my true 'global' (project-tab independent) Send/Receive FX
- my Behringer X-touch mods + XCtrl mode for CSI (coloured scribble strips!)
DeBased is offline   Reply With Quote
Old 05-18-2017, 06:37 AM   #4
DeBased
Human being with feelings
 
DeBased's Avatar
 
Join Date: Jun 2010
Location: UK
Posts: 412
Default

FR posted.

If anybody can think of another way, let me know.
__________________
Reaper5, Win10Pro, Ryzen 5950x/64GB, RME UFX/BabyFace Pro, Behringer X-Touch
- my true 'global' (project-tab independent) Send/Receive FX
- my Behringer X-touch mods + XCtrl mode for CSI (coloured scribble strips!)
DeBased is offline   Reply With Quote
Old 05-19-2017, 09:08 AM   #5
DeBased
Human being with feelings
 
DeBased's Avatar
 
Join Date: Jun 2010
Location: UK
Posts: 412
Default

This is my workaround JS script approach: http://forum.cockos.com/showthread.php?p=1846538
__________________
Reaper5, Win10Pro, Ryzen 5950x/64GB, RME UFX/BabyFace Pro, Behringer X-Touch
- my true 'global' (project-tab independent) Send/Receive FX
- my Behringer X-touch mods + XCtrl mode for CSI (coloured scribble strips!)
DeBased 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 03:20 AM.


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