anttivainio / fmod-music-visualizer Goto Github PK
View Code? Open in Web Editor NEWA simple program that visualizes the spectrum of music in real-time. Rendered using OpenGL 3.1.
License: The Unlicense
A simple program that visualizes the spectrum of music in real-time. Rendered using OpenGL 3.1.
License: The Unlicense
Screenshots of the program and Windows and Linux binaries compiled by Antti Vainio are available on his site at: https://www.anttivainio.net/visualizer This program is supposed to visualize the spectrum of music with bars representing volumes of different frequencies and some squares representing volumes of bass and left and right channels. The program uses OpenGL 3.1 for graphics and FMOD for playing music and analyzing the spectrum. As FMOD does the actual analysis, this program does no FFT or anything else regarding spectrum analysis, instead solely focusing on visualizing the data. There is still one important thing to notice: FMOD gives the spectrum using linear scale whereas sound spectrum is better visualized using logarithmic scale, meaning this program still needs to do that conversion. You can also play other songs than the one song that comes with this program. This can be done by giving the file name/path as the first command line parameter. On Windows this can also be done by dragging a music file, which is in this same folder, on the executable file of this program. The song that comes with this program is Horizon by Geoplex. You can get the original version from http://www.newgrounds.com/audio/listen/520387 Compiling instructions: The program can be compiled at least on Windows and Linux. Linux users may use the provided Makefile to compile the program. You must have the dev package of GLFW and GLEW installed to compile. The 64-bit Linux version of FMOD is included in this project to make it easier to use the Makefile. If you need to compile a 32-bit version you need to download the 32-bit version of FMOD, too. If you don't use the Makefile (like on Windows) you should link at least glew32, glfw, opengl32 and fmodex. Running the program: Once compiled, you must have your graphic card drivers installed and support for OpenGL 3.1. This program was originally released on May 12th, 2014 at https://www.anttivainio.net You may use all the source codes for anything you want.
Hi,
Great looking project!
Can you tell me where in your code do you convert from linear to logarithmic scale? Or can you describe how to do this?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.