Git Product home page Git Product logo

circle's Introduction

Circle [demo]

This is an audio visualizer built with p5.js.

I was jamming with a buddy one day and I thought it would be really cool to know what key he was playing just by looking at a visualizer connected to a microphone in a room.

I realized that if I take the FFT of a signal and slice it up into concentric circles that line up with the notes of the diatonic scale, you can get a pretty nice representation of the noise in the room.

After playing around with various parameters, I realized that this was a pretty cool music visualizer and that's pretty much what you see now. You can tweak various parameters in the sidebar:

  • you can toggle the mode between song / microphone.
  • you can toggle the view between polar and linear.
  • you can toggle whether the octaves overlap or are spread out.
  • you can toggle the grid that displays the notes.
  • you can change the sharpness of the amplitude.
  • you can change the gain.
  • you can change the color scheme—the colors are deterines by anchoring a hue and sweeping through HSL for each octave.
  • you can edit the opacity of each layer.

One thing that can use improvement is the FFT granularity. I'm using the 2048 bit FFT out of the box, I think with a custom script processor node you could probably build your own FFT that has much better granularity.

Here are some fun examples for you—click on the images to open up the visualizers with those presets.

circle's People

Contributors

ccorcos avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.