17.1: Loading and Playing - p5.js Sound Tutorial

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


References:

Timestamps:
0:00 Introduction
1:02 loading a mp3 file with loadSound()
3:57 Use preload to load the sound file
6:57 setVolume
7:36 Add a slider to control volume
9:34 Adding a callback
12:26 Manipulating the sound
13:34 Rate is the speed at which the song is playing
15:18 pan() determines whether you can hear the sound in the left/right speaker
16:43 Outro

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

#sound #mp3 #p5js
Рекомендации по теме
Комментарии
Автор

Thank you for your videos :)
You reignited my passion for programming! ❤️

jan_
Автор

Man you really got that song stuck in my head!

obedotto
Автор

could you recommend more updated p5 sound videos because I think they've changed some of the references since this video

dbzlinkinpark
Автор

I was watching this stoned and the sound panning tripped me TF out 😂

jpopperman
Автор

Great work boss .. i am developing a game soon it will be released but you have really helped me in making it more interactive

shafaatkazmi
Автор

Amazing coder and educator!!! Thank you so much Dan!!

edharkins
Автор

Almost on every video of you i have to laugh. GOAT the nobel is a little prize for this job you doing. Thanks. A teacher from college recommended this for our digital interfaces class, and this is the most complete channel i've seen. Thanks again

paniproduce
Автор

You are awesome sir... keep doing what you're doing!

jrmumm
Автор

love you dude, really thankful for your teaching and help, have a nice day and week and year

huuarethey
Автор

how about a coding challenge: making a mp3 player with playlist and shuffle button?

Shidou_san
Автор

Como te quiero pa, siempre salvandome de todas 🤗

_CROWNS
Автор

this is what you called Fun + Learning

theboringtube
Автор

You are an amazing teacher. Thank you so much.

thalianoboalamar
Автор

That intro music and you coming into frame has to stay. Please and thanks.

AsaTaylor
Автор

I can't load any sound in p5.js... Every time I run the code it says:
"Unable to load Quan recording.aif. The request status was: 404 (Not Found)\n The error stack trace includes: \nloadSound\n at preload
How can I fix this???

christophrenschler
Автор

thanks for showing us how to use the callback function. this was not covered in my class and i couldn't properly load music

thehaptiK
Автор

can't believe i saw this earlier omg, welcome p5.js, goodbye processing minim

tyulik
Автор

Love the videos!

Daniel - is it possible to use your speaker output as audio input?

Basically, I want to process something I'm listening to on Spotify. Is that possible?

dopinkus
Автор

Hey man, thank you so much for sharing these precious information. Just a question: How old preload and play at the same time multiple audio files? Hope you answer me! Regards!

mauriciocedrazromero
Автор

The pan works???? That is so amazing that it makes me want to program

andrearaujodacunha