Old 04-09-2019, 05:36 AM   #1
madskjeldgaard
Human being with feelings
 
Join Date: Oct 2018
Posts: 34
Default Accessing parameter links in Lua?

hello all

I'd like to write a simple script to automate some of the parameter linking that I do a lot of, but looking through the (lua) Api, I can't seem to find any mentions of parameter links. How do you guys access parameter links on fx?

Thanks
madskjeldgaard is offline   Reply With Quote
Old 04-09-2019, 06:17 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

You have to use text state chunks, I guess.
__________________
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 04-09-2019, 06:44 AM   #3
madskjeldgaard
Human being with feelings
 
Join Date: Oct 2018
Posts: 34
Default

Quote:
Originally Posted by Xenakios View Post
You have to use text state chunks, I guess.
Ah yes, I saw MPL (I think?) do something like that. Is there any kind of documentation of text state chunks out there? The apis seem to only mention them briefly.
madskjeldgaard is offline   Reply With Quote
Old 04-09-2019, 08:23 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

You can find docs for TrackStateChunks and EnvelopeStateChunks in my Reaper-Internals-thread:

https://forum.cockos.com/showthread.php?t=207635

BTW, can you post a description, how I can do the parameter-linking in Reaper? Maybe with some day to day-examples how you use them?
I might add such parameter-functions to my Ultraschall-API to make things more comfortable, rather than having to deal with the StateChunks, but I still need an practical use-case-angle on how to approach that...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 04-09-2019, 11:54 AM   #5
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

I was chunked it hardly with a bit of reverse engeneering (long time before mespotine`s docs has arrived).

All I can do is to quote Justin I agree with: "Try to avoid chunking". So good luck with it.
mpl is offline   Reply With Quote
Old 04-09-2019, 10:15 PM   #6
madskjeldgaard
Human being with feelings
 
Join Date: Oct 2018
Posts: 34
Default

Quote:
Originally Posted by mespotine View Post
You can find docs for TrackStateChunks and EnvelopeStateChunks in my Reaper-Internals-thread:

https://forum.cockos.com/showthread.php?t=207635

BTW, can you post a description, how I can do the parameter-linking in Reaper? Maybe with some day to day-examples how you use them?
I might add such parameter-functions to my Ultraschall-API to make things more comfortable, rather than having to deal with the StateChunks, but I still need an practical use-case-angle on how to approach that...

Thanks Mespotine. I will have a look at your docs!

The typical use case here for me is having several instances of the same fx on a track (let's say 3 reverbs) and then linking all of the parameters to the first fx instance's controls (with small adjustments to them) so that when I touch the mix parameter in fx1 then the same parameter changes in fx 3, etc.
madskjeldgaard 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 08:45 AM.


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