Welcome to %s forums

BrainModular Users Forum

Login Register

saving and loading value from file to control

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

Unread post by woodslanding » 21 Mar 2017, 19:41

IML can get the value of a terminal of a control and store it to a variable, but the script engine knows nothing about the value of this variable, right?

I guess I have to use IML to set an input of the script to the value of this variable.... from within the script itself? Sounds dangerously self-referential ;)

Or maybe there is a simpler way?

The reverse seems very easy... read the value from file, and set value of control via IML, very straightforward.
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 » 21 Mar 2017, 23:56

This is the way i usually do personally , iml get a value, set the temp variable, apply back to script input, script trigs next scope. does all within a script and it does work. maybe the global used usine 'temp' variable could be accessed directly witin the script that could be nice tho i suppose there is some latency involved in the process so might not be so easy

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 25 Mar 2017, 00:07

that's what I thought. Nice to get confirmation that it will work before diving in.....

Thanks!
-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 36 guests