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

268
Vistas
How do I make a circular music visualizer in p5.js?

What I am getting looks like a red Spirograph

What I want white circle with waves in it

I am trying to create a music music visualization app and I am stuck on the circular wave pattern

//draw the waveform to the screen
function CircularWavePattern() {
    //vis name
    this.name = "circularWavePattern";

    //draw the wave form to the screen
    this.draw = function() {
        push();
        noFill();
        stroke(255, 0, 0);
        strokeWeight(2);

        
        beginShape();
        //calculate the waveform from the fft.
        var wave = fourier.waveform();
        
        for (var i = 0; i < wave.length; i++) {
            //for each element of the waveform map it to screen
            //coordinates and make a new vertex at the point.
            var x = map(i, 0, wave.length, 0, width) * cos(i);
            var y = map(wave[i], -1, 1, 0, height) * sin(i);

            vertex(x, y);
        }

        endShape();
        pop();
    };
}
about 4 years ago · Juan Pablo Isaza
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