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
text controlled by CheckUpdateGUI param
No permission to create posts
February 22, 2017
2:00 pm
Avatar
Gwen
Member
Members
Forum Posts: 32
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

hello !

on minisynth project i actually use ON/OFF or SWITCH ON/OFF button with CheckUpdateGUI to create internal presets (all my synth controls has params). example of chorus:

case 3076 | 3077: // 10 + 01
{
if (fValue == SWITCH_ON)
{
GUI_PARAMETER param18 = { 0 };
param18.uControlId = 42;// chorus ON
param18.fActualValue = ON; // on
guiParameters.append(param18);

etc. ...

 

i also want to add text param that show for each case a different text.

for example with this case 3076 | 3077 (The first preset called preset 11) i would like to show on GUI the text : "11"

How to do this ? How to implement this with TextLabel GUI ?

text is not linked to param. Just show a text for each case (here 3076 | 3077)

 

thanks.

 

Gwen

February 22, 2017
2:37 pm
Avatar
W Pirkle
Admin
Forum Posts: 140
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

You might want to look at Technical Note 5 which I just released a few days ago. Another user wanted to implement a MIDI Learn feature, which required a Custom View text label to display the MIDI note number that was hit:

http://www.willpirkle.com/rack.....nts/#TECH5

- Will

February 22, 2017
4:49 pm
Avatar
Gwen
Member
Members
Forum Posts: 32
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

hello will !

good tuto but that's not that i want. but Have I ever told you how stupid I am?

i just wanted to show text ?

so i did:

control name: Patches

data type: Integer

variable: m_nPatches

low limit: 11.000000 // for patch 11

high limit: 88.000000 // for patch 88

after that in the checkupdateGUI:

for patch 11:

GUI_PARAMETER param29 = { 0 };
param29.uControlId = 114;// Patches
param29.fActualValue = 11; // patch 11
guiParameters.append(param29);

 

for patch 12 (i think you already understood)

GUI_PARAMETER param29 = { 0 };
param29.uControlId = 114;// Patches
param29.fActualValue = 12; // patch 12
guiParameters.append(param29);

and finished with an GUI edit label linked to "Patches" variable.

 

That's it ! 😀

June 24, 2017
9:56 pm
Avatar
Skyler
Member
Members
Forum Posts: 47
Member Since:
November 17, 2015
sp_UserOfflineSmall Offline

Hey, I have a similar question.

 

I currently have a switch container controlled by a knob enum, and that enum being updated whenever another knob is being clicked (the enum knob is not on the gui, allthough this has not made a difference in it workinging).  How do you send this update within the checkGuiupdate function?

I have the switch container in a custom view, I am trying to flag the view as view container as dirty in hopes that it will update the container whenever a knob is updated, but this has been in vein.

 

I don't know if there is a way to redraw a VC, or how to redraw a view container for the purposes of redrawing a UIswitchcontainer.  

June 25, 2017
12:56 pm
Avatar
W Pirkle
Admin
Forum Posts: 140
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

OK, this is not too difficult to implement. From your email, it sounds like you are doing things correctly in creating a dummy tab controller GUI item (a knob?) in RackAFX to receive the updates. I think your problem is that you can only use certain VSTGUI4 GUI items as a tab controller; the CAnimKnob is not one of them. I do note this in the video at about 1:35, though since that video was produced, the VSTGUI developers added another control that can be used for view switching called CSegmentButton. For completeness here is a step by step version:

1. create a tab controller GUI item in RackAFX that is linked to a UINT and give it an enum string that has exactly the same number of items as the number of VCs you want to switch; e.g. if there are 3 VCs to switch then the enum string might be "zero, one, two" (no quotes of course)

2. in the GUI Designer, link the UIViewSwitchContainer to the control ID of this new control

3. in the GUI Designer, add a tab-control-able GUI item to the main view; the easiest will be either a COptionMenu or a CSegmentButton, and link this control to your tab control ID value -- this sets up the tab switcher; I am guessing this was your problem as you tried to use a knob. This control MUST be on the GUI to work (but you can hide it in 5. below)

4. in checkUpdateGUI( ) when a knob moves, send the update to your new control from step 1. If the 2nd VC needs to be shown, then the GUI_PARAMETER's fActualValue would be 1.0 -- this will do the view switching

5. if you don't want the user to see your tab control GUI item, then make it a custom view, and in the GUI_DID_OPEN message reply in showGUI( ) call setVisible(false) on the control to hide it.

That's it - I did a quick test to make sure it works though I didn't take the time to hide the COptionMenu I used as the tab controller.

Lastly, the way to force a GUI control to redraw itself is to call the invalid( ) method on it, but in your case I don't think that will help as I believe it had to do with using a knob as the tab controller. 

- Will

June 28, 2017
4:13 pm
Avatar
Skyler
Member
Members
Forum Posts: 47
Member Since:
November 17, 2015
sp_UserOfflineSmall Offline

Thanks for the info Will,

It works flawlessly!

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online: W Pirkle
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Derek: 41

Peter: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 478

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 29

Topics: 479

Posts: 1870

Newest Members:

certvalue111, sobhana s, sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 140

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