[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.
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…
At 1:18 it’s hymn to aurora: https://www.youtube.com/watch?v=ghaf1Hmt97Y
It’s also the theme tune to the Spectrum (& C64) game Fairlight by Bo Jangeborg.
Here you go, SD support and S3M support….
http://mobile4dev.blogspot.co.il/2013/01/stellarplayer-mod-s3m-module-player.html
Two of the best mod files ever are Kingdom Sky and Misty Heart.
Song at 1:18 – aurora.mod ( http://modarchive.org/index.php?request=view_by_moduleid&query=34274 )
some of these “mod” sound like fm synthesis instead of sampled sequences, right?
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.
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
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..
The 5th is Wizardry, a cover from the C64
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.
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.
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
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.
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.