How to load sounds into MetaSound array by time sequence?

jtoenjes
Thu, 21 Nov 2024 21:57:47 +0000
Audio

HELP!! I’m trying to build a sequencer in MetaSounds that loads sounds into an array from mesh hits in my game during one second intervals. Then I will play those sounds that have been loaded into the array sequentially in one second intervals as well.

This is how I’m conceiving the idea, but maybe there is another way to think of it:

I want to open a gate from 0-1 seconds that will pass the mesh hit to trigger a sound to load a .wav into array slot 0, and then another gate from 1-2 seconds to load a second .wav into array slot 1, then 2-3 seconds to load a third sound into slot 2, and so forth. Then, the WavPlayer will sequence through the array and play the sounds at regular intervals. if the mesh is hit during any of the time slots, the sound will load into the array in that slot and be played, but if there is nothing loaded in the array, then there will be no sound to trigger.

I have a Timeline in my BP that sends an event trigger every second into the MetaSound source, which is feeding a trigger counter that is playing sounds in sequence. But that isn’t what I need. I’m pulling my hair out to figure this out, because there isn’t a gate in MetaSounds, and there isn’t a counter in BPs. If there was a way to open a Multigate in BP by the Timeline events I would be good to go, I think? Or a way to have a trigger counter in MS route inputs to increasing array slots every second?

Anyway, suggestions, solutions, Please?!? I could do this in a heartbeat in Max/MSP but can’t figure it out in MS!!

Thanks, JT

2 posts - 1 participant