Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

98
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda