Opening a user's sound file


I want to add a button in my page so that the user can load his own sound file and play it with p5.sound. Which function (p5js or JavaScript) do I have to use to do that ?

Thank you.


  • edited September 2016 Answer ✓


    Well, just to say that what I was looking for was createFileInput().


    (Sorry, but I didn't find how to flag myself that the question is answered.)

Sign In or Register to comment.