0
0

Hi FMODers,

I am curious about how to query and/or modify parameters of various DSP Effects added to an Event in FMOD Designer. So, the situation is (like): I have a .fev file that contains various events (groupped) and I load it and play events in my program. I have added a Distortion effect with user-defined envelope to some of these events and I want to regulate their "Level" parameter in the source code to dynamically adjust it in run-time.

As far as I have discovered this topic, I have found that when an event loaded, I can reach the ChannelGroup that contains it; by this, I can reach the DSP Head assigned to this ChannelGroup and enumerate all the effects attached to the event.

However, the parameter values I can get by this method do not seem to be the same as I have defined in the Designer (e.g. Distortion Level is lower than expected) and against the fact that I set a new value for Level (and I have a positive confirmation about it by reading back the new value!), I cannot experience any changes in the sound of the played event.

Another interesting observation (for me): when I enumerate DSP effects attached to an event and ask whether it is active, I always get "no". Also, when I call getNumParameters() for a ChannelGroup I got and FMOD_OK and a huge number for the number of parameters.

Did I miss/misinterpreted something or I use something wrong?

Please, answer me. Thanks for your replies, in advance.

  • You must to post comments
0
0

You’re not meant to change stuff like this in code. If you use FMOD Designer then create an effect curve and simply call EventParameter::setValue to set where on the curve you want to be. Look at the "distortion" event in "examples.fdp".

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.