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
Button changes do not call userInterfaceChange()
No permission to create posts
October 10, 2013
10:02 pm
Avatar
airbuff
Member
Members
Forum Posts: 14
Member Since:
October 2, 2013
sp_UserOfflineSmall Offline

I have exported my project as AU project via the Make AU button. Amazing feature!

In the code, I handle GUI changes within userInterfaceChange(), which I think is the way I'm supposed to go. I'm using the "non-GUI" version.

The problem I'm having is, that buttonBanks and assignableButtons do not call the userInterfaceChange() methode when changed in the AU version. The faders do. The used member variable does alter though. So I can use the values of a button's member variable, but I do not get informed about the change.

########### Additional Info ###############
I was wrong.

I have added some debug logs. userInterfaceChange() IS actually called, but the nControlIndex differs.

October 11, 2013
1:03 am
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

Yes, the index values are re-numbered to be sequential from 0 on up. This has to be done to make the indexing correct. Both VST and AU exports work this way. The sliders are first and then the buttons after that. The re-numbering removes any gaps or blank index values from the list. This is also covered in my book Appendix A where it discusses the VST API. The basic "default interfaces" used in both VST and AU require that the index values are sequential with no gaps; RackAFX does not have this limitation.

- Will

October 15, 2013
8:37 pm
Avatar
airbuff
Member
Members
Forum Posts: 14
Member Since:
October 2, 2013
sp_UserOfflineSmall Offline

Thanks again!

October 18, 2013
4:52 am
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

In the next version I will add a comment-header that will let you know the new sequence. I am afraid if I overwrite your index values in userInterfaceChange() and you make cool and new changes, if you tried to copy the code back into your RAFX project then you'd have the wrong index values...

But you can minimize the problem by setting your sliders up sequentially, left to right in rows top to bottom.

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 36

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