Help - Search - Members - Calendar
Full Version: Does foobar Support Folder Numbering ?
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Phrank
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..........
kwanbis
Shouldn't this be posted on foobar2000 forums?
Phrank
You're right. My mistake. sorry..
Frank Bicking
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?
Phrank
[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.
hlt
QUOTE(Phrank @ Feb 13 2008, 01:40) *

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
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
)
Phrank
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.
hlt
QUOTE(Phrank @ Feb 13 2008, 15:52) *

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
?
kanak
QUOTE(hlt @ Feb 14 2008, 07:39) *


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

$num(%list_index%,3)- %artist%\%title%

Phrank
PERFECT !!! smile.gif 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.. smile.gif
kanak
QUOTE(Phrank @ Feb 14 2008, 17:26) *
foobar would not have a code for mixing the same artist non sequentially ?


Try Edit -> Sort -> Randomize.

Phrank
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...
kanak
QUOTE(Phrank @ Feb 15 2008, 04:03) *
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" smile.gif. What' you're asking for is NOT random (you do NOT want songs by the same artist to be together, which violates the randomness).

QUOTE(Phrank @ Feb 15 2008, 04:03) *
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.


QUOTE(Phrank @ Feb 15 2008, 04:03) *

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 smile.gif .
Phrank
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.

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.