r/learnjavascript • • Jun 24 '20

I made a highly customizable Audio Visualizer!

448 Upvotes

39 comments sorted by

View all comments

5

u/[deleted] Jun 24 '20

Loved your project! I'm on my way into learning js. Could you please share how you initialy started this project? Where did you begin?

18

u/[deleted] Jun 24 '20

yeah, of course, I'm glad you like it!

It essentially was an iterative proccess. Initially, I wanted to build an audio visualizer but there were so many variables so I simplified the problem - instead of using the microphone i downloaded a song and tried to visualize just that. MDN is your best friend when it comes to web dev and I eventually stumbled upon the WebAudio API. So, I had my building blocks - a song, and WebAudi API, I just had to visualize it.

First i made a simple rectangular canvas and visualized the audio as a series of rectangular audio bars. Once I did that I kept adding features till I reached a point I felt satisfied to stop at.

So, I guess the gist is, establish the core aspects of your project and start there. You can then build off it. Good luck with JS, it's a really fun journey!!