17.5: Adding Sound Effects - p5.js Sound Tutorial

preview_player
Показать описание


References:

Related Coding Challenges:

Timestamps:
0:00 Introduction
1:25 Sound effects package
4:21 Add a sound effect when the snake eats food
5:42 Add a sound effect when the game starts over
9:44 playMode()
11:47 Add some background music
13:04 Change the speed of the game when food is eaten
14:58 Map the frame rate to the rate of the music
16:39 Increment music rate by a small amount
17:41 Outro

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

#soundeffects #p5js
Комментарии
Автор

Party tiiime @ 12:16, 15:27, 16:45 , 17:18 . Daniel has some serious moves. Like a BOSS

Chank
Автор

Nice video !! For an upgrade, it could be cool to say that you can store all your sounds in a global object saying
var sounds = new Object()
And fill it whith keys like :
sounds['hello'] =
And then play it with :
sounds['hello'].play();

suomynona
Автор

I was just looking into the future. Boy I have along way to go! Back to the beginner playlist!

jimmybuck
Автор

I didn't connect Daniel's snake with "rainbow" until near the end of this video - I was so focusing in sounds. 🤣

goldthumb
Автор

if other people want to run the program do they need to download the mp3 as well? are there premade sounds in p5js that do not need downloading?

glizzy
Автор

Pleassss Help when I want to play the Sound with xyz.play(); ist says VM345:1 Uncaught TypeError: Cannot read property 'play' of undefined
at <anonymous>:1:11

Andrew-dvfd
Автор

How to build a loading animation would be great indeed!

setupdraw
Автор

Hi, how can I find a sound for a railroad crossing for model trains ?

cadillacescalade
Автор

Hi, if it is possible, can you make a video to illustrate the Snake Game code. It is so much fun, but I cannot understand some parts of the code.

xuefangzheng
Автор

well im using a spotify api for getting my sound and also I make a beat visualizer with it when the song starts but the problem is I don't have audio tag to get my Audiocontext but I do have json object which have all the bars, beats, timbers in my song so how can I connect both these things ?

noxgaming
Автор

Hi, Daniel! Thanks for the awesome videos! I have a question about images in p5. I am using loadImage() and loadPixels() to color correct couple of images. I would like to put the results in <img> tags, but as far as i can tell looking at p5 reference page createImg() only accepts source path/url. Is it possible to do something like that with p5? Thank you!

nutsbomars
Автор

How to add sound that is already added in sketch file like when my sprite touches an object so this sound in sketch file should play

anilnair
Автор

Is there a way to add sound every time they scroll down to a different section?

AloneinFiction
Автор

In p5 editor i uploaded a mp3 sound. and applied loop(). After palying the sound for 1-2 mins. perfectly it starts vibrating. Is there any way to make it stop. My mp3 sound file had no vibrating effect.

nehaverma
Автор

Hello! How can I create an FPS counter in the canvas somewhere? Can you make a short video about it please?

alexcsillag
Автор

hei guys. we need your help ASAP :) we insert the sounds and the background music like Daniel. We have background music and wanna add another sound effect during an action (in an if clause when a button is pressed). But While the sound is playing it creates an incredibly annoying and broken sounding experience. Any Solutions?

LeaMary
Автор

I just can't stop laughing at 17:30 :))) :))) Man, you are the best <3 hahahahahah!

ChristosNikolis
Автор

Sound did not working..why? Some van held me

kssqudmlbb
Автор

Any reason why you switched from Sublime Text to Atom? Always arguing with my buddy about which is better!

Shygster
Автор

Yea i'd really like to learn how to make loading animations :)

gregfield