Trigger metasoundsound with a button widget

Hi!

I’m trying to create an widget instrument with MetaSound for a project, I already know how to control the float parameters thanks to the Sound FX Guy on youtube but I can’t do the approach to buttons

Basically the idea is to reproduce a musical instrument, you press the button and then a sound trigger, you release, the sound goes away, I was trying to associate the press and release to a trigger switch in metasound but it didn’t worked that well…

I’m trying to remake an old project of mine: Periodic 1.0.zip - Google Drive

But instead of using .wav files, I want the native synth.

Thank you very much!

Hello!

If I’m understanding what you’re trying to do, then I think it would look something like this:

This is in the Widget BP, where I’ve set up a MetaSound to play when the button is pressed, and the sound will stop when the button is released. You can pass whatever inputs your MetaSound needs when you spawn the sound, and then when you want the MetaSound to stop you can just use the Stop function on the MetaSound’s audio component.

Let me know if that doesn’t address your needs—hope it helps!

1 Like

Hello!

This is so much simpler than my setup, it worked wonders!

Thank you so much

1 Like