A program that can play a given list of songs while displaying the song's frequency and channels via shapes and lines. Utilizes the Processing and Minim libraries (not included).
Place desired mp3 files in resources folder. Then specify the names of the files excluding the mp3 file extension to
play them in that order in resources/songPaths.txt
.
- Download the Java Development Kit.
- Download IntelliJ community edition, run the exe, and follow the instructions to download the software.
- Download the Processing Library and unzip the file.
- Download Minim by scrolling down and clicking the Minim zip file, and unzipping it.
- Download and unzip this GitHub repository's code.
Note: For an easier way to download and run the music visualizer, click here and follow the instructions on the README.md
file.
- Open IntelliJ and either
- Select the open/import option.
- Click
File > New > Project from Existing Sources
.
- Select the folder containing the repository's source code and keep clicking
next
until the project is imported. - Select
File > Project Structure
. - Click the
Libraries
option on the left-hand side. - Click the
+
icon on the top bar (it will be on the left of a-
icon) - Click
Java
to choose a Java Library. - Navigate to the place where Processing is stored.
- Open
processing > core > lib
and select thecore.jar
file. - Select okay, okay again, apply, and then okay one final time.
- Click the same
+
button again and selectJava
. - Navigate to the directory Minim is stored.
- Open
minim > library
. - Select all of the
.jar
files by clicking the top one and then shift clicking the last one. - Click okay, okay again, apply, and then okay one final time.
- Close the Project Structure window.
- On the left-hand side of IntelliJ, expand the
music-visualizer-master
folder, and then thesrc
folder. - Double click on the
MusicVisualizer
file inside ofsrc
to open it. - If all went well, you should be able to click the ▶ (play) icon on line 10 next to the
public class MusicVisualizer extends PApplet
line to run the code. Alternatively, when in theMusicVisualizer.java
class, pressctrl
(orcommand
on MacOS) +shift
+fn
+f10
to run the program.
Note: To change the songs that are being played, you must first download the mp3 file and add it to the resources directory, and then list the file's name excluding the .mp3
extension in resources/songPaths.txt
to have it play when the Java class is run.