MOD player for the Stellaris Launchpad

[Ronen K.] wrote in to tell us about the MOD playing Stellaris Launchpad project he recently completed. A MOD is a sound file for the computers of days long gone. But you’ll certainly recognize the sound of the 8-bit goodness that is coming out of this device.

To understand how a MOD file stores samples you might want to glance at the Wikipedia page. There are a ton of these files out there, but this implementation is meant for files with only four channels. For now the only external hardware used is an audio jack which needs a ground connection and a PWM signal on each of the two audio channels. [Ronen] is storing the files in flash memory rather than using an SD card or other external storage. This leaves 213k of space for up to six files that can be selected by the user buttons which cycle forward or backward through the list. See this demonstrated after the break.

The project ports existing code from an STM32 application. Since that is also an ARM microcontroller there’s not a ton of work that needed to be done. But he did have to write all of the PWM functionality for this chip. This PWM tutorial turned out to be very helpful during that process.

Comments

  1. kubik says:

    I can’t recall what is the song starting at 1:18, but I’ve heard it about thousand times back in ninetees.
    I was about to beg for implementing other formats, but I’ve realized that you’re limited to the RAM available…

  2. Galane says:

    Two of the best mod files ever are Kingdom Sky and Misty Heart.

  3. d15ea5e says:
  4. some of these “mod” sound like fm synthesis instead of sampled sequences, right?

    • metai says:

      They are called “chiptunes”. The samples they contain are cut down to waveshapes which are only a few (sometimes even only one) cycles long and looped when played. This results in FM-like sounds and very small file sizes.

  5. James says:

    Jeepers, been a long time since I listened to mods, sniff, reminds me of the good old days.

    The modarchive has about every mod you can remember I’m sure, this jem has always stuck with me for some reason “Pindakaas”.

    http://modarchive.org/index.php?request=view_by_moduleid&query=55061

    And of course, “Do the Bartman!” remix.

    http://modarchive.org/index.php?request=view_by_moduleid&query=35205

  6. John says:

    I miss mods actually, one of my favorite players was called Vpreg, or Visual Player, Reg was cause it was registered. I think i still have it somewhere, I collect old dos stuff..

  7. The 5th is Wizardry, a cover from the C64

  8. Vis1-0n says:

    I haven’t looked past the landing page, but he does state that it was ported from the MIPS PiC32, while HaD cites the ARM STM32.

  9. DainBramage1991 says:

    Wow, a blast from the past. I remember back in the early 90’s marveling at the sound quality I was hearing while playing MODs on a 386DX with a Soundblaster-16 card.
    “It almost sounds like REAL music!”
    That was fun, but I think I like modern lossless digital audio formats a bit better.

    • John says:

      Man I feel you on this, 386DX or even a 286, I am glad someone came up with dosbox. I actually went out of my way a while back before I knew of it and purchased a 486DX100 board and mem for 50$ off ebay

  10. Galane says:

    I used MOD4Win, best MOD player there was for Windows 3.1x, and there was a 32bit version for Windows 95. It was released as unsupported freeware a while back.

    One very cool feature was IDO or Interpreted Digital Oversampling. It worked great on files with 8bit samples but 16bit ones were better with IDO off.

    What I didn’t like was it could only play from a playlist. If you wanted to just listen to random files you had to add to the playlist first.

  11. Fabrice says:

    Hi ,
    i see in the text “The project ports existing code from an STM32 application”
    I just get a stm32f4 discovery and will like to know more about this stm32 project.

    Thanks ;)

    Fabrice.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 94,423 other followers