P5.js music and drawing

Is it possible to play music with p5 and the program will draw a picture depending on the beat?
Are there any examples how the whole thing should look like?

1 Like

for a start, did you play?
https://editor.p5js.org
/ File / Examples /
like:
Sound : FFT Spectrum

1 Like

and how i can ad music files so that the sound plays and the p5 drwas a random picture too it
And how can i add this too my side sry im a nebwie and need this for my school

i show you the way to some p5.js examples already.
to play a sound file and draw some circles see like
/ Examples / Sound : Amplitude Analysis

with some small changes for random painting

might be a easy start.
did you check other p5.js learning sources already?

1 Like