Hey Frankie,
I’m am trying to do the same thing in my code but using that library I get the following error when I am trying to compile the MusicPlayWithName example.
C:\Users\Ben\Desktop\arduino-1.0.1\libraries\MusicShieldNewSDLib\player.cpp: In function 'int playFile()':
C:\Users\Ben\Desktop\arduino-1.0.1\libraries\MusicShieldNewSDLib\player.cpp:136: error: 'listoffset' was not declared in this scope
C:\Users\Ben\Desktop\arduino-1.0.1\libraries\MusicShieldNewSDLib\player.cpp:137: error: 'indexlist' was not declared in this scope
Could you tell me what I did wrong? I downloaded the fat16lib that you link to (fat16lib20111205). I have Arduino IDE 1.0.1
bdirgo, did you ever get it working? I’ve managed to get mine playing all songs in order using the music_v1_14 library, but it can only play songs in order – if I try calling PlayCurrentFile(), it can play the file but it doesn’t return at the end of the song, just continues playing the next file and the next until it gets to the end of the SD card.
When I switch to the Demo 2 libraries, I can compile MusicPlayRandomly but it can’t read the SD card – it prints
error: Fat16::init
over serial – and then loops forever with
error: open file failed
Nope, MusicPlayer_v1_7 doesn’t work for me – I tried the playWithName example but it doesn’t play anything. I hacked it to add some Serial.printlns, and it’s successfully adding my filename to the playlist (and the filename is on the microSD card), but it fails when trying to open the file. BTW, that demo doesn’t compile unless I change #include “newSDLib.h”
tp #include “newSDlib.h”
(note incorrect capitalization of Lib, which doesn’t match the filename). I’m on Linux so filenames are case-sensitive.
Would Seeed be willing to open their code so that people can actually get it working? Maybe give it a GPL license, or some other open license, or even make it public domain. It would make it a lot easier to use your hardware if it was possible to share working libraries and examples.