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

Avatar
W Pirkle
Admin
October 11, 2013 - 1:03 am
Member Since: January 29, 2017
Forum Posts: 470
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

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

Thanks again!

Avatar
W Pirkle
Admin
October 18, 2013 - 4:52 am
Member Since: January 29, 2017
Forum Posts: 470
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: 152

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

clau_ste: 39

Chaes: 37

JimmyM: 33

Gwen: 32

jim: 27

Member Stats:

Guest Posters: 1

Members: 648

Moderators: 1

Admins: 4

Forum Stats:

Groups: 13

Forums: 40

Topics: 695

Posts: 2674

Newest Members:

oneday, Phelan Kane, audiocoder, agel, Makai, Abyz, Nonlinear, IgorVish, Arjuna, TomMilne

Moderators: W Pirkle: 470

Administrators: Tom: 74, JD Young: 80, Will Pirkle: 0, W Pirkle: 470