Page 1 of 1

Posted: 09 Nov 2017, 08:11
by woodslanding
My wkp consists of a couple of racks of master control, and then 15 racks which function as mixer channels. Each hosts a vst in its 3rd slot, and I've created a mechanism where vsts can be loaded as patches. Otherwise each mixer channel rack is identical. Each is called vsthost.rack.

The problem is that I think wkp preset recall is storing data under the rack NAME rather than rack NUMBER, because when I save a mixer with different vsts in each channel, upon recall, the settings for the 15th channel are loaded into every channel rack.

I've tried changing the title of the racks, based on their number, (VST-1 through VST-15) but that does not help.

Any thoughts of how to work around this?

thanks,.
-eric

Posted: 09 Nov 2017, 12:38
by x.iso
You have to not only rename, but also save racks under different names.

Posted: 09 Nov 2017, 16:48
by woodslanding
alright. then I have another patching question:

what would the IML look like for 'save rack x as file xyz?' Since I am constantly updating these channels, and reloading them via script, maybe I can save them the same way?

Otherwise, I may want to write a script to save the actual preset data. I'm thinking IML to query the values of each control and write it to a text file. Anyone know the IML for that? I know how to set values via IML, is it possible to read them as well?

In a way I prefer this method, as I will get a readable text file that I can edit, with only the values I want saved. Also, if there is a recall order that needs to be enforced, I will have control over that.

Posted: 09 Nov 2017, 17:12
by 23fx23
for 2nd question, i don't have the syntax here but yes its possible, tho if i recall correctly, you d have to request the value via iml, set it to a temp variable in iml, reapply back to your script input via iml, then the script would write the datas to text file. so thats ok for low amount of datas, but for large amount i don't think it will be fast/efficient, if so personally id rather prepare an array in the vst patch, send it to a buss, on the other end your script collect back the array then write to file and vice versa. but prob easier to save the rack directly if possible, never tested tho...

Posted: 10 Nov 2017, 17:51
by woodslanding
well, I'm not saving a lot of data. about a dozen items per channel....

but I was just thinking the same thing. I could send data via buss from each channel, and collect it in one script. All numerical items as array, and all texts as a single comma text.

change rcv names to iterate through the channels....

Posted: 11 Nov 2017, 16:40
by woodslanding
Okay, I have a test patch together, but I am having a problem. The line:

SendInternalMsg2('SET_TARGET_PATCH','SENDER_PATCH');
SendInternalMsg4('SET_VALUE',tag,'1',getData(line));

Gives the error:
Var not found SENDER_PATCH
Can't find the module : SENDER_PATCH

Also, this script sometimes turns the console window background color black!

Here is the patch:
http://www.sensomusic.com/forums/upload ... etMgmt.pat

Posted: 11 Nov 2017, 16:53
by woodslanding
Never mind, found it. Forgetting strings in Pascal are referenced from 1!

This is going to be great!!!! I'll upload this to the addons when I have reading and writing to file working.

cheeers!
-eric