Forums > Jitter

help needed: creating geometrical shapes from audio

January 3, 2012 | 10:59 am

Hi everybody, I need your kind help
I’d like to add to a musical patch I’m working on a graphical feature with jitter

Basically I need a way to display geometrical shapes that represent 5 audio tracks

the shapes I need to create are circles, hexagons, rectangles, triangles and pentagons
each shape represent and audio track.
each track has different sounds and silences, so each sound must be represented with a shape.

the horizontal value of the window represent time, so each shape will be placed in the window (not scrolling) accordingly to the moment in time that it has been played.

the vertical value represent amplitude
the dimension of a shape is given by the duration of a sound
the color of a shape is given by the a calculation of the mean frequency value played in the segment

I understand that the shapes must be created after the sound has been played, when the level falls under a certain threshold the jitter patch creates the shape, having calculated its amplitude, duration, frequency and time

I know it’s a big deal of work.. any suggestion on how to start this off?


January 3, 2012 | 12:46 pm

learn how to draw/animate and position shapes (jit.lcd)
learn how to analyze sounds for length, freq, amp (timer, fzero, peakamp)
map analysis results to drawing controls (scale)

I find the tutorial series below really useful. I have posted them a lot lately just because I am trying to learn how to do something similar to you and I find them very useful.

ftp://arts.ucsc.edu/pub/ems/maxtutors/

I do not know if you have to download the Lobjects library or if all the functionality can be replaced with the zl and vexpr objects.


January 3, 2012 | 4:45 pm

is there a way to get shapes with alpha channel? I want them to be a bit transparent


January 3, 2012 | 10:35 pm

It’s the blind leading the blind here but I think you cannot do it with the jit.lcd – the reference file leads you to Tutorial 29 which is about using the alpha channel – it might be of some help but I cannot remember.


Viewing 4 posts - 1 through 4 (of 4 total)