UE4 - Music Changing And Layering System Tutorial

  Рет қаралды 9,054

Slightly Esoteric Game Development

Slightly Esoteric Game Development

4 жыл бұрын

A UE4 blueprint that changes the music as the player walks through trigger volumes. It's a dynamic music system that can be used to add and remove music layers during the game. This is a beginner friendly tutorial.
Cheap blueprints that'll unlock your dev potential:
✨Marketplace: www.unrealengine.com/marketpl...
✨Gumroad: jacksonnexhip.gumroad.com/
Marketplace content:
🛍️ Endless Random World Generator: www.unrealengine.com/marketpl...
🛍️ Enemy Waves Spawning System: www.unrealengine.com/marketpl...
🛍️ Simple Flying AI: www.unrealengine.com/marketpl...
#GameDevelopment #UnrealEngine4 #IndieGames #GameDev #IndieDev #Game #GameDesign #GameDevelopers

Пікірлер: 53
@esotericgamedev
@esotericgamedev Жыл бұрын
Cheap blueprints that'll unlock your dev potential: ✨Marketplace: www.unrealengine.com/marketplace/en-US/profile/Slightly+Esoteric+Studios ✨Gumroad: jacksonnexhip.gumroad.com/ Marketplace content: 🛍 Endless Random World Generator: www.unrealengine.com/marketplace/en-US/product/endless-procedural-worlds-with-level-streaming 🛍 Enemy Waves Spawning System: www.unrealengine.com/marketplace/en-US/product/1438202ce8354709bcf0764563df7d8b 🛍 Simple Flying AI: www.unrealengine.com/marketplace/en-US/product/flying-ai
@user-ek9cj3es1i
@user-ek9cj3es1i 2 жыл бұрын
this is fuking cool man, and i rencently watch an bunch of videos to resolute my music systeam,this is really helpful and inspired me.
@esotericgamedev
@esotericgamedev 2 жыл бұрын
Glad to hear it mate 😊
@issamaf80
@issamaf80 4 жыл бұрын
Great tutorial will sure come handy thx i sub to you.
@esotericgamedev
@esotericgamedev 4 жыл бұрын
you're welcome
@MrSmashmasterk
@MrSmashmasterk Жыл бұрын
You are hilarious, and brilliant! Thank you!
@esotericgamedev
@esotericgamedev Жыл бұрын
😆 my pleasure
@8DrunkenGods1
@8DrunkenGods1 3 жыл бұрын
This doesnt work for me at all. The correct music players on start but running through a collision box doesnt start music 2. Gives me lots of 'accessed none' errors too. Even adding in the print strings didnt fire, no collision seems to be happening
@Eric_Heberling
@Eric_Heberling 2 ай бұрын
Music plays index 0, but when I pass through the trigger it stops & nothing else plays. I'm getting error message saying that the Set Volume Multipliers on the MusicManager BP connected to 'ChangeMusicTo' are invalid. I see from another comment here that they made the Boolean false. For me, it just left index 0 playing. No error messages though that way.
@NephariusAMG
@NephariusAMG Жыл бұрын
15:05 Bless You
@esotericgamedev
@esotericgamedev Жыл бұрын
Thanks lol
@cvids_
@cvids_ 2 жыл бұрын
I know I'm a year late, but for the colored volumes, from what I've seen in an official project released by Unreal, they put a box as a child of the volume and put a translucent material with low opacity on it. I really don't know if there is another way to color volumes.
@curtishall8176
@curtishall8176 3 жыл бұрын
Hey dude, great tutorial. I'm having an issue with the layering where as I enter a new collision box, one audio completely cuts out when a new track begins to play, instead of layering on top of each other.
@Dave.9999
@Dave.9999 3 жыл бұрын
same here
@ostapbender1649
@ostapbender1649 Жыл бұрын
Nice tutor! But how can i get "OnAudioSingleEnvelopeValue" for one of songs from my tracklist for color vizualization on level?
@filiciaous
@filiciaous 3 жыл бұрын
DO i need to do all this in music manager or music volbp?
@Xiomz
@Xiomz 2 жыл бұрын
Is there a way to stop the first music before switching to the second?
@johnedraisa
@johnedraisa 8 ай бұрын
Does this work for a system that has 4 unique tracks? And each of those tracks can have an additional layer of sound added on?
@BitCrusher
@BitCrusher 3 жыл бұрын
Cool stuff! Would it also be possible to have the different tracks fade in to each other? And how would it work if I’d like to attach a oneshot on the change?
@esotericgamedev
@esotericgamedev 3 жыл бұрын
You could fade it by using a macro to interpolate values over time when setting the volume multiplier of the songs
@BitCrusher
@BitCrusher 3 жыл бұрын
@@esotericgamedev gonna look into that. Still quite fresh with Unreal :) Thanks ❤️
@1d33f1x3
@1d33f1x3 3 жыл бұрын
There are Fade In and Fade Out functions - I was able to quickly adapt the tutorial to have a crossfade between tracks.
@GoatOfTheWoods
@GoatOfTheWoods 3 жыл бұрын
@@1d33f1x3 Fade In and Fade Out just stop the sound alltogether for me , how did you make it work? I used Timeline and it works fading in/out like that, but no crossfade
@1d33f1x3
@1d33f1x3 3 жыл бұрын
@@GoatOfTheWoods i believe you are right, they do start and stop with the fades. It works for my purposes so far as I'm fading whole songs, not just instrument tracks. In the future I'll try to make my own fading functions for continually looping tracks.
@elfideorubio1308
@elfideorubio1308 3 жыл бұрын
The game you are creating is super trippy let me know if I can play it somehow
@esotericgamedev
@esotericgamedev 3 жыл бұрын
gumroad.com/jacksonnexhip?sort=newest#MsWtw
@jommjustonemoreminute6977
@jommjustonemoreminute6977 2 жыл бұрын
Is adding all these songs and setting them to play at 0 volume taxing on the system at all? Always looking to optimize. The full playlist will be added to memory even if we cannot hear them.
@esotericgamedev
@esotericgamedev 2 жыл бұрын
Try it and see. I’ve tried with maybe 7 songs and never noticed a difference
@TheOfficialAgNO3
@TheOfficialAgNO3 2 жыл бұрын
Hmmm the first track plays on begin, but going into the trigger box doesn't work. Seems like a few others have this issue too, any ideas? Thank you
@TheOfficialAgNO3
@TheOfficialAgNO3 2 жыл бұрын
Fixed it, I imagine its the same issue for the others in the comments. In the Music Changing Volume, make sure to set the "Get All Actors of Class" node to the "Set" node at the end. I missed that and it won't trigger the next track.
@Jimpipecigarbear
@Jimpipecigarbear 3 жыл бұрын
Got it to work, but just one thing. You got the Boolean value incorrect. Had to switch it to false in order to do the change in music.
@MatthewRumble
@MatthewRumble 3 жыл бұрын
where is the boolean value?
@nourabeiruti9798
@nourabeiruti9798 4 жыл бұрын
Is there a way to get the music to fade between the different tracks for a smoother transition?
@esotericgamedev
@esotericgamedev 4 жыл бұрын
Yeah you'll need to use the Set Volume Multiplier node, it'll need a curve and a timer to reduce the volume of one track while increasing the volume of another
@davidwoje2044
@davidwoje2044 3 жыл бұрын
@@esotericgamedev Trying to figure out what you mean by setting a curve and a timer to the. set volume multiplier node to fade in between tracks. Could you please elaborate? Thanks!!
@esotericgamedev
@esotericgamedev 3 жыл бұрын
@@davidwoje2044 you need a curve (an asset you can create in the content browser) that goes from 0 to 1 over time, and then create a timer in blueprints to measure time since the beginning of the fade. Then what you’ll do is read the time elapsed from the timer since the beginning of the fade and use it to read a value between 0 (muted) and 1 (full volume) from the curve. Hard to explain over text lol maybe one of these days I’ll have some time to make a tutorial
@davidwoje2044
@davidwoje2044 3 жыл бұрын
@@esotericgamedev Thanks for the reply and explanation. Ill see what I can do! haha. Ill subscribe to follow up!
@TNTMEKKI
@TNTMEKKI 3 жыл бұрын
can you add tutorial how to make radio music in vehicle?
@esotericgamedev
@esotericgamedev 3 жыл бұрын
Yeah probably, it’s pretty simple
@TNTMEKKI
@TNTMEKKI 3 жыл бұрын
@@esotericgamedev It is not simple for me to be a beginner
@JoseAnguloMusic
@JoseAnguloMusic 2 жыл бұрын
I'm getting this error: "Blueprint Runtime Error: "Accessed None trying to read property Current Music Ref". Blueprint: BP_Music_GP_Manager Function: Execute Ubergraph BP Music GP Manager Graph: EventGraph Node: Set Volume Multiplier" Any clues?
@esotericgamedev
@esotericgamedev 2 жыл бұрын
Did you set the sound to virtualize when silent?
@esotericgamedev
@esotericgamedev 2 жыл бұрын
If the volume gets set to 0 and that option isn't checked the sound will automatically be destroyed
@TheCatMurgatroyd
@TheCatMurgatroyd 2 жыл бұрын
how do you change the volume per track?
@TheCatMurgatroyd
@TheCatMurgatroyd 2 жыл бұрын
I'm an idiot :P answer: you double click on the specific track and can then change the music volume by itself... although I do have a weird thing happening... when I walk through the first music volume, everything is as it should... when I walk through the second one, it also works but... when I walk around (even though I'm far away from the first music volume) it changes back to it!? I don't understand why ;_;
@shakaama
@shakaama 2 жыл бұрын
I guess we have different versions. got to 9:05 and didn't have that.
@esotericgamedev
@esotericgamedev 2 жыл бұрын
It’s still there the name has just changed. Search for virtualisation mode or something like that
@shakaama
@shakaama 2 жыл бұрын
@@esotericgamedev it's a drop down menu. not a check box. so what do i select
@dawnrigel4255
@dawnrigel4255 2 жыл бұрын
I'm not following the tutorial exactly, but I've just started learning about putting background music into my own project. Instead of having the .wav audio files, I right-clicked them in my content browser and selected the option "Create Cue," which will create a Sound Cue for your song/sfx. If you open up that Sound Cue, you can edit the volume and pitch of the sound, and there is also an option to set the Virtualization Mode to "Play when Silent" under the Voice Managment section of the menu. I'm not 100% sure if that's the same feature, but it sounds like it. Not sure what makes a Sound Cue different than just using the .wav, it's just the first thing I learned about adding music, so I just went with it lol.
@Kaylum_Birrell
@Kaylum_Birrell 3 жыл бұрын
yeah mine doesnt work at all, shame
@Broockle
@Broockle Жыл бұрын
how is changing audio this complicated 😆 kill me now
@Broockle
@Broockle Жыл бұрын
actually this works really well Thanks m8 🙏
@Broockle
@Broockle Жыл бұрын
ctrl+shift+S tho doesn't save everything. I always close and open my project to make sure it saves properly lol
Nanite for Artists | GDC 2024
22:09
Unreal Engine
Рет қаралды 91 М.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН
🌊Насколько Глубокий Океан ? #shorts
00:42
Dynamic Music Layering in Unreal Engine
5:24
Slightly Esoteric Game Development
Рет қаралды 986
WWISE 2022 & UNREAL ENGINE 5 Integration : Easier Than You Think!
18:06
Brian Michael Fuller
Рет қаралды 6 М.
Randomizing Audio with MetaSounds [UE5]
9:07
PrismaticaDev
Рет қаралды 10 М.
Change Music During Gameplay in Unreal 5
9:01
ACDev
Рет қаралды 11 М.
UE4 + FMOD Adaptive Music - Simple Horizontal and Vertical System
38:23
Game Audio Guru
Рет қаралды 4,1 М.
AI Sight Detection And Chase With Music - Unreal Engine 4 Tutorial
10:51
How to Mix Audio in Unreal Engine 4
22:22
Valkyrie Sound
Рет қаралды 20 М.
Learning Unreal Engine in One Month to make a Game!
15:25
Will Hess
Рет қаралды 48 М.
Intro to MetaSounds in Unreal Engine! [New UE5 Series]
15:41
PrismaticaDev
Рет қаралды 31 М.
Just try to use a cool gadget 😍
00:33
123 GO! SHORTS
Рет қаралды 85 МЛН