...these be from google reader...


Text Reacting to Sound

Right, as an attempt to imprint my name into the retinas and craniums of all who made the mistake of attending my multi-mania presentation, I had a “text effect which reacted to sound” covering the moviescreen… (see a piece of it here). My name, accompanied by my very own pirate smileypiratepirate smiley smileys, bouncing to the wicked sounds of dj Zinc’s “super sharp shooter”. :buttrock:

I later on explained how I used the “split text field” effect (see text effect explorers, split text effect explorer), to react to the wonderful AS3 flash.media.SoundMixer.computeSpectrum() functionality. All the magic happens in the “reactToSound” method (just view source). The code loops one of the returned channels, grabs a readFloat() from the spectrum at an interval defined by the number of letters in my effect, divided by the available bytes (256). I then use this value to “y position” each letter and a few “followers”…


picture of text effect reacting to sound
View the lobotomizing und brainwashing text effect!

click here for source goodness, or right click on the .swf then “view source” :)

The reflection was more or less copied from : Ben Stuckis reflection , I also used a “Easy Button” from the original AS3 samples written by the mighty Senocular, not his greatest contribution to the world of flash ;) , but saved me a few seconds, and, gave me a good reason to give a shoutout to the great man :D I used audacity open source sound editor (the gimp of sound editors) to create the “loops” (lol). If nothing else, I know I have no future in the world of music :D

2 Responses to “Text Reacting to Sound”

  1. john Says:

    Hi SAKRI, i love these demo. Effect are cool and first loop too. Thanks for the src. I was looking for some AS3 text effect on the web and it looks like you are the only website dealing with this…

    I plane to write an opensource AS3 text effect library so if you have good information about this, tell me (maybe it has been already made).

  2. sakri Says:

    Hi John,

    glad you liked it :)

    Sorry it took so damn long to approve your post… I don’t know how I missed the notification.

    Yeah, I’ve been working on a text effects lib for flex : http://code.google.com/p/flextfx/ (very early still). Did you already start working on one? It’s my first “proper library” and I’ve spent a lot of time organizing and restructuring it… Good fun, I hope to release something shortly. If it turns out nice (and extensible as I plan) then I’d be happy to invite other contributors :)

Leave a Reply