tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Oct 13, 2016 16:16:52 GMT
Retrigger Percentage I have a problem with Trigger Percentage. I checked it in different ways, but after 2 hours of checking my brain had become soft. Some time ago, when I tested Master Audio I made a solution that allowed me to control the spacing between the random choosed sounds. Now I wanted to take advantage of this solution but it does not work. And I swear, I did the same, seriously! :-D I have FSM: - State1 is a trigger responsive to the position of the player - If a player is in the right place it goes on. - Pause allows to define the intervals between subsequent sounds. - ChodnikN plays the sound and then returns to the start, so if the condition is true the loop is restarted. and group settings: The problem is Trigger Percentage in group settings. No matter what value I set the sound is reproduced identically every time. Only one sound is played, and only after completing another sound is played. Earlier, I could play sounds partly overlapping. Now that is not possible. Give me a clue please.
|
|
|
Post by DarkTonic Dev on Oct 13, 2016 20:02:07 GMT
I just did a test and Retrigger Percentage still works...although I am not sure why it matters in your case.
You have 3 voices for this Sound Group as shown in your screen shot (Voices / weight field is 3). Only after all 3 are busy playing at the same time and a 4th request is made will Retrigger Percentage come into play normally. And then it will "steal" one of the voices away for the new caller.
Is that your understanding of how it's supposed to work?
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Oct 14, 2016 7:31:41 GMT
Thanks, I understood idea of Retrigger Percentage.
I gave a value 1 for Voices but nothing changed. What else can I do?
|
|
|
Post by DarkTonic Dev on Oct 14, 2016 16:48:28 GMT
What's the specific problem you are having?
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Oct 14, 2016 17:31:44 GMT
The problem is that only one sound is played at once. Another sound is playing only after completing earlier sound.
As I said: I tested Trigger Percentage before and it works. Now I have a clean project and I can not play several sounds at once from the selected group. The only change that I installed RTVoice but it probably does not affect Master Audio?
|
|
|
Post by DarkTonic Dev on Oct 14, 2016 18:17:04 GMT
Well that doesn't make any sense why that would happen. You have 3 voices available. I was not able to reproduce what you are seeing.
No idea about RTVoice but I would guess that makes no difference.
You would need to send me a project to examine what is going on.
|
|
|
Post by DarkTonic Dev on Oct 14, 2016 19:13:17 GMT
Actually, turn on Log Sounds for that Sound Group and look at what it prints in the Console window. That may give me or you a clue.
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Oct 15, 2016 11:57:52 GMT
Thanks for clue! I have checked Log Sounds and that's what I have got in the console (cueing and below refilling). Maybe this will help, because I do not have any idea :-|
|
|
|
Post by DarkTonic Dev on Oct 16, 2016 5:59:27 GMT
The log says it's actually playing all 3 variations, at different times. There was no logging there saying that the voices were busy or anything. Check the active voice count on the mixer view and see if it says 1, 2, or 3 and make them loop if you need to, just to verify.
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Oct 16, 2016 9:28:21 GMT
Thanks! I do not know if you mean this view from my print screen , but there is always one active voice in Total Active Voices. Sometimes is zero for a short while. When I select Loop Clip in one of the sound variation effect is infinite playing of that particular variation, no other sound is playing. I do not if there is another place where to select "loop". I already clicked everywhere but did not find.
|
|
|
Post by DarkTonic Dev on Oct 16, 2016 21:57:46 GMT
Right, if it's always one, then your sound effect must be short enough that the previous one has stopped when the next one plays. But it still will play all 3 Variations before starting over at the first again.
I still don't see any weird setting. If you set the Variation to loop, you should be able to get the voice count to 3 since it won't stop automatically (since it loops). Let me know if that doesn't happen, but I have no more hints if you think it's still not working properly.
To get any further you'd need to send me a project.
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Oct 17, 2016 7:36:42 GMT
Thanks for the explanation, it may be easier when I ask otherwise - can you suggest how to do that:
- The sound is played at random from one group - Every sound is played every X seconds, and this gap may be shorter than the length of the sound, making the sounds overlap.
Edit:
I askbecause the solution I prepared and described at the beginning of this thread does not work.
FSM nicely circulates the loop but the following sound always waiting for the end of the previous sound.
|
|
|
Post by DarkTonic Dev on Oct 17, 2016 16:10:26 GMT
That functionality doesn't even exist in the FSMs we include (what you're describing it does). There is no "wait until end of sound and then play another" custom action.
So again, if this is happening, you will need to send me a project to examine.
It should be working properly and your Console logs do not show otherwise.
|
|
tom
New Member
Posts: 44
Posts: 44
|
Post by tom on Oct 20, 2016 22:15:44 GMT
After a short conversation with Brian my FSM works as it should. I paste below a summary of what was the problem, maybe it could someone come in handy in the future.
Brian: I took another look. It is your FSM. You are using the Play Sound With Event custom action, which does wait until the sound is done being played to go the next FSM event. That's why. So yes in this case Retrigger Percentage will do nothing because every time you play a sound there are already no other sounds playing. You can use the Play Sound custom action instead and it will not wait.
Me: Many thanks for your patience! Yes, the problem was where you have pointed. I changed it to Play Sound custom action and added an event to close the loop. That's why at the beginning I used Sound Play With Event because I could not do the loop. When you wrote it dawned on me that I can use the Send Event custom action and do the loop. Again thank you very much!
|
|
|
Post by DarkTonic Dev on Oct 20, 2016 22:52:41 GMT
Glad we got it figured out.
|
|