Examples

Five working examples, each adding one idea. Start with one number and end with a Three.js sculpture.

  1. 01One number. One pulse.Turn bass energy into the scale of a circle. One value is enough to make an interface listen.CSS · Start here
  2. 02See the three bands.Separate bass, mid and high into three live meters. See exactly what the library gives you.DOM · Beginner
  3. 03Draw the whole spectrum.Go beyond three values. Map raw frequency bins to a detailed, real-time spectrum.Canvas 2D · Intermediate
  4. 04Give your voice a shape.Switch the source from a track to your microphone and draw the waveform of your voice.Microphone + Canvas · Intermediate
  5. 05Build a sound sculpture.Deform a particle sphere with bass, twist it with mids and scatter its surface with highs.Three.js · Advanced

Every example uses the same calls. The documentation explains them.

Music: I dunno by grapes · Drive by AlexBeroza · Parametaphoriquement by gmz · nightWalk by airtone. From ccMixter, under CC BY 3.0.