Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
One control, two functions.
No permission to create posts
April 10, 2016
4:23 pm
Avatar
saltline
Member
Members
Forum Posts: 8
Member Since:
November 27, 2014
sp_UserOfflineSmall Offline

Hi all,

I've been playing around with the tabbed GUI editor and have to say it's a welcome feature. I wanted to know if it's possible to have the buttons controlling the tabs also control other parameters at the same time e.g. I have a delay that has several different time settings (comb, free and sync). I want to change the graphic of the time knob by using the tab function which is not a problem but I want the same button to set the state of the switch to one of the three selections. I hope that makes sense.
Am I able to do this in the XML file when working in RackAFX or is this something I would have to do directly using make VST?

Thanks Ted.

April 10, 2016
4:43 pm
Avatar
saltline
Member
Members
Forum Posts: 8
Member Since:
November 27, 2014
sp_UserOfflineSmall Offline

Apologies, I haven't yet been through the GUI modules. I'll see if my answers are there first.

April 11, 2016
12:45 am
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

In v6.6.4.1 the (easy) way to do this would be to create a dummy control in RackAFX that has the enumerated UINT datatype. You can then use that control as your Tab Controller ID value. You would need to give it the same number of enumerated items as you have views to switch. When the Tab is selected, it will not only change the view but will also call your userInterfaceChange() function, and there is where you can do other stuff - by changing underlying variables and calling sendUpdateGUI( ) you can move knob positions, turn buttons on/off, etc...

If you use one of the built-in Tab Controller ID values (there are 32 of them) then userInterfaceChange() won't get called.

In the current development version v6.7 (with the new UI front end), I have added the ability to use your own "user variable" of the VSTGUI type (float from 0.0 to 1.0). You can then assign it as the tab controller. The only thing this changes is that you don't need a dummy control, just a "user variable."

v6.7 also uses the new VSTGUI4.3 which has a new control called CSegmentButton that makes Tab Controllers very quickly. You don't need any special graphics (unless you want them, in which case you would need to use the Custom View paradigm). These controls can be used as radio buttons or tab-controllers. You can see that new control on the new RAFX UI on the right side here: [Project Audio Analyzer etc...]

http://www.willpirkle.com/stuff/RAFX%20s6%20Mode.png

Hope that helps.

BTW, the new version corrects an issue in VST2/3 what you brought up several months ago where there are strings prepended to the control names when you use the generic GUI editor in VST2/3 clients. It said "RootUnit blah blah blah" - that is also fixed in the current dev version. If you want to beta test it, contact me for the password.

- Will

April 11, 2016
1:14 am
Avatar
saltline
Member
Members
Forum Posts: 8
Member Since:
November 27, 2014
sp_UserOfflineSmall Offline

Thanks for the quick reply Will. I'll give it a go and see if I can get it working. Thanks for the advice and constant updates of your software.
Ted

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Peter: 41

Derek: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 476

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 30

Topics: 482

Posts: 1876

Newest Members:

sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 143

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 143