Tag Archive for 'dynamic audio'

Sound.extract() rocks!

When Tinic Uro was implementing the dynamic audio features he was also giving us a very nice present called Sound.extract(). And it is simply awesome!

I wrote a simple experiment yesterday night using the popforge library. Yes — you can use it still with the new features and it is a great help. I just had to convert the sample data into a format for popforge.

The experiment is a simple flanger applied to an MP3. André wrote the flanger about a year ago but it is still fun listening.

The sourcecode will also show you how to loop sounds using Sound.extract(). It is a very safe way so that you get always as much data as you need.

There is only one problem right now. I wanted to use the new FileReference features so that you can load your own MP3s into the flanger. But unfortunately there is currently no easy way to do this. You would have to load the bytes, then create a SWF at runtime and inject the MP3. Then you could load that SWF with Loader.loadBytes() and once that is complete you can extract the sound. I thought doing that would be a little bit too much for a small demo :)

8bitboy on steroids

Remember the 8bitboy? It was our first application to test how good dynamic audio works in the Flash Player. It was also the very first application we ported to test the new Flash Player 10 audio capabilities.

Here is the Astro version.

I was very happy when I ported the 8bitboy because it was very simple. You just have to replace the sound buffer we were using with the callback of the Sound object and pull for samples from the processors.

Simple Astro synthesizer

Here is a simple example how to write your own synthesizer in Astro with multiple voices and a simple ADSR envelope. I thought I write it so that not everybody is posting hurtful high-frequency oscillators.

You will see why latency really matters when programming audio applications once you start pressing some keys. It is not really possible to play anything but hopefully this well get adressed before the final version of the FP10.

Also there is currently not a really great way to develop with FDT for Astro. It is too bad but I hope the guys at Powerflasher will release an update pretty soon as well. Right now you can compile the example using Ant.

Adobe is awesome

Adobe released today the beta of the Flash Player 10 on its labs website. Among a couple of really great features is also one that made my day.

Dynamic Sound Generation — Dynamic sound generation extends the Sound class to play back dynamically created audio content through the use of an event listener on the Sound object.

If you do not know what this means: Flash is now finally capable of doing real dynamic audio streaming. I am so happy that Adobe was listening to the community and implemented this feature. A special thanks goes out to Tinic Uro for implementing it. He has also very detailed information about this feature on his blog.

I will post soon some example about how you can use Adobe Pixel Bender (Hydra) to synthesize sound in Flash. Think of it — its fantastic!




Close
E-mail It