Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

99
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda