Hi all, I am making a music player with a simple 16,2 LCD screen. I am using the Music Maker shield from Adafruit. I have the music player and screen finished, but it is currently displaying the filename (track1.mp3) and not the track name from the ID3 tag metadata, which is what I want. The Music Maker library does not contain any way to reference or retrieve the ID3 data, annoyingly. I am surprised this is so hard to come by!
I am a simple guy. I am good at Excel. I imagined this would be much the same. I would use a VLOOKUP in excel, with a list of all the filenames and track names, and the formula would return the track name. So this is what I have done. I have put together a .txt and a .csv of all the filenames and track titles. These are both on my SD card. I am desperate to find a way to look up the data and return the following 16 characters.
All the filenames end ".mp3" and in the CSV they are, obviously, comma-separated. All the track titles are 16 characters long, including spaces which I have used to add up to the end. I have done this to make it easier, to return always the next 16 characters. This will then display on the first line of the LCD and the 2nd line is blank.
I currently have no code for this, although if you want to see the unrelated music player code I am happy to share. Please can someone help? Either getting data from a .txt or .csv, or getting data directly from the .mp3 (although that'll probably be harder).
The tracks.txt looks like this:
This is copied and pasted directly from the .txt - the | aren't in the text file. The values are separated by a tabkey press indent thingy - I am happy to remove that if it is easier, and have it literally just say "track1.mp3Welcome Horizons" if that will be easier to read from.
I have tried to be as detailed as possible and also tried to find the answer myself - asking for help is really a last resort, so please be nice!