View Single Post
Old 08-07-2019, 06:34 PM   #3820
Geoff Waddington
Human being with feelings
Geoff Waddington's Avatar
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 5,127

Originally Posted by MixMonkey View Post
The indicies are always the same though, right? (every time the same plugin is loaded) and you're sure that they just start at zero with the first name in the FX Param list and increase by one with each parameter? I guess they could be output with the names by FX Param as a check.
Yup, always the same unless the manufacturer changes the FX

Here's the actual code that generates the list:

for(int j = 0; j < DAW::TrackFX_GetNumParams(track, i); j++)
    DAW::TrackFX_GetParamName(track, i, j, fxParamName, sizeof(fxParamName));
    //DAW::ShowConsoleMsg(("\n" + string(fxParamName)).c_str());
    rawFXFile << "\n" + string(fxParamName);
As you can see, it is definitely zero based, and definitely index based (j = paramIndex).

Also realized we don't need FX Name anymore.

You just have to output the index and then either the name or the alias, if present.
Beta software Donate
Installation / documentation / source

Last edited by Geoff Waddington; 08-07-2019 at 06:40 PM.
Geoff Waddington is offline   Reply With Quote