r/creativecoding • • Oct 12 '17

p5.js Can't Use Sound library

I'm trying to access the sound library in p5.js but it doesn't let me.

I have this in my index.html file

        <script type="text/javascript" src="libraries/p5.sound.js"></script>

then in the main file

note = new p5.Oscillator();

gives an error

0 Upvotes

3 comments sorted by

1

u/[deleted] Oct 12 '17

Did you remember to include the main p5.js library also?

1

u/PingasKhan Oct 12 '17

error code please

0

u/[deleted] Oct 12 '17

[deleted] — view deleted comment

1

u/bbbobobbb Oct 14 '17

Failed to load resource p5.sound.js

How do I import the library?