Welcome to %s forums

BrainModular Users Forum

Login Register

Issue with WKP-level preset storage

I need help on a Patch
Post Reply
woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 09 Nov 2017, 08:11

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
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 09 Nov 2017, 12:38

You have to not only rename, but also save racks under different names.
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 09 Nov 2017, 16:48

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.
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 09 Nov 2017, 17:12

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...

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 10 Nov 2017, 17:51

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....
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 11 Nov 2017, 16:40

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
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 11 Nov 2017, 16:53

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
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

Post Reply

Who is online

Users browsing this forum: No registered users and 84 guests