Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Does foobar Support Folder Numbering ? (Read 5249 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Does foobar Support Folder Numbering ?

I cannot seem to find a formula for " Folder/Number/Artist" in foobar". Perhaps it doesn't exist ?? What I want to be able to do is : when making up a play-list of a particular artist, and separating the artist from title, is to be able to put several titles into different folders of the same artist such as:
[folder1/Artist-xx/Title] ,[folder2/Artist-xx/Title], folder3/Artistxx/Title, etc etc .. I have tried numerous ways to try to do this with foobar to no avail. is it possible or not.? Thanks much..........

Does foobar Support Folder Numbering ?

Reply #1
Shouldn't this be posted on foobar2000 forums?

Does foobar Support Folder Numbering ?

Reply #2
You're right. My mistake. sorry..

Does foobar Support Folder Numbering ?

Reply #3
I have no idea what you are asking for.

Could you post some real life examples instead of that "folder2/Artist-xx/Title" pseudo code?

Where are the folder numbers supposed to come from?

Does foobar Support Folder Numbering ?

Reply #4
[Where are the folder numbers supposed to come from?]

I was hoping that foobar was capable of generating a folder number. I don't know how to present this in any other way. The query seems simple enough.  I'll try another example: You have a list of songs (MP3) by
an artist [JOE BLOW] . foobar can separate & create a folder & put all the songs into a folder named [JOE BLOW] .So rather than have one folder of [JOE BLOW], I would want several so that I could have the list of songs devided into more than one folder [JOE BLOW 1 ,JOE BLOW 2 , JOE BLOW 3, ETC,ETC,.
    The reason for this is because my car cd player only displays folders & files. Folders being the artist & files being the title. So when you make up a play list , one would want a mixture of folders using a particular artist several times in a play list .And of course, WINDOWS will not allow duplicates, so the folders would have to be numbered when using the same name more than once. I had thought that maybe there might be a way for foobar to do this. I canj do it manually but is very time consuming when making a playlist of multiple artists.

Does foobar Support Folder Numbering ?

Reply #5
So when you make up a play list , one would want a mixture of folders using a particular artist several times in a play list .

What is the contents of each such folder? A single file? A fixed number of files? Something completely different? -)
I don't think fb2k is appropriate softare for this; but you could try using a simple batch script
e.g.:
mkdirs.cmd:
Code: [Select]
REM this file moves each file in a one-level deep directory structure into a separate directory named {originalName<count>}.
@echo off
setlocal enabledelayedexpansion
for /D %%d in (*) do (
    set count=0
    for %%f in ("%%d\*") do (
        set /a count=count+1
        mkdir "%%d!count!"
        move %%f "%%d!count!\"
    )
    rmdir %%d
)

Does foobar Support Folder Numbering ?

Reply #6
Sorry hit, but yo lost me on that one. Too complicated for my little brain..lol.
As for folder contents, I would have 3 to five songs of the artist. So in a playlist the artist would come up as the folder number would indicate. Like  maybe folder 1, 10 , 17, 20, etc. Other artists would be in between those numbers. One can have up to 299 folders with as many artists & files as what a CD would handle, depending on the bitrate and staying within the 700mb. cap.

Does foobar Support Folder Numbering ?

Reply #7
As for folder contents, I would have 3 to five songs of the artist. So in a playlist the artist would come up as the folder number would indicate. Like  maybe folder 1, 10 , 17, 20, etc. Other artists would be in between those numbers. One can have up to 299 folders with as many artists & files as what a CD would handle, depending on the bitrate and staying within the 700mb. cap.


My guess is that you're trying to randomize your playlist. What I think you want to achieve is to have top-level folders start with numbers so that your car CD player will play these in the direction the numbering goes.
e.g.
/000 - ArtistAAA/Song1.mp3
/001 - ArtistBBB/Song1.mp3
/002 - ArtistAAA/Song2.mp3
/003 - ArtistCCC/Song1.mp3
?

Does foobar Support Folder Numbering ?

Reply #8
My guess is that you're trying to randomize your playlist. What I think you want to achieve is to have top-level folders start with numbers so that your car CD player will play these in the direction the numbering goes.


If what you're saying is true, then the OP can use foo_sendtodevice  to use %list_index% to do the numbering:

Code: [Select]
$num(%list_index%,3)- %artist%\%title%

Does foobar Support Folder Numbering ?

Reply #9
PERFECT !!!  That is exactly what I have been looking for. Yes, hit, that is what I was aiming for & thanks to Kanak, for the formula....  Now I can drag & drop as many songs as I wish to each folder and if there are more than one folder of a particular artist, I can jockey the numbers around so that they won't all be sequential. foobar would not have a code for  mixing the same artist non sequentially ? Anyway, this is a big,big help to me .Thanks much, for taking the time to address this issue.. 


Does foobar Support Folder Numbering ?

Reply #11
Once again I thank you Kanak. The randomize was not 100% but a whole lot better than without it. Some folders still wanted to double up, but one could jockey those around manually if need be. I notice that one would have to add the total amount of folders at once. I tried adding more to the play-list on a second go-a-round & I wound up with duplicated folder numbers. Was I correct when I stated in an earlier post, that I would have to add any additional songs to a folder manually, while using the code you had prescribed??
    I find this foobar program fascinating, even tho, I don't understand it all. As the ole saying goes: "ya can't teach an old dog new tricks"  Thanks again for your time. It is greatly appreciated...

Does foobar Support Folder Numbering ?

Reply #12
Once again I thank you Kanak. The randomize was not 100% but a whole lot better than without it. Some folders still wanted to double up, but one could jockey those around manually if need be.


Well, that's the definition of "random" . What' you're asking for is NOT random (you do NOT want songs by the same artist to be together, which violates the randomness). 

I notice that one would have to add the total amount of folders at once. I tried adding more to the play-list on a second go-a-round & I wound up with duplicated folder numbers. Was I correct when I stated in an earlier post, that I would have to add any additional songs to a folder manually, while using the code you had prescribed??


%list_index%, which is used in the code i supplied is simply the position of the particular song in the playlist. So here's what you can do...  whenever you copy fewer than the "total folders", don't discard that playlist. The next time you want to add files, create a new playlist with the files, randomize them, and THEN drag and drop them to the end of your previous playlist (or use Edit -> Copy then Edit -> Append Tracks). Now select only the new files (in your previous playlist) and use foo_sendtodevice. This SHOULD work.


I find this foobar program fascinating, even tho, I don't understand it all. As the ole saying goes: "ya can't teach an old dog new tricks" Thanks again for your time. It is greatly appreciated...


You're welcome  .

Does foobar Support Folder Numbering ?

Reply #13
quote kanak @ feb 15 )So here's what you can do... whenever you copy fewer than the "total folders", don't discard that playlist. The next time you want to add files, create a new playlist with the files, randomize them, and THEN drag and drop them to the end of your previous playlist ..

Thank Kanak, I will give that a twirl.