Emulates the C64 SID chip on Arduino to play music files.
- Requires SID Arduino library
You can embed (short) tunes into the code using C header files, but that involves converting the music into a dump and then converting the dump into a C header array:
- Extract SID music data from SID files using SID Dumper by Johannes Ahlebrand Windows application (not to be confused with the multi-platform SID Dumper)
- JConverter.jar is required to convert dumped SID music files into C header files - this is abandonware, searching for JConverter now brings up a Joomla migration tool!
Instead I extended the example to first load a specific file from SD card (arduino_SD_sid_player_.ino
), and then a further example to read a list of .DMP files and then pick one at random (arduino_SD_RANDOM_sid_player.ino
)
In addition to the above:
- MOSI - pin 11
- MISO - pin 12
- CLK - pin 13
- CS - pin 4
Then connect 3v power, Ground.