Adding XYPad for Audio Units (&AAX) | Getting Started with ASPiK | Forum

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 Topic RSS sp_TopicIcon
Adding XYPad for Audio Units (&AAX)
Avatar
Member
Members
May 8, 2020 - 7:45 pm
Member Since: April 29, 2020
Forum Posts: 20
sp_UserOfflineSmall Offline

Hi

 
I am trying to include an XYPad in my GUI with ASPiK.
 
I made it with two double parameter with index numbers 14 and 15, CustumViewName TrackPad_X14_Y15
 
In Mac VST3 everything is fine.
 
In Audio Units it works but the values from the two parameters, that I can use, are not passed to the automation.
 
I know how to make a custom view, but not a custom control. I don’t know how to use CXYPadEx to correct that.
 
As soon as I create the userView like that below, nothing works any more. Has anybody experience with the subject?
 
 
CView* PluginGUI::createUserCustomView(std::string viewname, const CRect rect, IControlListener* listener, int32_t tag)

{

    if (viewname.compare("TrackPad_X14_Y15") == 0)

    {

        // --- create our custom view

        return new CXYPadEx(rect);

    }

 

Avatar
Admin
May 9, 2020 - 11:22 am
Member Since: January 29, 2017
Forum Posts: 689
sp_UserOfflineSmall Offline

The code for handling the XY Pad and decoding the custom view name is already set in the PluginGUI.cpp file. You do not need to add any code to createUserCustomView( ) and you do not need to create a custom view for it.

The XY Pad Custom control is already defined in ASPiK and you can find it in the customcontrols.h file.

The built-in code for creating the XY Pad is in the PluginGUI::createView( ) function. Here, you can see how it associates the two parameters with the control, and without a subcontroller (which is the Steinberg method, but relies on VST3 parameter binding). 

So, let the built-in code do its thing and it will bind the variables and controlIDs for you.

Will 

Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 56

Skyler: 48

StevieD: 46

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

Nickolai: 43

clau_ste: 39

jeanlecode: 37

Member Stats:

Guest Posters: 1

Members: 768

Moderators: 1

Admins: 6

Forum Stats:

Groups: 13

Forums: 42

Topics: 842

Posts: 3347

Moderators: W Pirkle: 689