Making your disco dance floor
In this task, we will use the sketch we generated in the previous task and turn it into a texture for a 3D object. We will create a rectangle using the Processing shapes and texture it with our visualizer.
We will also implement the playlist
functionality for our MP3 files and define a file format that allows us to control the sequence of the music and the visualizers.
Prepare for Lift Off
In this task, we are going to create a text file that controls our playlist and the sequence in which the visualizers are shown. Each playlist entry has two lines. The first line contains only the filename of the MP3 file and the second line contains the visualizer IDs and their length in seconds. The entries are separated using a "-". The following is an example of a playlist text file:
song1.mp3 0:4-1:2-3:2 song2.mp3 0:1-1:1:0:1-2:1
In this case, the song2.mp3
file is played and the visualizers with IDs 0
, 1
, 0
, and 2
are shown for one second.
So, add some MP3 files to the data...