Part_1_03_Playing_Music does not work

DOY38

Well-known member
Hello,
After after modifying the wiring of the TEENSY card and the AUDIO card I have an example that works 'Guitar'. But now when I try with the 'Part_1_03_Playing_Music example' (workshop_t4-5.pdf) I don't hear any music. Do you know for what reasons ?
Thank you for your answer
 
Do you have the SDTEST2.WAV file in the root directory of the SD card? And is the SD card in the appropriate slot as selected in the code?

Pete
 
I think it was my first issue with the teensy examples,the monitor was showing sd playing the song but no sound at all,
then i rewrite the
Code:
playSdWav1.play("SDTEST2.WAV");
in low case
Code:
playSdWav1.play("sdtest2.WAV");
may be you can give a try...

Think at this time i had many sd libraries and old ones,must be conflicting with the way the files were written in upper case.
Now i've only the teensy sd library,and another one i backup away,to use it only with pico,that's all.
 
I think it was my first issue with the teensy examples,the monitor was showing sd playing the song but no sound at all,
then i rewrite the
Code:
playSdWav1.play("SDTEST2.WAV");
in low case
Code:
playSdWav1.play("sdtest2.WAV");
may be you can give a try...

Think at this time i had many sd libraries and old ones,must be conflicting with the way the files were written in upper case.
Now i've only the teensy sd library,and another one i backup away,to use it only with pico,that's all.
Thank you, but I think I have a little problem with my connectors, there is a little play and it does not make contact between the 2 cards very well. I will redo the wiring properly.
 
As a point of information SD and SdFat are using FAT32 and EXFAT in which the filenames are not case sensitive. However on Linux based machines which are case sensitive this can cause "File Not Found" problems during compilation. Say you have a header file "file.h" on your storage media and in your sketch you include it as "FILE.h", this would cause a "File not Found" error during compile time in Linux but not windows based machines. I think it is good practice to be consistent with file naming. All upper case or all lower case file names in sketches and on storage media...
 
Back
Top