Why doesn't my p5.js recognize loadSound() as a command?

I'm trying to load sound for the first time on p5.js, and have entered this code:

function preload() { mySound = loadSound('yourmailboxisfull.wav'); }

However, my computer doesn't seem to be recognizing this and other sound-oriented commands. I recently downloaded the complete p5 library to my computer.... is there anything else I forgot to do before trying to code with sound?

Tagged:

Answers

This discussion has been closed.