I have a Gig file with 3 rackspaces for the Cory Wong Archetype, one for each plugin format (AU, VST, VST3).
I have written a script to update the widgets in the rackspace when plugin parameters change (usually by switching presets in the plugin).
The script works properly with the VST and VST3 plugins. However, the AU plugin becomes stuck in an un-ending loop after switching the preset the first time.
Here is the script for the AU rackspace.
var CORY_WONG : PluginBlock var W4, W5, W6, W7, W9, W25, W26, W27, W31, W35, W54, W57, W58, W64, W66, W68, W70, W71, W72, W74, W89, W92, W103, W107, W108, W111, W115, W116, W117, W119 : widget var WIDGET_ARRAY : Widget Array = [W4, W5, W6, W7, W9, W25, W26, W27, W31, W35, W54, W57, W58, W64, W66, W68, W70, W71, W72, W74, W89, W92, W103, W107, W108, W111, W115, W116, W117, W119] var PARAM_ARRAY : Integer Array = [4, 5, 6, 7, 9, 25, 26, 27, 31, 35, 54, 57, 58, 64, 66, 68, 70, 71, 72, 74, 89, 92, 103, 107, 108, 111, 115, 116, 117, 119] // Set widget to match plugin parameter change On ParameterValueChanged(parameterNumber : integer, parameterValue : double) from CORY_WONG var i : integer for i = 0; i < Size(PARAM_ARRAY); i = i + 1 do if PARAM_ARRAY[i] == parameterNumber then SetWidgetValue(WIDGET_ARRAY[i], parameterValue) end end End
The only difference in the script of the other rackspaces are the parameter numbers and widget names.
I have attached a short video of the un-ending loop.