Skip to content

vsDizzy/audio-freq-sample

Repository files navigation

Sample audio frequency visualizer

levels

Demo

Should work in Chrome, Firefox, Edge.

Will not work in Internet Explorer because it does not support AudioContext.

The Idea

To compose bars programmatically:

  • draw the gradient bar: bar
  • draw the mask: mask
  • scale up the bar and mask it using svg and pattern

The result:

row

Then just copy corresponding pixels to the target canvas.