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

273
Views
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
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!