Processing

Completing an introductional course on programming with Processing I wrote various little programms.

These so called sketches mostly feature space, sound, colors and patterns.

Assignment for the final codes

Timebased patterns:
Over the last 2 weeks you had a closer look into pattern observations.
The should be your inspiration for a programmed sketch. Start from your observations and your natural descriptions. Think about a pattern you want to create. The pattern can be based on input data (like an image or a text) or can be created from complexer shapes.
Transfer this pattern into a timebased pattern – an animation. Think about different behaviours of your elements. Use one function or several ones to build up your programme.

I tried to display some of them within the browser via Processing.js. Basically it works good enough for a quick demonstration, but the overall performance is really bad and it produces some other problems.
You can find some of the codes beneath the sketches’ descriptions.

Of course you can download all programs already compiled in a package; they contain executable files and should work on every major operating system.

 

Soundvirus

The Soundvirus is a three dimensional sound visualization. It consists of four levels of branches, rising out of a common origin. Each branch has several children decreasing in quantity with higher branch levels. The whole system moves in time, while the 360 branches in total access 90 randomly generated variables based on their position in the field to calculate their movement in the three dimensions. This means that for most branches there are three other branches following the same movement, producing a mix of random arrangement and a subliminal pattern. The speed of the system’s evolution, as well as its color are based on the stereo mix level of the sound input.

Soundvirus

For the soundvirus_mic version, the microphone input is used. The microphone’s sensivity can be changed by adjusting the “volumeadjust” variable in the first line. A smaller number increases the microphone’s sensivity.
The soundvirus sketch uses the provided sound file to obtain the mix level.

Download Soundvirus Download Soundvirus_mic

 

Dimension Clock

The Dimension Clock is a three dimensional way to display time. Hours, minutes and seconds are displayed as lines arranged in a circle on three different plains in the room. They are pointing away from the center and change in quantity and length as time goes by. The time is still shown in its numeric value to prevent confusion. By moving the mouse you can change the angle of view, a click zooms in on the clock. After a few seconds without any user input, the sketch falls into a ‘screen saver mode’, where the camera floats around.

Dimensionclock

The Processing.js version sadly displays the time wrong on some browsers.

Run Dimension Clock with processing.js
Code: Dimension Clock
Download Dimension Clock

 

Color Pattern

This sketch visualizes sine waves in different ways, based on time. There are two sine waves which are combined to produce a moving pattern by altering the vertex shapes. The colors of these shapes vary by the value of two sine waves with different frequencies. Altogether this sketch succeeds in creating an effect which can be compared to an optical illusion, while being based just on waves.

Colorpattern

It may be a bit slow (depending on your system speed), but it works:

Run Color Pattern with processing.js
Code: Color Pattern
Download Color Pattern

 

Spectralmandala

Another sketch based on sine waves. This sketch creates nine circulary arranged ellipses – floating around, changing their colors and shapes. The stretching and colorprogress suggest a three dimensional, nearly ‘hallucinogenic’ perception.

Spectralmandala

With Processing.js this sketch suffers from some mysterious interruptions. Apart from that it works fine.

Run Spectralmandala with processing.js
Code: Spectralmandala
Download Spectralmandala

 

Volumeter

The Volumeter uses the mic input to process speed, size and color of a moving circle. If the volume exceeds a specific treshold, the whole circle turns red and indicates that the sound is ‘too loud’.

Volumeter

Code: Volumeter
Download Volumeter