Category Archives: Exercises

Your moves into sound

Ever wondered what would happen if you tracked your motion, used your motion parameters in building a sound wave? I also wondered and thought we can try. Click here to listen to the result (ps: it is super noisy).
The initial idea was to track my skateboard rides and map the falls! (because I fall a lot on the side walks) where the repetion of the zero speed parameter, will make a rhythm. However, due to GPS problems with my phone, I ended up using random values that don’t correspond to a specific motion track.

The tone was generated by building a sine wave, which is constructed by 3 parameters, a frequency, an amplitude [-1, 1] and a sampling rate. You can learn more about sine waves here . The sketch on the left is a quick render of different waves constructed with different frequencies and amplitudes, which I generated using Audacity. Even though, we are converting data to sound and not the opposite, it is still important to learn how waves are constructed before we build them.

Now, as far as processing is concerned, it seems that minim library makes it an interesting tool to deal with sound, nevertheless, minim examples, which are installed by default in your package, and which come with an exact illustration of how sinwaves works in your code (click Sinewave on the left tab). You don’t have to stick to sinewaves, you can also construct your waves using square or triangulate functions. They are all controlled by the same 3 parameters: (frq, amplitude, samplerate).

In order to move to the code, after understanding how sound is being built, we need to start by having a look on how classes are built , then we use that to manipulate Antimap’s example (Yeah, we all love free examples), or generate your own from scratch, if you aren’t a fan or freebies. I needed it to help deal with csv data input, however, I think that table() could provide a better solution, but I didn’t try it. The whole idea is to use different arrays to control the sine wave parameters in the function SineWave(frq, latitude, out.sampleRate()) then you can manipulate the different values from different arrays and see how interesting results could come along. You can also control sine.portamento() for different effects. If you got a the “buffer underrun in AudioOutput” it is mostly because your draw function has nothing there, so check the processing forum for tips, also don’t forget the minum.stop () at the end of your code, otherwise the noise will loop forever, and it is too noisy indeed:)

Also posted in Int Programming, Moushira Elamrawy | Comments closed

visualizing data. Playing with interface



Also posted in Gerda Antanaityte, Int Programming, Students | Tagged , , | Comments closed

visualizing data. process

How does your movement look like?
The challenge was to find creative way to translate GPS data into visual form.

The idea is quite simple. What is home?  Probably it’s your center of the world. Every journey starts and ends here.  I picked  my home as initial point and marked it as origin of the drawing. Movement is illustrated by stretching coordinate lines. In that case you can always see how far you are from initial point.

Nautical and celestial cartography, where relations between objects are clearly linked in simple and aesthetic manner were inspiring graphic forms:

first concept sketches

and here’s how my interface sketch looks like.

My first recording started from home to school. I used antiMap application, which gathered data about speed, distance, time, compass position, longitude and latitude. It was interesting experience to see this trip visualized. Somehow it looked like personal documentary cartoon. Here’s how my trip looked like:

Size of ellipse represents speed, color changes are compass position. Even there’s no information about streets, from speed and ellipse position you can clearly define where are crossroads with traffic lights. I never thought how my trip would look like. It shows how maps can be informative as well creative by invoking different tools.

In example you can see only one way trip, but tomorrow I will go to the beach and probably come back home :) It will help to complete my map.

Also posted in Gerda Antanaityte, Int Programming, References, Students | Tagged , , | Comments closed

The Moving Point and Line

The aim of this exercise was to take an existing code, which was a black background on which a point danced around the while leaving its teases.

We had to convert this dancing single point into a dancing single line. I added a red to blue & blue to red gradient to it.To make it more interesting.

Code Given

Code Modified

Also posted in Furqan Habib, Int Programming | Comments closed

Using Loop

The aim of second Exercise was to use an Iteration function.
An Iteration function is a function which keeps on repeating as long a statement is correct. There are two types of iteration functions “for” & “while”. (http://processing.org/reference/for.html).

Also posted in Furqan Habib, Int Programming, Uncategorized | Comments closed