The objective for this project is to create an audiovisualizer with the help of openFrameworks.
After compiling and running the project for the first time, you should be able to do a couple of things:
- Using the "P" key, you should be able to play music from "beat.wav"
- Using different number keys, you can visualize the music in different ways:
- 1: Rectangle Height Visualizer
- 2: Circle Radius Visualizer
- 3: Curve Visualizer
- 4: Elipse Visualizer
This project contains two classes that should be of your concern: ofApp and AudioVisualizer.
This is the class that brings most things together. Here, you will find the code that causes the audio to play and pause. It is also to where the visualization happens. Here, you can observe how the code to change between modes works, and how the song is actually played.
The AudioVisualizer class provides us with the data needed to do the visualization. Using some of the tools OpenFrameworks provides us and math, we can obtain information such as the amplitude of the sound.