Recommended Posts

I've got a few questions to ask.

1. can someone please help me repair this track info?

$puts(info_box_width,34)
$puts(default_color,ffffff)
$puts(rating_color_1,ffffff)
$puts(rating_color_2,042573)
$puts(rating_symbol,♫)
$puts(is_playing_color,5357EF)
$puts(tag_missing_color,575757)
$puts(heading_color_l,ffd228)
$puts(heading_color_r,000000)
$puts(is_playing_color,ffffff)



////////////////////////////////
/////// Song Info Code
////////////////////////////////


$transition(----- Song Info $repeat(-,$sub($get(info_box_width),5)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)

$if(%_filename_ext%,
$if(%title%,$if(%_isplaying%,
$get(is_playing_color)$iflonger(%title%,$get(info_box_width),$cut(%title%,$sub($get(info_box_width),2))...,%title%),
$iflonger(%title%,$get(info_box_width),$trim($cut(%title%,$sub($get(info_box_width),3)))...,%title%)),
$if(%_isplaying%,
$get(is_playing_color)$iflonger(%_filename_ext%,$get(info_box_width),$cut(%_filename_ext%,$sub($get(info_box_width),3))...,%_filename_ext%),
$iflonger(%_filename_ext%,$get(info_box_width),$trim($cut(%_filename_ext%,$sub($get(info_box_width),2)))...,%_filename_ext%))),
$get(tag_missing_color) no track selected)

$char(10)$get(default_color)

$if(%_filename_ext%,
$if(%artist%,
$iflonger(%artist%,$get(info_box_width),$cut(%artist%,$sub($get(info_box_width),2))...,%artist%),
$get(tag_missing_color)no artist info)
)

$char(10)$get(default_color)

$if(%_filename_ext%,
$if(%album%,
$iflonger(%album%,$get(info_box_width),$cut(%album%,$sub($get(info_box_width),2))...,%album%),
$get(tag_missing_color)no album info)
)

$char(10)$get(default_color)

$if(%_filename_ext%,
$if($or(%publisher%.%label%,%date%),$if($or(%publisher%,%label%),? ,)%date%$if($or(%publisher%,%label%),'. ',)[%publisher% ][%label%],
$get(tag_missing_color)no date or copyright info)
)

$char(10)$get(default_color)

$if(%_filename_ext%,
$if(%rating%,$get(rating_color_1)
$repeat($get(rating_symbol) ,%rating%)
$get(rating_color_2)$repeat($get(rating_symbol) ,$sub(5,%rating%)) ,$get(tag_missing_color)$repeat($get(rating_symbol) ,5) )
$get(default_color)$if(%genre%,%genre%,$get(tag_missing_color)no genre)
)

$char(10)$char(10)



////////////////////////////////
/////// Statistics Code
////////////////////////////////


$transition(----- Statistics $repeat(-,$sub($get(info_box_width),5)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)

$if(%_filename_ext%,

$if(%last_played%,$puts(lastplayed,%last_played%),
$if(%play_date%,$puts(lastplayed,%play_date%),))

$if($get(lastplayed),
$puts(month,$left($get(lastplayed),2))
$puts(day,$substr($get(lastplayed),4,5))
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1)))
$puts(year,$right($get(lastplayed),2))
$puts(month_name,$select($get(month),
Jan,Feb,March,April,May,June,July,Aug,Sept,Oct,Nov,Dec))
$if($or($strcmp($get(day),11),$strcmp($get(day),12),$strcmp($get(day),13)),$puts(xx,th),
$if($strcmp($right($get(day),1),1),$puts(xx,st),
$if($strcmp($right($get(day),1),2),$puts(xx,nd),
$if($strcmp($right($get(day),1),3),$puts(xx,rd),
$puts(xx,th))))))
$puts(time_of_year,$get(month_name) $get(day)$get(xx) 20$get(year))

$if(%play_counter%,Played $if($strcmp(%play_counter%,1),
once$if($get(lastplayed),',')$if($get(lastplayed), on $get(time_of_year)),
%play_counter% times$if($get(lastplayed),
$char(10)$get(default_color) Last played on $get(time_of_year))),This song has not played before)

$ifgreater(%play_counter%,1,,$char(10))

,$char(10))

$char(10)$char(10)



////////////////////////////////
/////// Tech Info Code
////////////////////////////////


$transition(----- Tech Info $repeat(-,$sub($get(info_box_width),5)),$get(heading_color_l),$get(heading_color_r))

$char(10)$get(default_color)

$if(%_filename_ext%,
%__codec%
$if(%__bitrate_dynamic%,%__bitrate_dynamic%,%__bitrate%)kbps
$if($or($stricmp(%__extrainfo%,vbr),$stricmp($codec(),musepack),$stricmp($codec(),vorbis)),VBR,CBR)
$caps($if($stricmp($codec(),MP3),%__mp3_stereo_mode%,$channels()))

$char(10)$get(default_color)

$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%),
['['Tg']' %__replaygain_track_gain%][ '['Ag']' %__replaygain_album_gain%],
$get(tag_missing_color)there is no gain)

$char(10)$get(default_color)

[%_time_elapsed%/][%_length%][ -%_time_remaining% ]
$if(%_isplaying%,
$muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%',)
$div(%_filesize%,1048576).
$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB',
)

2. how do i sort the songs automatically each time i startup foobar? everytime i start foobar, the songs are scrambled, and i'll have to select all, right-click, press sort by, and use this sorting criteria: %ARTIST% - %ALBUM% - $num(%TRACKNUMBER%,3) - %TITLE%. is there a way to make it sort automatically?

3. why does the progress bar of this status bar config not showing up? it just displays a blank space in between.

$puts(space2, )
$puts(space1,  )
$if(%_time_total%,,Streamingc08000$get(space2))

$if(%__codec%,c08000%__codec%$get(space2),)

$if($or($stricmp($codec(),FLAC),
$stricmp($codec(),Monkey''s Audio),
$stricmp($codec(),OptimFROG),
$and($stricmp($codec(),WavPack),$stricmp($compression(),lossless)),
$stricmp($codec(),Windows Media Audio V9 '('Lossless Mode')'),
$stricmp($codec(),Shorten)),

747474Ratioc08000$get(space1)$left($muldiv(%__bitrate%,1000,$if($stricmp(%__samplerate%,48000),1536,1411)),2)'.'$right($muldiv(%__bitrate%,1000,$if($stricmp(%__samplerate%,48000),1536,1411)),1)747474'%'c08000$get(space2),

$if(%__bitrate_dynamic%,%__bitrate_dynamic%$get(space1)747474kbpsc08000$get(space2),$if(%__bitrate%,%__bitrate%$get(space1)747474kbpsc08000$get(space2),)))

$if(%__channels%,%__channels%$get(space1)747474Channelsc08000$get(space2),)

$if(%__samplerate%,c08000%__samplerate%$get(space1)747474Hz,)

$if(%__bitspersample%,c08000$get(space2)%__bitspersample% 747474Bitsc08000,)

$if($stricmp(%__codec%,cdda),,$if(%__referenced_file%,,$if(%_length%,c08000$get(space2)$if($stricmp($right($div(%_filesize%,1024),3),999),$add($div(%_filesize%,1024000),1)',',$if($stricmp($div(%_filesize%,1024000),0),,$div(%_filesize%,1024000)','))
$right($num($add($right($div(%_filesize%,1024),3),1),3),3)$get(space1)747474KB,)))

$get(space2)

$if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),747474VBR,747474CBR))

$if(%__mp3_stereo_mode%,c08000$get(space2)747474$caps(%__mp3_stereo_mode%)c08000$get(space2))

$if(%__vorbis_vendor%,747474%__vorbis_vendor%)

$if(%__vorbis_version%,$get(space2)747474v%__vorbis_version%,)

$if(%__flac_vendor%,747474$caps(%__flac_vendor%),)

$if(%__aac_profile%,747474%__aac_profile%)

$if(%__mpc_profile%,%__mpc_profile%$get(space2)747474%__mpc_encoder%$get(space2)sv%__mpc_streamversion%,)

$if(%__compression%,%__compression%$get(space1)747474Compression$get(space2)$if(%__version%,v%__version%,))

$if(%__mode%,$if(%__speedup%,$caps(%__mode%)$get(space1)747474Compression$get(space2)%__speedup%$get(space2)747474v%__version%,),)

$if(%__replaygain_album_gain%,$tab(5),$tab(9))

$if(%__replaygain_track_gain%,$get(space2)747474TG:c08000$get(space1)
$cut(%__replaygain_track_gain%,5)$get(space1)747474dB,)


$if(%__replaygain_album_gain%,
$get(space2)747474AG:c08000$get(space1)$cut(%__replaygain_album_gain%,5)c08000$get(space1)747474dB,)

$if(%__replaygain_track_peak%,c08000$get(space2)747474Peak:c08000$get(space1)
$cut(%__replaygain_track_peak%,5))

$if(%__replaygain_album_gain%,$tab(4),$tab(5))
c08000$get(space2)
$if(%_time_total%,$if(%_time_total_seconds%,$right($muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%),3)'%')747474$get(space1)Played$if(%_time_elapsed%,c08000$get(space2)c08000%_time_elapsed%$get(space2),)$if(%_time_total%,747474c08000%_time_total%c08000$get(space2),)
$if(%_time_remaining%,747474%_time_remaining%,),%_time_elapsed%$get(space1)747474Listened)

Thanks a lot in advance:))

$puts(progress_char,?)

$puts(progress_length,20)

$if($strcmp($get(theme),1),

$puts(progress_color1,$rgb(164,235,12))

$puts(progress_color2,$rgb(54,106,179))

)

$puts(progress_color1a,$blend($get(progress_color1),000000,1,4.5))

$puts(progress_color2a,$blend($get(progress_color2),0000ff,1,5.7))

// progressbar

$puts(progressbar,

$if(%_length_seconds%,

$puts(progress,$muldiv(%_time_elapsed_seconds%,$get(progress_length),%_length_seconds%))

$transition($repeat($get(progress_char),$get(progress)),$get(progress_color1a),$get(progress_color1))

$transition($repeat($get(progress_char),$sub($get(progress_length),$get(progress))),$get(progress_color2a),$get(progress_color2))

$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'

,streaming...

)

)

//$get(progressbar)

I can't remember where I got this --> progress bar from:))

try this code, substitute it into your file info code

$if($get(lastplayed),
$puts(month,$substr($get(lastplayed),3,4))
$puts(day,$substr($get(lastplayed),1,2))
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1)))
$puts(year,$right($get(lastplayed),2))
$puts(month_name,$select($get(month),
Jan,Feb,March,April,May,June,July,Aug,Sept,Oct,Nov,Dec))
$if($or($strcmp($get(day),11),$strcmp($get(day),12),$strcmp($get(day),13)),$puts(xx,th),
$if($strcmp($right($get(day),1),1),$puts(xx,st),
$if($strcmp($right($get(day),1),2),$puts(xx,nd),
$if($strcmp($right($get(day),1),3),$puts(xx,rd),
$puts(xx,th))))))
$puts(time_of_year,$get(month_name) $get(day)$get(xx) 20$get(year))

is there any way to sort the tracks by disc number?

586003947[/snapback]

well, wouldnt you want it to be sorted by year?

and if it the same year (like concert album) so then by name and then of course cd1 will came before cd2.

i use this kind of sort and im very happy with it:

$if2(%album artist%,%artist%)$num(%date%,4)%album%$num(%tracknumber%,2)

Im using the %album artist% tag. Various albums are displayed all over the place (per artist, rather then at the same place just ordered by the track artists).

My playlist view is based on the navigator suite, that might be the problem. I did use your string in the "Sort By.." option, and that result is as ive just said.

miscellanea: How does ColumnsUI uses that ? ive put it in the right column, the "Use Custom Sorting Spec" is enabled, and it doesnt change anything in the order. If i order again normally, i get the same result, various artist tracks all over the place.

EDIT: ok, when i click on the column header ( i never use these ) it DOES sort it right. Any.. more comfortable way of doing it ?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I just started using Teams (and “New” Oiutlook) at work (instead of Slack) and both are truly abysmal pieces of software.
    • If you are willing to go to approx $200, then as mentioned in your other thread I think a refurbished Pixel 8 will be a great deal that will last you for years. I recently recommended that to someone at work, he was on a strict £200 budget, which got him an excellent conditioned refurbished Pixel 8 here. He's since told me its the best phone he's ever had and feels its a massive upgrade over his old Samsung A series device. I don't know the sites which deal in refurbished devices in the US, however I’m sure you will have some options like we do here. Failing that Ebay is also quite good in my experience. If you wanted something a bit cheaper, then you could maybe go for an older Pixel 7, these will still get security updates until the end of 2027. Even after that you have good third party OS support from LineageOS. It doesn't have to be a Pixel though, you can buy many older devices for a good deal that would be better than a new $100 phone and flash LineageOS to them: https://wiki.lineageos.org/devices/
    • I don't use one drive, but then I don't use any cloud storage, not even Icloud on my mac. If I did use cloud storage, then I would not use One drive, not because there is anything wrong with it, but because I can use Icloud. The only reason I see to use one drive is if your job requires you to have access to it
    • Not built in, which is not a bad thing. There are ways of adding cloud storage to it, Dropbox is the most well know that also have a client for Linux, but there are others.
  • Recent Achievements

    • First Post
      DragonOfMercy earned a badge
      First Post
    • First Post
      bella52 earned a badge
      First Post
    • Reacting Well
      Techinmay earned a badge
      Reacting Well
    • Collaborator
      WndSks went up a rank
      Collaborator
    • One Month Later
      Sopa flores earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      PsYcHoKiLLa
      206
    3. 3
      +Edouard
      154
    4. 4
      Steven P.
      87
    5. 5
      ATLien_0
      78
  • Tell a friend

    Love Neowin? Tell a friend!