Help - Search - Members - Calendar
Full Version: singletracks below the albums
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
mrtrichomes
i've searched for a bit now and maybe I missed it but I'm trying to get all of my single tracks to move below all the album tracks but otherwise keep the same sorting. i'm not too good at this kind of stuff, I'd appreciate is someone posted some sample code

thanks
picmixer
Well that would depend how fb2k would be able to differentiate between your albums and single tracks.

Do you have any specific tags on your files that indicate wether it is a single track or not. Or are they in any specific directory, etc.?
anza
I just have a $if(%__replaygain_album_gain%,0,1) in front of my regular sort string, as my single tracks don't have album gain on them.
A_Man_Eating_Duck
how about putting square brackets around the album?

'['%album%']'

we are talking about album list arn't we ?
mrtrichomes
not quite what i was getting at. I just need to write a new sorting scheme. On the playlist there are albums and singles. I know how and have tagged the single files as singletrack. I want the albums displayed above the singles so that the playlist is more streamlined. The tracks should still be sorted by filename. I can do that manually, but It'd be a pain in the ass after adding a bunch of new music. I also do not wish to just make another playlist. here's a pic displaying what results i'd like to get


Right now I'm trying to setup bitrate and codec underneath the date and genre on the fourth line of albums. for the moment they show up on everyline. i'll mess around with that a little more before i ask for help on that.
upNorth
QUOTE(mrtrichomes @ Apr 12 2005, 02:41 PM)
I know how and have tagged the single files as singletrack. I want the albums displayed above the singles so that the playlist is more streamlined.
*
In that case, try adding this to the beginning of your current sort string:
CODE
$if(%singletrack%,%artist%%_filename%)|


Edit: Added code below and modified the code above
Try this one:
CODE
$if(%singletrack%,%artist%%_filename%)|
$if2(%album artist%,%artist%)|
$if(%album artist%,$if2(%album%,),$if2(%date%,))|
$if(%album artist%,$if2(%disc%,)$if2($num(%tracknumber%,3),%_filename%),$if2(%album%,))|
$if2(%disc%,)$if2($num(%tracknumber%,3),%_filename%)

It's harder to code when you don't know exactly how files are tagged and organized, so the code above is just a modification of one I use myself.
mrtrichomes
thanks upNorth. forgot i could change the search string with sort by...
I then just had to change &album& to &path& and it kept everything nice and neat.
mrtrichomes
aight, time for help on that second problem. this is the code in my artist column
CODE

$if(%_xsingle%,
$if(%artist%,$tab()$if(%_isplaying%,%_litep%|%_litep%,%_lite%|%_lite%)%artist%),
$select($min(%tracknumber%,4),
// --- 01 ---
%_bline%|%_blines%$repeat(─,50)$if(%_xvarious%,$if3(%album artist%,%performer%,Various Artists),[%artist%])%_bline%|%_blines%$repeat(─,50),
// --- 02 ---
$if(%album%,%_dark%|%_dark%%album%[ CD$num(%disc%,1)])
$if(%discname%,%_darkd%|%_darkd%' ('%discname%')'),
// --- 03 ---
%_lite%|%_lite%$if2(%date%,)$if($and(%date%,%genre%),' • ')$if2(%genre%,)))
// --- 04 ---
[%__codec%] • [%__bitrate%kbps]


that displays the codec and bitrate on every line but what I want is for it to only be displayed on the fourth track on an album.
upNorth
See if this one works:
CODE
$if(%_xsingle%,
$if(%artist%,$tab()$if(%_isplaying%,%_litep%|%_litep%,%_lite%|%_lite%)%artist%),
$select($min(%tracknumber%,5),
// --- 01 ---
%_bline%|%_blines%$repeat(─,50)$if(%_xvarious%,$if3(%album artist%,%performer%,Various Artists),[%artist%])%_bline%|%_blines%$repeat(─,50),
// --- 02 ---
$if(%album%,%_dark%|%_dark%%album%[ CD$num(%disc%,1)])
$if(%discname%,%_darkd%|%_darkd%' ('%discname%')'),
// --- 03 ---
%_lite%|%_lite%$if2(%date%,)$if($and(%date%,%genre%),'  ')$if2(%genre%,),
// --- 04 ---
$if2(%__codec%,)  $if2(%__bitrate%kbps,),
))
mrtrichomes
you're the man upNorth smile.gif

thanks a lot. damn those ending brackets. the playlist looks sweet now.
Insolent
QUOTE(anza @ Apr 12 2005, 07:19 AM)
I just have a $if(%__replaygain_album_gain%,0,1) in front of my regular sort string, as my single tracks don't have album gain on them.
*


Hey, thanks for the idea anza! I keep my singles in a directory called "UNSORTED", so I adjusted my sort string to this:

CODE
%artist%$if($strstr(%_path%,'UNSORTED'),1,0)%album%$num(%tracknumber%,3)%title%


Now it groups all albums by artist and places any single tracks by said artist after the albums. biggrin.gif
crono cloud
what if i have my directories sorted like this.. and i want the singles coming in last...

-Band Name Directory-
-Album 1 Directory
-Album 2 Directory
single1.mp3
single2.mp3
single3.mp3

and all my singles have no tracknumber.. to distinguish between the two..
Insolent
QUOTE(crono cloud @ Apr 15 2005, 10:58 AM)
what if i have my directories sorted like this.. and i want the singles coming in last...

-Band Name Directory-
      -Album 1 Directory
      -Album 2 Directory
      single1.mp3
      single2.mp3
      single3.mp3

and all my singles have no tracknumber.. to distinguish between the two..
*


Try this:
CODE
%artist%$if($strstr(%_path%,%artist%\%_filename_ext%),1,0)%album%[$num(%tracknumber%,3)]%title%

It works by checking for 'Artist\Filename.mp3' in the file path. So, it should ignore 'Artist\Album\Filename.mp3'.
freakonaleash
I hope someone can help me with my problem. I think it fits to the topic.

My files are stored in 3 differen folders: "Albums", "Single Tracks" and "Sampler".

Is it possible that album list shows in one tab only the albums in the second the single tracks and in the third the sampler.

So i would like to make a panel with album list and 3 tabs.
Can anyone help me?

Thanks
freakonaleash
Nobody? sad.gif
Neil K
Well first you will obviously want to have 3 instances of the album list panel, in different tabs, then use something like $strcmp(%_directoryname%,'Albums') to sort them. Can you give me a quick description of how you want each one sorted, like Artist > Album > nn. Title.
freakonaleash
Thank You smile.gif .

I hope I can explain it with my english-knowledge.

Yes, I want 3 different tabs called "Albums", "Single Tracks" and "Sampler".
My problem is that single tracks are between the albums, and I want only "complete albums" listed in the first tab.

The albums should be something like that: Artist > Album > nn. Title
The single tracks only: Artist - Title
And the sampler something like: Album > nn. Artist - Title.

I think the "tree" is not so difficult. My problem is that in the "first" album list only the albums of the albums directory (e.g. X:\Music\albums), in the second only the tracks of the single tracks directory and so one.

Thank you very much smile.gif
Neil K
Albums:
CODE

$if($strcmp(%_directoryname%,'Albums'),
%artist%
|
%album%
|
$num(%tracknumber%,2). %title%
,)


Singles:
CODE

$if($strcmp(%_directoryname%,'Single Tracks'),
%artist - %title%
,)


Sampler:
CODE

$if($strcmp(%_directoryname%,'Single Tracks'),
%album%
|
$num(%tracknumber%,2). %artist% - %title%
,)

Not actually sure if these will work but hey, just put them into different strings under 'Views' in Preferences > Components > Albumlist Panel.
freakonaleash
I'll try it. Thank you smile.gif
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.