Playing an Audio File - MetaSound Tutorials for Unreal Engine 5
Summary
TLDRThis tutorial for Unreal Engine 5 guides users on how to play back audio samples using the Wave Player node in MetaSound. It covers setting up a mixer, connecting left and right outputs, and creating a gain control for volume adjustment. The video demonstrates triggering the playback with the 'On Play' input node and selecting a looping sound asset. The process concludes with adjusting the stereo output settings in MetaSound for a complete audio setup.
Takeaways
- 🎮 This tutorial is for Unreal Engine 5 and focuses on how to use the wave player node in MetaSound.
- 🔌 The wave player node offers more options for input and output pins compared to the sign generator.
- 🔊 The 'Play' input and 'Out Left' and 'Out Right' outputs are the primary concerns for setting up the wave player.
- 🔄 A mixer is used to connect the wave player outputs to the stereo mixer for proper audio routing.
- 📊 A gain control node, 'Wave Level', is introduced to adjust the volume of the sound while playing.
- 🔧 Initially, the volume is set to zero to prevent unexpected loud outputs.
- 🔀 The tutorial demonstrates changing MetaSound settings from mono to stereo for proper audio output.
- ⏯ The 'On Play' input node is crucial for triggering the playback of the sound asset.
- 🔁 The wave player can be set to loop the sound asset for continuous playback.
- 📀 The tutorial includes selecting a sound asset, such as 'fire', to be played back.
- 🎚 The volume is controlled using a gain control node, allowing for dynamic adjustments during playback.
Q & A
What is the main focus of this tutorial in the Unreal Engine 5 MetaSound environment?
-The main focus of this tutorial is to demonstrate how to playback samples using the Wave Player node in the MetaSound environment of Unreal Engine 5.
How do you start adding a new node in the MetaSound graph?
-You start by right-clicking in the graph and selecting the Wave Player from the list of options to add a new node.
What are the primary inputs and outputs to focus on when setting up the Wave Player node?
-The primary inputs and outputs to focus on are the 'Play' input and the 'Out Left' and 'Out Right' outputs.
Why is a stereo mixer used instead of a mono mixer in this tutorial?
-A stereo mixer is used because the Wave Player node has both left and right outputs, requiring a mixer that can handle stereo signals.
How do you connect the left and right outputs of the Wave Player to a mixer?
-You connect the left and right outputs by clicking and dragging the output pins to the corresponding inputs of the stereo mixer.
What node is used to control the volume of the sound while it's playing?
-The 'Promote to Graph Input' node is used to control the volume of the sound with a gain control while it's playing.
Why is it necessary to change the output format from mono to stereo in MetaSound settings?
-Changing the output format to stereo is necessary to accommodate the left and right outputs from the Wave Player for a true stereo output.
How is the 'Play' input of the Wave Player triggered in this tutorial?
-The 'Play' input of the Wave Player is triggered by using the 'On Play' input node, which sends a trigger or impulse when the MetaSound is played back.
What additional setting is applied to the chosen sound asset in the Wave Player node?
-The additional setting applied is to make the chosen sound asset loop continuously.
How can you select a specific sound asset to play back in the Wave Player node?
-You can manually select a sound asset in the Wave Player node by using the 'Select Asset' menu and choosing the desired sound, such as the 'fire' asset in this tutorial.
How does the tutorial demonstrate controlling the volume of the playback?
-The tutorial demonstrates controlling the volume by using the 'Wave Level' control, which is a gain control connected to the green float input of the Wave Player.
Outlines
🎙️ Setting Up Wave Player in MetaSound Tutorial
This tutorial focuses on integrating the wave player node into a MetaSound setup within Unreal Engine 5. The instructor guides the user through the process of adding a wave player node to the graph, connecting it to a stereo mixer for left and right audio outputs, and setting up a gain control for volume adjustment. The tutorial also covers the importance of the 'play' input for triggering sound playback and the need to change MetaSound settings from mono to stereo for proper output. The session concludes with the selection of a sound asset, in this case, 'fire,' and setting it to loop for continuous playback.
Mindmap
Keywords
💡MetaSound
💡Wave Player Node
💡Mixer
💡Output Pins
💡Gain Control
💡Graph Input
💡Mono and Stereo Output
💡Play Input
💡Asset
💡Loop
Highlights
Introduction to a metasound tutorial for Unreal Engine 5 focusing on playback of samples using the wave player node.
Explanation of how to add a wave player node to the graph and the various input and output options it provides.
Creating a mixer structure to connect the wave player's output pins to the left and right audio channels.
Using a stereo mixer instead of a mono mixer for handling left and right audio outputs.
Adding a gain control node to adjust the volume of the sound while it is playing.
Renaming the gain control node for clarity and setting the initial volume to zero to avoid surprises.
Connecting the wave player's output to the metasound's output by changing the output format from mono to stereo in the settings.
Triggering the wave player to play back the sample using the 'on play' input node from the metasound.
Selecting a sound asset to play back from the wave player's asset menu.
Setting the selected sound asset to loop continuously.
Demonstrating the playback of the selected sound asset with the wave level control to fade in the sound.
Controlling the volume using the gain control node connected to the float input.
Outputting the volume to the now stereo output of the metasound environment.
Overview of the completed graph setup for a simple wave player in the metasound environment of Unreal Engine 5.
Differences between the wave player and the sign generator, particularly the play input trigger.
Using the impulse from the 'on play' pin to trigger the wave player to playback the sample.
Finalizing the setup by selecting a sound asset and adjusting the volume using the wave level control.
Transcripts
hey and welcome back to another
metasound tutorial for unreal engine 5.
in the last tutorial we created a simple
sign generator and we were able to
control the volume with the mixer here
in this tutorial we'll we will show how
to playback samples using the wave
player node
so to get started let's right click in
the graph here and we'll get a list of
options of new nodes to add
we're looking for the wave player
so if we add this to our graph you'll
see there are quite a bit more options
for our input and output pins here
the ones that we are most worried about
is the play
as well as our out left and right
so i will create a similar structure
with a mixer going to an output so let's
repeat that
if i click and drag the output pin of
our audio purple colored out left pin
you'll see the options that are
available to hook into this pin i would
like to connect a stereo mixer
now that we have left and right outputs
we'll need to use the stereo mixer for
both of those those inputs rather than
the mono mixer where we just had one
so let's hook up the left and right
and finally we'll create another gain
control
in the in the float input here the green
colored inputs by clicking and dragging
i can get another list of available
nodes the one i'm interested in is the
promote to graph input so that we can
control the volume of our sound while
the meta sound is playing
so just so that we don't get any nasty
surprises let's turn the volume down to
zero
and i'll just rename this for clarity
wave player volume or level let's call
it the
looks like from up up
a
uh example that name is in use so let's
just call it wavelevel
and finally if i want to hook up the the
outputs here you'll notice that i now
have left and right outputs but in
metasound i only have a single mono
output
so to get stereo output from our meta
sound we'll have to go to the meta sound
settings
and change the output format from mono
to stereo
you'll notice now the output node has
changed we have two inputs here so let's
click and drag each of these pins to our
outputs
and finally we've completed the the
graph for a simple wave player setup
except for one little detail
the thing about the wave player that
differs a lot from the sign generator is
this little play
input here if we don't trigger the sound
it will never play back
so when we when we opened up a new meta
sound we had this little input node here
that says on play so basically when we
play back our meta sound
we will get a trigger or an impulse from
this this pin here
so we want to use that in input that
impulse to trigger our our wave player
to play back our sample so i just
clicked and dragged again from the on
play pin to the play pin
and this will play back the asset once
we press that play button
now
one more thing we haven't considered we
we haven't even chosen a sound to play
back
so we can manually select one in the
wave asset here we have a menu select
asset
let's just choose the fire asset
and finally i would like that asset to
just loop it's just going to play back
over and over and over
and let's give this a shot
so let's press the play button up here
and i will slowly fade in the sound with
the the wave level control of the gain
so as as you can see we triggered the
sound using this input node
uh the sound comes out the left and
right outputs here that are colored
purple that correspond to all audio
signals
we control the volume using this input
here the green corresponding to float
values or decimal numbers and finally
the volume was output to our now stereo
output which we changed in the metasound
options here
so that's it for this tutorial on how to
playback samples in the new metasound
environment in unreal engine 5.
Посмотреть больше похожих видео
Car controller tutorial #2: Car Engine Audio(realistic) in Unity + GitHub link
How To Make a Topdown RPG in Godot 4: Adding Menus! (Part 3)
Directional Motion Detection and Tracking using Webcam in TouchDesigner #touchdesigner #tutorial
Tutorial Setup VR Oculus Quest 2 (Bahasa Indonesia) | TriCipta
Minicurso de ReactJS - Construindo um Tocador de Audiobook - Aula 6
Configure Proxmox GPU Passthrough (Step-by-Step Tutorial)
5.0 / 5 (0 votes)