mdeff / fma

FMA: A Dataset For Music Analysis
https://arxiv.org/abs/1612.01840
MIT License
2.26k stars 442 forks source link

How to find the title metadata of a particular file in fma_large? #48

Closed kernelogic closed 4 years ago

kernelogic commented 4 years ago

Hello I am trying to browse through the archive and having a hard time to understand the metadata.zip.

For example if I want to get the title of file 020/020001.mp3 in the fma_large.zip, how can I locate it in the tracks.csv?

mdeff commented 4 years ago

Please look at the usage.ipynb notebook which shows how the metadata is organized.

For example if I want to get the title of file 020/020001.mp3 in the fma_large.zip, how can I locate it in the tracks.csv?

It's the row that has a track_id of 020001.

kernelogic commented 4 years ago

Do you mean padding the integer track_id with leading zeros to six digits? That makes sense. Thank you!

mdeff commented 4 years ago

Yes. Filenames are all 6 digits because some systems don't properly order files otherwise (I guess that's when the name is treated as a string).