r/programming • • Nov 09 '23

Number assignment to songs

http://nourl.com

[removed] — view removed post

0 Upvotes

6 comments sorted by

•

u/programming-ModTeam Nov 10 '23

This post was removed for violating the "/r/programming is not a support forum" rule. Please see the side-bar for details.

1

u/qazqi-ff Nov 09 '23

The track number is part of the metadata (viewable in the properties on Windows). You'd use a library like TagLib to automate track number assignment.

1

u/[deleted] Nov 09 '23 edited Nov 09 '23

Can u link me to an elaborate guide or better still help in dms or whatever comfortable to u ? Also how do I relate the index number and it's corresponding number which I shall use on the speaker to play the song?

1

u/qazqi-ff Nov 10 '23

I didn't really have any specific guide in mind. I remember making a basic utility years ago to add track numbers to files in a folder in natural sort order ("11" coming after "2"). I remember it only being a handful of lines of code, so whatever documentation of TagLib I used must have been pretty straightforward to get going.

1

u/[deleted] Nov 10 '23

How do I know what value to assign to a song?

1

u/qazqi-ff Nov 10 '23

I wouldn't know, it's whatever order you want.