In this video series, I discuss the p5.js sound library to work with audio. In this first part, I demonstrate how to load a sound file and play it in the browser. Code: https://thecodingtrain.com/tracks/sou...
🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...
🎥 Next: • 17.2: Play and Pause Button - p5.js S...
References:
🔗 p5.sound library: https://p5js.org/reference/#/librarie...
🔗 Visualizing Music with p5.js: https://github.com/therewasaguy/p5-mu...
🔗 Just Like a Rainbow by the Columbians: https://github.com/CodingTrain/websit...
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
🚂 Website: https://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 • Coding Challenges
🎥 • Start learning here!
🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org
📄 Code of Conduct: https://github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...
#sound #mp3 #p5js
Watch video 17.1: Loading and Playing - p5.js Sound Tutorial online without registration, duration hours minute second in high quality. This video was added by user The Coding Train 07 June 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 148,452 once and liked it 1.6 thousand people.