Format 1 and 2 files must be converted to format 0
Maximum polyphony: 64
Actual polyphony: 19-31 notes at 3.5X clock
Two instrument banks:
GM1 (instruments)
GM2 (percussion)
Writing Your Own Code
The LilyPad MP3 Player uses the same pinout as SparkFun's
and should run
the same code without modification.
The LilyPad MP3 Player is Arduino-compatible. It uses the same bootloader as SparkFun's "Pro"
and "Pro Mini" series of boards. Tto select the correct board from the Arduino IDE, go to the
"Tools/Board" menu, and select "Arduino Pro or Pro Mini (3.3V/8MHz) w/ATmega 328".
We made it this way to support Bill Porter's excellent
, which takes care of most
of the hard work involved in playing audio files. If you look at the example code we provide, you'll
find this library at its core.
The best way to write new code is to start with one of the existing examples. For example, we
modified the stock code to play a prank on "According To" Pete Dokter where we looped the "It's A
Small World" song over and over, while very slowly increasing the volume. We've included this code
is in the examples directory.
You can download the LilyPad MP3 Player code from the
. Clicking the "ZIP"
button on that page will download the latest version. You could also install a github client and clone
the repostitory to your local machine.
Within the archive, you'll find the
sketches, as well as example programs
showing off different features of the board, such as the use of the rotary encoder. All of the code is
fully-commented and completely free for you to use and modify.
If you'd like to bypass the Arduino environment and program the ATMega328 directly, you can do
that as well. There is an unpopulated 6-pin ISP header on the board. You can use this header to
program the board using an Atmel ISP programmer such as SparkFun's
.
We'd like to extend huge thanks to Bill Porter and Michael Flaga for their hard work on the
.
Resources and Going Further
With that, you should have all the knowledge necessary to create any project with the LilyPad MP3
Player. There are lots of setting you can tweak to manipulate the LilyPad MP3 Player into being the
perfect board for you and to fit the requirments for your next music/noise related invention.
Page 27 of 28