Page 1 of 1
Posted: 18 Apr 2011, 05:55
by woodslanding
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
Posted: 18 Apr 2011, 09:37
by mat
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 ...
Posted: 18 Apr 2011, 10:43
by 23fx23
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..
Posted: 18 Apr 2011, 20:34
by woodslanding
Set commatext?? So you can rename VST presets from within usine?? That's useful!
Posted: 18 Apr 2011, 21:49
by senso
Yes this can be done with a Script/IML. A job for 23fx?

Posted: 18 Apr 2011, 22:07
by 23fx23
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?

Posted: 18 Apr 2011, 22:54
by senso
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?

Posted: 18 Apr 2011, 23:00
by 23fx23
wwwaaa killing fast

coooool thhhhhxxxxxx!!!!!
Posted: 20 Apr 2011, 08:17
by woodslanding
awesome!
anybody have an example pat to post??
Posted: 20 Apr 2011, 17:12
by 23fx23
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
Posted: 26 Apr 2011, 10:20
by woodslanding
Thanks, I'm looking forward to trying this out!
Posted: 03 May 2011, 01:18
by woodslanding
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
Posted: 03 May 2011, 04:00
by 23fx23
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?
Posted: 03 May 2011, 04:39
by woodslanding
Do you need to escape the quotes? I don't know how to do that for IML....
Posted: 03 May 2011, 07:35
by senso
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
Posted: 03 May 2011, 16:31
by 23fx23
ah ok, didn't thout about using set value. cool thanks olivier!
Posted: 03 May 2011, 16:38
by woodslanding
I get this:
process msg : SetValue PROGRAMS "comma text" TEMP
Invalid internal message : SetValue PROGRAMS "comma text" TEMP
Posted: 03 May 2011, 19:46
by senso
oops it's
Code: Select all
set_Value
Set_Value PROGRAMS "comma text" TEMP
with underscore...
Posted: 03 May 2011, 20:58
by woodslanding
now I get:
process msg : SET_VALUE PROGRAMS "comma text" COMMATEMP
Var not found :"comma text"
Can't Set Value : PROGRAMS "comma text" COMMATEMP
Posted: 03 May 2011, 20:59
by woodslanding
okay, there are not supposed to be quotes around comma text.
works now!