0
0

Hi, is there anyway to tell if a sound event is playing it’s keyoff? I’m dealing with some looping sound effects that have a particularly long keyoff. However, the sound gets triggered to loop again, but since it’s still playing it’s keyoff it won’t play. So basically, is there anyway to check a sound event if it’s currently playing it’s keyoff?

  • You must to post comments
0
0

You could get the parameter position and check it against the sustain point. The problem being that you don’t have access to the sustain point info via the API. At least I couldn’t find it.
Two solutions to that come to mind: having your designer add the values to the event user properties (totally error prone), or precompile your FDP to add it automatically.

Open your FDP in any text editor and look for something like these:
[code:q4g9is05]
<sustainpoint>
<value>0.597926</value>
<enabled>1</enabled>
</sustainpoint>
[/code:q4g9is05]
[code:q4g9is05]
<userproperty>
<name>default</name>
<guid>{643f70bd-6fb8-4e61-a5d1-5809142e36e3}</guid>
<description>blablabla</description>
<data_float>0.75</data_float>
</userproperty>
[/code:q4g9is05]

FDPs are plain XMLs so you could just get all your sustain points and place them in the user properties before you build your FEVs. That way you can have this info in run-time without auxiliary files or hardcoded data.

  • You must to post comments
0
0

You could adjust the polyphony in designer to force the new sound to cut off the old sound, in theory.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.