We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've noticed that while I can use p5.js projects that use sampled sound (like this sampling keyboard: https://ericrosenbaum.github.io/MK-1/), most p5.js projects that generate sound result in silence, or blips and crackles.
This includes the "Hello, p5.js!" video - at the point where the 'G's fall and are supposed to play music, and during the "generative drawing" part where your drawing is supposed to create sound, neither works. The 'G's are silent, and the drawing results in a glitchy beep when I first press the button, followed by silence. Likewise, this 'Organic Motion' sound demo (http://b2renger.github.io/pages_p5js/organic_motion/index.html) is completely non-functional in Chrome, and in Firefox, generates a constant broken crackling, even when all of the channels/shapes are set to 'mute.'
Is this a problem on my end, or a known issue with P5.js? I'm reluctant to start playing with this tool if even its most elementary "Hello!" demo is fundamentally broken in this way - which makes me think the issue might be on my end, but I', not sure what that could be.
Answers
The forums have seen quite a few bug reports on the p5 sound library :(|)
It should be easy enough to integrate a different (and more mature) JS sound library like SoundJS or Howler; though I'd recommend using instance mode to avoid p5js global namespace pollution causing conflicts...
https://GitHub.com/processing/p5.js-sound/issues
https://GitHub.com/charlieroberts/p5.gibber.js/issues