MusicBox Player is a 'snooze like' toddler friendly mp3 music player, operated by adults and designed with NodeJS for the RaspBerry Pi platform.
When user push a button, an mp3 file is randomly picked up from a song pool folder, and played. The more you push the buton, the more the playlist is filled up with mp3 files. When playlist gets empty, the player waits for a new button push, and the whole process begin again.
var AudioPlayerClass = require('./AudioPlayer');
var audioPlayer = AudioPlayerClass.createInstance('/path/to/mp3/files');
audioPlayer.addSongAndPlay();
then :
$ sudo node MusicBox.js
MusicBox Player rely on the excellent OnOff library for handling GPIO interrupts detection. It also uses Lame and Speaker NodeJS modules by TooTallNate