Welcome to %s forums

BrainModular Users Forum

Login Register

Dynamic preset lists

Tell us what you'd like Usine to do
Post Reply
woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 18 Apr 2011, 05:55

I think I asked for this a long time ago, but I thought I'd put it on the radar again.

When I drag a combobox from the PROGRAM input on a VST module, it is populated with the preset names. It would be nice to be able to get these names as commatext to drive a combobox or what have you.

As it is, every time I add or remove presets, I have to drag a dummy combobox from the presets input, copy its contents, clear the contents of my real combo, paste the new text in, and delete the dummy.... discourages me from adding presets very often.

Not sure what data is on this output--usine generally just sees a PCH number. But maybe there is a way to make this output do double duty as a commatext output somehow? Otherwise, I guess you'd just need an actual commatext PROGRAMS output. But maybe this is not a compatibility problem, since the PARAMS in/out has recently been added?

Or maybe there's a way to get this data via IML, since there is a template that does it????

[edit]
Okay, looks like it's not just a simple template, so I don't know how to look into it further..... maybe this is behind-the-scenes magic?

-e
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

mat
Member
Posts: 57
Contact:

Unread post by mat » 18 Apr 2011, 09:37

thanx for this post. i always was wondering why i am not able to make some kind of "loop" from out to in to make it refresh the list. so: lots of ctrl+A ctrl+x ctrl+a ctrl+v ...
thinkpad t61, xp 32bit, 2gig ram, rme multiface // acer timelinex 3820t, win7 64bit, 4gig ram, NI komplete audio 6 // reaktor, battery, nuendo // roland hpd15

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 18 Apr 2011, 10:43

maybe something could be done via iml if GET_COMMATEXT would be implemented?
actually SET_COMMATEXT works, but in this case would need to get..

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 18 Apr 2011, 20:34

Set commatext?? So you can rename VST presets from within usine?? That's useful!
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 18 Apr 2011, 21:49

Yes this can be done with a Script/IML. A job for 23fx? :D

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 18 Apr 2011, 22:07

yes, but unfortunately the GET_COMMATEXT seems not activated in IML. while SET_COMMATEXT does work no??

we could certainly set the list, but we would need to get it first. any chance to make GET possible?

A job for senso? :P

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 18 Apr 2011, 22:54

the GET_COMMATEXT is now implemented (5.50.58 and above).
GET_COMMATEXT modulename terminalname destvariable

Get the values of a listbox items and store it in destvariable. A comma text is a list of possible values separated by commas.

GET_COMMATEXT Listbox1 list value
But by definition works only with list/comoboxes, Typically the 'program' parameter of a vst.

is it faster enough? :P

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 18 Apr 2011, 23:00

wwwaaa killing fast :D coooool thhhhhxxxxxx!!!!!

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 20 Apr 2011, 08:17

awesome!

anybody have an example pat to post??
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 » 20 Apr 2011, 17:12

we have to wait next build do get,
but if you create a combobox, name it ie 'COMBO' then if sending IML message:

SET_COMMATEXT COMBO listinputname 'a,b,c,d' (list input name is not the comma, it's the list pin)

then with get later we will be able to do stuff like :

GET_COMMATEXT MYCOMBO listinput COMMATEMP
SET_COMMATEXT MYVST program COMMATEMP to copy a listcomma to pgm list of vst

or in your cases you will be able to refresh the list when pgm changed:
GET_COMMATEXT MYVST program COMMATEMP
SET_COMMATEXT MYCOMBO listinput COMMATEMP, or
SET_STRING_VALUE MYCOMBO 'comma text' COMMATEMP

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 26 Apr 2011, 10:20

Thanks, I'm looking forward to trying this out!
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 » 03 May 2011, 01:18

I am close to getting this working. I seem to be getting the program text okay, but I'm not succeeding in writing it to the combo.

I just get the literal string value for the variable COMMATEMP

http://www.sensomusic.com/forums/upload ... matext.pat

help?

thanks!
-e
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 » 03 May 2011, 04:00

mm i fail too, the set seems to work, the get work and display the list when tracing,
but the variable seems not a string but 'evt' type and can't get it pass from get to set.
maybe there is something to do with quotes or i don't know...

any idea olivier?

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 03 May 2011, 04:39

Do you need to escape the quotes? I don't know how to do that for IML....
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 03 May 2011, 07:35

ok I understand,
actually to set the value of a listbox from a vst program list you must enter :

Code: Select all

get_commatext VST program st
set_Value LB "comma text" st
it's a "set_value" instead of 'set_sommatext".

But in the next version, a more friendly syntax will be allowed:

Code: Select all

get_commatextVST program st
set_commatext LB list st
It mean a compatibility between strings and events inside the IML

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 03 May 2011, 16:31

ah ok, didn't thout about using set value. cool thanks olivier!

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 03 May 2011, 16:38

I get this:

process msg : SetValue PROGRAMS "comma text" TEMP
Invalid internal message : SetValue PROGRAMS "comma text" TEMP
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 03 May 2011, 19:46

oops it's

Code: Select all

set_Value

Set_Value PROGRAMS "comma text" TEMP
with underscore...

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 03 May 2011, 20:58

now I get:

process msg : SET_VALUE PROGRAMS "comma text" COMMATEMP
Var not found :"comma text"
Can't Set Value : PROGRAMS "comma text" COMMATEMP
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 » 03 May 2011, 20:59

okay, there are not supposed to be quotes around comma text.

works now!
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 56 guests