Solarium
Code sample
This script extract shows how sound amplitude values are translated into moving bars of colour
amplitude = new Array(0, 0, 0, 148, 295, 414, 388, 372, ...);
attachMovie("barholder", "barholder", 1);
function dance()
{
frame = _currentframe - 1;
amp = amplitude[frame];
if (amp == undefined) amp = 0;
ball._xscale = amp; ball._yscale = amp;
barholder.attachMovie("bar", "bar" + frame, frame);
target = eval("barholder.bar" + frame);
target._xscale = amp;
target._y = -frame;
barholder._y = frame;
}