Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 07-02-2019, 01:02 PM   #1
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,175
Default API functions for setting learned plugin parameters

Hi,

Another request that I think would benefit scripters and open a whole new level to using controllers with Reaper.

Simply an API to set unset learned plugin parameters.

eg:

TrackFX_Learn(track, fxnum, param, midichan, msgtype, mode, flags)

- learns controller mapping to fx parameter.

TrackFX_UnLearn(track, fxnum, param)

- unlearns all assignments to param.

and maybe an additional:

MidiLearn_UnmapAll()

Having this available (not using the chunk - too slow on many sample instrument tracks - especially when you may have duplicate mappings across plugins) - we could create scripts (like Smart Knobs) - which can directly map to plugin parameters (and not rely on doing the parameter setting through the script which loses resolution) and have dynamic assignments making the controllers more versatile.

I know this can already be done using the track chunk - but if you have Kontakt or similar on a track - using the chunk really slows things down.
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is online now   Reply With Quote
Old 07-02-2019, 05:02 PM   #2
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,067
Default

Huge +1, since I’m using a lot of Kontakt.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is offline   Reply With Quote
Old 07-03-2019, 09:05 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

How big are the StateChunks usually, when you use Kontakt?
__________________
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 07-04-2019, 08:48 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,629
Default

@devs:

Alternatively, as I'm already in the process of making functions to do that, I would suggest Get/SetFXStateChunk-functions for TrackFX and TakeFX.

I think this would be much faster, as only the FXChain-related changes would be committed, not all Track-States.

If you could add them, this would help me great tons making my ParmLearn-functions fast and reliable.
__________________
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 07-04-2019, 02:30 PM   #5
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 4,175
Default

Quote:
Originally Posted by mespotine View Post
@devs:

Alternatively, as I'm already in the process of making functions to do that, I would suggest Get/SetFXStateChunk-functions for TrackFX and TakeFX.

I think this would be much faster, as only the FXChain-related changes would be committed, not all Track-States.

If you could add them, this would help me great tons making my ParmLearn-functions fast and reliable.
Yes - +1 - but I still want direct API into midi learning system.

But direct FX chunk API would be utterly fantastic for many reasons!
__________________
Projects - Reascripts - Lua:
Smart Knobs 2 | LBX Stripper | LBX Floating FX Positioner
Donate via Paypal | LBX Tools Website
lb0 is online now   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 06:51 AM.


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