So, for my ICM midterm I focused on the Processing part of my PCOMP Media Controller project. The project is to build a glove with sensors that can controller certain aspect of a sound file. For this midterm assignment I focused on getting some of those controls working.
I used the Minim library to play with sound on this project. Minim is…. ok. There is a lot that can happen and that you can do, but it still felt limiting. It was fun trying to figure out Minim but I feel when it comes to sound it might be to interact with a dedicated sound application. What I am now interested is in visualizing sound. I’ll most likely try and incorporate this in my final project.
So below you’ll find screen shots of the player/controller. The interface is totally ugly but I was working towards making the controls work and as a result neglected its looks. You will at the top is the waveform of the left and right channel. This is reacting to the sound clip. Below that you see the title and artist of the sound and then a set of information about the sound being played. This info is the position of the song relative to its length, the total length of the song, the Gain level, the Pan level and the sample rate of the song. The three things you will see change is the position, the gain and the pan. All the controls I triggered by key strokes and below is a list of them:
Space = pause/play
M = mute/unmute
B = rewind to beginning of song
R = skip or scrub backwards
F = skip or scrub forward
W = Increase gain
S = Decrease gain
E = Reset gain to 0.0
D = Increase Pan
A = Decrease Pan
Q = Reset Pan to 0.0
I was reserving any mouse interaction for setting loop points within the song but I could not get the loop function to work for me.I also realized that there is no way to increase the speed of the audio. This was a disappointed because we wanted to have this be one of the controls. Also, because loop() wouldn’t work for me the sketch is now that when the song reaches the end it just sits there trying to play sound that isnt there. For now, I have just hit ‘B’ to get it to return to the beginning.
So, here are is actually the link to the applet.