11.1: Loading and Playing – p5.js Sound Tutorial

[ad_1]
In this new 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.

Support this channel on Patreon:

Send me your questions and coding challenges!

Contact:

p5.js sound library reference:

Source Code for the Video Lessons:

p5.js:
Processing:

For More Sound in p5.js videos:

Music track:

Help us caption & translate this video!


Posted

in

by

Tags:

Comments

18 responses to “11.1: Loading and Playing – p5.js Sound Tutorial”

  1. FLy1nRabBit Avatar

    TO ANYONE HAVING THE "ReferenceError: loadSound is not defined" PROBLEM:

    Make sure this is in your HTML file:

    <script src="https://p5js.org/assets/js/p5.dom.min.js"></script&gt;
    <script src="https://p5js.org/assets/js/p5.sound.min.js"></script&gt;

  2. Silviu Stefaniu Avatar

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

  3. SuperJeevan999 Avatar

    i looooooveeeeeeee you!!!!!!!!!!!!!!!!

  4. Naman Mehta Avatar

    Why are there 2 sets of playlists numbered 11
    i can't understand, i know it's stupid,sorry but ocd!
    if anyone can tell

  5. Kino -Imsure1200q Avatar

    oh ok now i underestand i dont need the library its already built in p5js. man im such an idiot

  6. Kino -Imsure1200q Avatar

    when i load a sound file, it just completely crashes and gives me 2 errors which i do not understand

  7. Kino -Imsure1200q Avatar

    i cant run the music :((

  8. Kino -Imsure1200q Avatar

    i have a problem in putting it in my index.html….

  9. Warido Avatar

    OMG i was trying preLoad but it was preload ._.

  10. Pa Pinkelman Avatar

    is wanting to be a unicorn with purple hair a result of the green screen being radioactieve or from to much coding?
    also: this channel is one of the best

  11. Júllio César Avatar

    The deviceorientation event is deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more detail

    how can i fix this? the same happen when i load images

  12. Kartik Chauhan Avatar

    Ohh man!! what're you high on?

  13. k balaji Avatar

    keep on dancin'.

  14. The Shroud Avatar

    Doesn't work in Chrome for some reason…

  15. Ismail Buzer Jamher Avatar

    can i use this library in my Laravel project too ?

  16. MrCoolGuy Gamer Avatar

    please dan, please reply, it gives an error loadSound is not defined. and i am doing this on a local server

  17. shafaat kazmi Avatar

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

  18. Jack Riseley Avatar

    my song plays itself about 10000 times at once

Leave a Reply

Your email address will not be published. Required fields are marked *