This is really simple:
1 2 3 4 5 6 | mic = Microphone.get() attachAudio(mic) mic.setUseEchoSuppression(false) onEnterFrame = function(){ object._xscale = object._yscale = mic.activityLevel } |
Sometimes the activity level is a bit low and so you could just:
1 | object._xscale = object._yscale = mic.activityLevel+100 |
or
1 | object._xscale = object._yscale = mic.activityLevel*2 |
1 2 3 4 5 6 | mic = Microphone.get() attachAudio(mic) mic.setUseEchoSuppression(false) onEnterFrame = function(){ object._xscale = object._yscale = mic.activityLevel*10 } |
produces:
