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.

10 Comments

  1. Posted May 19, 2008 at 8:32 pm | Permalink

    Nice example!
    Thanks for sharing.

  2. Fredrik
    Posted May 20, 2008 at 12:27 am | Permalink

    Thank you! Do you think that latency will be an issue when the final version of fp10 is released? What latency was impossible to fix according to tinic? Overall latency of audioprocessing or mp3s?

  3. Posted May 20, 2008 at 12:38 am | Permalink

    Great example, thanks a lot! As for latency, I fear Tinic Uro was pretty clear about it – it’s not going to be fixed in FP10 (sadly):

    “The API has one big compromise which I can’t address without large infrastructural changes and that is latency. Latency is horrible to the point where some applications will simply not be possible. To improve latency will require profound changes in the Flash Player which I will tackle for the next major revision.”

  4. Posted May 20, 2008 at 12:03 pm | Permalink

    Hi Fredrik,

    I am quiet sure that the latency will change and become better if you think about the audio drivers for different operating systems.

    It will get better on Mac — that is for sure. And I think we can be very happy that we have Tinic sitting at Adobe because he will not be satisfied with a 500ms latency as well.

    Cheers

  5. Willem
    Posted May 21, 2008 at 11:35 pm | Permalink

    Joa,

    Where did find good resources for programming synths? Where did you learn this?

    cheers

  6. Posted Sep 13, 2008 at 6:54 am | Permalink

    Thanks for sharing.

  7. Posted Nov 17, 2008 at 6:31 pm | Permalink

    Hi Joa, I’m trying to compile this example with mxmlc following instructions at http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10

    Here’s my output: http://pastebin.sekati.com/?id=cantcompileSimpleSynth@d8928-9d255c4c

    Seems like mxmlc isn’t agreeing with vectors. Any thoughts? What’s your environment like?

    Thanks in advanced, very interested in playing around with generated sound in fp10!

  8. Posted Nov 18, 2008 at 11:04 am | Permalink

    Hey, the source is a little bit outdated and does not work with the latest SDK — it was built using a beta version. You will probably have to fix the callback for the SampleDataEvent.

  9. Posted Nov 21, 2008 at 9:45 am | Permalink

    Joa, thanks for the quick response! I had to modify that callback and increase the buffer feeder length to the minimum (2048). I also gave the thing an 0ldsk00l kb layout. Updated source:

    http://dinoaids.com/as/SimpleSynth.zip

    Big ups to Andre for helping me get dynamic sound going @ MAX and for politely putting up with my latency questions :]

  10. Posted May 8, 2013 at 6:09 am | Permalink

    Examine was exciting, keep in contact…… Class Action http://2009pzigandadbh2afr.ikasblog.net/2010/01/22/jone-ramirez

7 Trackbacks

  1. By » Blog Archive » Flash Player 10 - Astro on May 19, 2008 at 7:16 pm

    [...] Simple Astro synthesizer [...]

  2. [...] sound without having to resort to byte injection hacks anymore. In that regard, Joa Ebert has a nice experiment showing this feature working, and downloadable sources to [...]

  3. [...] Simple example how to write your own synthesizer in Astro with multiple voices and a simple ADSR envelope by Joa. For those who don’t know, he belongs to the team of AudioTool. No Comments Leave a Commenttrackback addressThere was an error with your comment, please try again. name (required)email (will not be published) (required)url [...]

  4. [...] Simple Astro synthesizer by Joa Ebert [...]

  5. [...] Peters (Bit-101) – Astro Dynamic Sound! Joa Ebert – Simple Astro Synthesizer (polyphone!) Joa Ebert – Astroboy (8Bitboy [...]

  6. [...] Simple Astro synthesizer by Joa Ebert [...]

  7. [...] 23, 2008 in AS 3, Flash, HerramientasTags: actionscript 3, Astro, Audio, Sintetizador, Sonido Un sintetizador de audio hecho utilizando las bondades de Astro. Código fuente incluido!. :-D No Comments Leave a [...]

Post a Comment

Your email is never shared. Required fields are marked *

*
*