Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

97
Views
How do I efficiently create this multi button sound program in p5js

I'm trying to create a binaural audio sound demo player in p5js. It basically plays different sounds close, far, up, down, right, left, as if you were in a room. I'm new to p5js and have been struggling to create 8 circular buttons, arranged in a circle, that all play and pause various sounds. These buttons should change color and I am not sure why I'm having so much trouble but help is appreciated. The issue I'm having, so other people can be helped too, is how do I create multiple object buttons that change color and coordinate sound and text with each one? I tried using an array and constructor but it didn't work. Thank you :)

https://editor.p5js.org/sheepblazer/sketches/TbRI7EmAH

I just attached the link to my editor as I thought it would be easier.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

One of the first changes you should make is to load the sounds in the preload function.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!