Improvements To Handle AU Parameter Ranges

[quote=“andrewsimper”]I’ve already played this game in detail and have a product in the field implementing all this. You cannot define custom non-linear mappings in AU, so you are always best off mapping to 0 to 1 apart from enumerated types, which you map from 0 to count-1. All you need to do is add string arrays for the enum types, and to the string to value and value to string conversions. The minimal interface I could come up with to do this is below where every param is either a float, an enum with 2 values (bool), or an enum with more than two values (indexed).

You have a converter class for each parameter to do the actual conversions:

A couple of delegation functions in the juce_AudioProcessor.h
[/quote]

Hi Andrew,

I have been implementing this code in my own framework today. The implementations in my own AudioProcessor class are working well (I’m using them to read/write values to and from the GUI), but the modifications I have made to juce_AU_Wrapper.mm have resulted in various permutations of the spinning wheel of death. 2 questions:

  • What version of Juce are you using for your work? 1.53, tip, other?
  • Could you post your juce_AU_Wrapper.mm file?

Thanks,

Sean Costello