I have this Lua code module, to fill up the first 16 A slots in the slot rack, in my program:
defineParameter(“loadedPatch”, “The Loaded Patch”, “init”, nil)
–Load it into the slots
for t=2, 16 do
All is well when I load the patch the first time, and it’s placed into the first slot in the program table and into the 16 A slots in the slot rack!
When I load another program, with the same script, the program is automatically loaded into the next slot of the program table, instead of replacing the already loaded and selected program!!???
When I out-comment the loop for loading the program into the slots, the program does gets replaced in the program table, but of course only 1 slot filled?!
(I tried with this.parent, this.program, … no change )
I hope I’m a bit clear?