New Amiga Mod / Soundtracker AS3 Replay Library

In the immortal words of the BudBrains: Check dis out:

Now Amiga mod replay has been done in AS3 before, most famously by Joa and Andre in the 8BitBoy Popforge library. And more recently in Flash Mod Player by Badsectoracula (although that is written in haXe it still compiles to AS3). But today I was blown away to receive a tiny zip package from the talented Christian Corti, lead developer at TrinityEffects. It contained a little test swf and a few class files named “flod”.

Flod is his native AS3/FP10 Amiga Module playing library. And as you can hear, it plays very well!

It has full support for 15/31 instruments and all the effects up to Protracker 2.3 including Inverse Loop (latest version, not the Funky Repeat), it also supports both Amiga A500 and A1200 filters. It adds less than 10Kb to your SWF file size (excluding the mod itself of course), but more importantly the CPU impact is minimal.

Christian has released it under the Creative Commons Attribution-Share Alike 3 (Unsupported) License, which basically means you are pretty much free to use it however you want, for whatever you want. It requires Flash Player 10, which at it’s current adoption rate of 76% and growing, shouldn’t be a big issue for anyone these days.

I fully intend to integrate this with the FP10 branch of PixelBlitz. He also has a set of SoundSpectrum classes for generating beautiful VU meters (and also extremely useful if you wish to link the music to in-game events or effects). They are being tidied up at the moment, so hopefully they’ll be released soon. I’ll post about it here when they are.

Feel free to download the zip file and have a play!

Please comment here to let us both know what you create with it.

Posted on June 3rd 2009 at 7:08 pm by .
View more posts in Flod. Follow responses via the RSS 2.0 feed.

4 Responses

Leave a comment
  • June 7th 2009 at 8:47 am

    Great stuff. But doesn’t this have the same problem as all the other as3 mod players; that you can’t produce a single swf with all the mod files within. You always have to load them externally? Or have I just missed how you do this?

  • June 7th 2009 at 9:55 am

    Depends how you produce your SWFs. If you use FlashDevelop and compile with the Flex compiler (as opposed to compiling just from CS4) then you can embed as many mods into your swf as you like, just by using the standard “Embed” octet-stream method.

    This is how the example on this page has 3 mods in a single swf (none are loaded externally).

    The example source in the zip file uses a “file open” reference yes, but it isn’t required.

  • June 10th 2009 at 2:14 pm

    You can embed anykind of data in Flash projects, if you apply a small transformation to your binary.
    You change your binary file into a .as class that extends ByteArray. Good luck :)

  • musashi9
    June 30th 2009 at 4:40 am

    This is great and I cant wait for the SoundSpectrum classes to be released
    I had no problem embedding a mod using the method JP talked about above :)

Make yourself heard