Mod Archive Forums Mod Archive Forums
Advanced search  


Please note: Your main account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: Arduino MOD/S3M/IT/XM Player  (Read 5559 times)

0 Members and 1 Guest are viewing this topic.


  • New User
  • Offline Offline
  • Posts: 1
    • View Profile
Arduino MOD/S3M/IT/XM Player
« on: December 05, 2019, 05:13:32 »


I have worked on an open source music player for Arduino supporting MOD/S3M/IT/XM formats that's designed to run within pretty limited resources. For example Arduino UNO is running at 16MHz and has only 32KB of flash memory (used for programs) and only 2KB of RAM, and has no DAC so you have to build R2R ladder Covox style, so chip tunes are perfect for this little MCU :D The player scales to more complex mods though if the MCU has more memory, processing power, stereo DAC, etc.

MOD/S3M/IT/XM files are first converted to custom format and embedded to the MCU player program. The conversion compresses the mod file to better fit in MCU flash and organizes it so that it can be played back in-place without any further processing.

There are quite a few effects supported (on both volume and effects tracks), envelopes, multi-sample instruments, etc. but it's not perfect by any means and there are still various playback errors that I need to iron out. Currently the player also supports only 8-bit mono samples.

So if you are interested playing mods on Arduino (for demos for example), this GitHub project might interest you:

Video showing the player on Teensy 4.0 + Audio Shield w/ simple ILI9341 TFT visualization:

There are also other videos in my Youtube channel showing the player on different MCU's.

Cheers, Jarkko
« Last Edit: December 05, 2019, 05:42:17 by JarkkoL »

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Arduino MOD/S3M/IT/XM Player
« Reply #1 on: December 05, 2019, 20:05:14 »

Cool stuff!
» My TMA artist profile
» Visit my music site: [de, en]
» Visit my programming website: [de]
» Open ModPlug Tracker
Pages: [1]   Go Up