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
Vector Joystick Assignment
No permission to create posts
October 10, 2015
4:15 pm
Avatar
zoki665
Member
Members
Forum Posts: 10
Member Since:
September 27, 2015
sp_UserOfflineSmall Offline

Hi Guys!

I'm putting the finishing touches on an experimental plugin and was just wondering how I can assign the Vector Joystick to manipulate parameters already in the plugin.

For example, if I wanted to assign the X - Axis (or ACMix as it's listed) to control the Pan parameter (which has values from -1 to +1), how would I link them up? I've read that the Mix parts of the function spit out a value of 0 ---> 1, I'm just not sure how to make use of that info.

Help! SmileSmileSmile

Z

October 10, 2015
5:38 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

Hi Z

The joystick is one of the only controls that does not link directly to an underlying variable in your plugin (the only other controls that behave the same way are the assignable buttons, B1 - B3).

The joystick delivers its control change information to:

joystickControlChange(float fControlA, float fControlB, float fControlC, float fControlD, float fACMix, float fBDMix);

And, yes the AC and BD mix variables are 0 --> 1; in order to map them to a variable, you need to convert the unipolar value to the range of values you need for your control. The easiest way to do this is to call the built-in helper function (from pluginconstants.h)

inline float calcDisplayVariable(float fMin, float fMax, float fVar)

This function converts a normalized (0 -> 1) value in fVar to a mapped value for your control, You supply the fMin and fMax values for your particular control, in this case it would be fMin = -1 and fMax = +1

Perhaps a simpler option would be to use the Trackpad (aka XYPad) in the GUI Designer. You can select the two variables to map to X and Y and the conversion is all done automatically for you.

The Vector Joystick is really there for synthesis plugins that want to incorporate vector mixing from the Korg Wavestation and Sequential Circuits Prophet VS family of synths.

- Will

October 10, 2015
5:45 pm
Avatar
zoki665
Member
Members
Forum Posts: 10
Member Since:
September 27, 2015
sp_UserOfflineSmall Offline

Will,

Awesome answer, as always!

I was actually intending on using the XY-Pad, but I wasn't sure if that and the Joystick were one and the same since their properties look similar.

I'll give this a go right now and let you know what happens. Thanks so much! Smile

Z

October 10, 2015
5:54 pm
Avatar
zoki665
Member
Members
Forum Posts: 10
Member Since:
September 27, 2015
sp_UserOfflineSmall Offline

I'm an idiot for not trying that in the first place, worked like a charm. Thanks Will!

I have one final question while we're on the subject. Is it possible to import a custom image for the XY Pad, or to change the Background and Puck to images outside RackAFX? I've rendered a custom grid and would really like to use it instead of the current scheme that's in place.

Z

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online:
2 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