HOME | DD

haptic — The Entertainer

Published: 2006-09-29 04:54:51 +0000 UTC; Views: 341; Favourites: 2; Downloads: 5
Redirect to original
Description I was experimenting with flash and its ability to analyze sound input through a microphone (which is a limited ability). A circle is instantiated onEnterFrame. The size of the circle is dependant on the volume of the sound input. This piece is called the entertainer because a good portion of this composition was generated from the song "The Entertainer" being played on piano.

Here is all of the actionscript used:

this.createEmptyMovieClip("sound_mc", this.getNextHighestDepth());
var active_mic:Microphone = Microphone.get();
sound_mc.attachAudio(active_mic);

active_mic.setGain(65);
active_mic.setSilenceLevel(10);
active_mic.onActivity = function(active:Boolean) {
if (active) {

active_mic.setUseEchoSuppression(true);

}
};

a=1;
b=1;

this.onEnterFrame = function() {
if(active_mic.muted == false) {
circle = this.attachMovie("circle","circle"+a,this.getNextHighestDepth());
a++;
b++;
if(b > Stage.height) b=0;
if(a > Stage.width)a=0;
circle._x = a;
circle._y = active_mic.activityLevel + b;
circle._width = circle._height = active_mic.activityLevel;
}
};
Related content
Comments: 3

MetalMulishan [2007-05-08 18:06:02 +0000 UTC]

do you place the circle mc off stage on a seperate layer? and do you put the actions on a blank keyframe or on or in the sound_mc?

like it alot

metalmulishan~

👍: 0 ⏩: 0

Ty1 [2006-09-29 14:12:22 +0000 UTC]

Man i love coded art

👍: 0 ⏩: 0

thenazz520 [2006-09-29 04:56:11 +0000 UTC]

that is gorgeous. and brilliant. i always wondered what the entertainer looked like. simply stunning

👍: 0 ⏩: 0