Skip to content

brandly/viz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

viz

put an audio element and a canvas element inside something with an id

<div id="viz">
  <audio preload="auto" src="04 - Guns &amp; Roses.mp3" controls autoplay></audio>
  <canvas></canvas>
</div>

and define how to draw a frame, given information about that particular point in the audio

new Viz('viz', {
  frequency: function (frequencyData, context, canvas) {
    // draw a frame
  },
  time: function (timeData, context, canvas) {
    // draw a frame
  }
});

checkout the demo

About

audio visualization with canvas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published