Sound

ADDING SOUND

Luckily P5 comes with a built in sound library!

Using the Sound Library

To play a song.  First we have to load up our audio in our setup.

You can also use the preload function to load sound and other assets before your sketch runs setup() or draw()

P5 also lets you easily access your microphone

 

P5 is also capable of recording that microphone input

 

Theres a whole wide world of things P5 can do with sound.  Like making your own oscillators, analyzing a waveform, or adding reverb, delay, noise, and more.