Angelica sourcecode
February 13th, 2008 — Posted by benedikt — Filed in Processing
It took a little longer, but finally here’s the sourcecode for Angelica.
Download AudioVis.tar.gz (302,4 KB)
If you want to include lyrics, the file must contain data in this format:
1 [00:31.09] Finally the hills are without eyes 2 [00:34.50] They are tired of painting a dead man's face red 3 [00:40.01] With their own blood 4 [00:44.31] They used to love having so much to lose 5 [00:49.92] Blink your eyes just once and see everything in ruins
To encode the images into video I used mencoder with these parameters:
1 /usr/bin/mencoder "mf://out/*.png" -mf fps=25 -audiofile data/audio.mp3 \ 2 -o video.avi -oac copy -ovc lavc \ 3 -lavcopts vcodec=mpeg4:vbitrate=16000:mbd=2:trell=yes:v4mv=yes
Feel free to use, change and criticize the code. It’s far from being perfect. ;-)
I’m looking forward to your comments.
Processing Angelica
January 25th, 2008 — Posted by benedikt — Filed in Processing
This is the first processing sketch using audio visualization I built. It was created as a final project for a Processing course at the University of Applied Sciences Fulda. As one might guess, it was inspired by the amazing works of flight404. All frames have been rendered into pngs and encoded to video, using mencoder, later. Music is Lamb – Angelica. Made with Processing.
I’ll upload the sources later and maybe write a short tutorial about it …
Fuzzy-controlled jet with Processing
January 14th, 2008 — Posted by benedikt — Filed in Processing
This one started as an homework for university but I really started to like it. The original task was to built a fuzzy controller using Matlab in groups of 2 or 3 students. I joined Benjamin and another fellow student to create a simple fuzzy controller for flying a plane in a given height above the ground. To make things a little more complex we also considered head wind. As all of us three didn’t like the quite abstract results of our controller in Matlab, we decided to implement a small simulation in processing. We used Edward Saznov’s open source fuzzy inference engine for Java and integrated it into processing. Surprisingly everything worked quite well from the beginning. Although we had some small issues we were able to build a nice looking and functional simulation using the controller we designed. The resulting applet runs perfectly in the browser and as an application. (I love processing’s export-feature.) Check out the sketch by clicking on the picture below.
Here are the controls you might need :-)
| R | Reset the terrain |
| Space | Start / Stop simulatoin |
| Arrow up / down | Change wind angle |
| Arrow left | Increase wind power |
| Arrow right | Reduce wind power |
| Click | Set position of the plane |
| Dragging the mouse | Draw terrain |
We decided to release the source code of this. It still could need some refactoring, but it’s working and deadline was today, so feel free to experiment with it (or even improve it) and sent us some comments!
Processing is fun
November 26th, 2007 — Posted by benedikt — Filed in Other, Processing
I’m currently attending a course called “Animation programming with Processing”. It’s a blended-learning course lectured at my university. I heard about processing before but never looked at it closely. Processing is a simple programming language build on top of Java and comes with its own, simple IDE. It includes some basic functionality and can be extended with a variety of libraries (Audio, Video, 3D, Network, ...).
It’s amazing how easy it is to write stunning animations with very little lines of code. Combined with a simple webcam and a projector you’ll get cool interactive installations:
Presence
I, Ball
Check out the exhibition at processing.org too!
Maybe I’ll upload some of my own sketches during the next weeks.

