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

    • Absolutely 👍
    • Exactly what I was thinking. All of a sudden in span of a month multiple CEO's from scam altman to this clown has had sudden change of heart does not seem organic change lol
    • Microsoft releases Visual Studio Code 1.124 with smarter autonomous AI agents by Paul Hill Microsoft has just released Visual Studio Code 1.124 with a focus on faster agent workflows and improved agent autonomy. Microsoft outlined the following features as the key items in this update: Autopilot: Autopilot, enabled by default, is now smarter to determine when a task is truly done. Background sessions: Quickly send a request in the background and keep composing the next session. Session navigation: Search, jump, and step through agent sessions with the keyboard. Browser history: Revisit and search pages you've already opened in the integrated browser. With VS Code 1.124, Microsoft has enabled Autopilot by default. For those that don’t know, Autopilot is a chat permission level that you can pick to give agents permission to take initiative and act autonomously, without needing explicit user approval for each action. Also related to Autopilot, Microsoft introduced Advanced Autopilot, which changes how Autopilot decides when to keep iterating and when to finish. This helps you get more complete results without manually monitoring loops. This feature works using a small utility model that reads a transcript of the chat and decides when the task is done. Another new feature in 1.124 is the Agents window, which lets you easily explore, iterate on, and review agent sessions across projects and machines. Previously, starting a new agent session meant waiting for it to load before you could compose the next one. With this update, sessions can be requested in the background. This VS Code update also brings session navigation updates to switch between them more quickly. The update also lets you reload or reopen the Agents window so that it no longer loses your layout, so you will land back where you left off. If you use the integrated browser in VS Code, you will notice that it now retains the history of visited pages. Suggestions will now show when typing in the URL bar and can be managed by using Ctrl+H within a browser tab. The browser now also lets you customize the toolbar more; just right-click on the toolbar area to the right of the URL input. Finally, the browser has faster agentic text entry. Another improvement is experimental enterprise-managed Copilot plugin policies that allow admins to centrally control which chat plugins and plugin marketplaces are available to developers. If you have VS Code installed, 1.124 should install automatically, or you'll get a prompt. If you don't have it installed, get it here.
  • Recent Achievements

    • First Post
      X-No-file earned a badge
      First Post
    • One Month Later
      johnjacobb40 earned a badge
      One Month Later
    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
    • Reacting Well
      Sir_Timbit earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      511
    2. 2
      PsYcHoKiLLa
      214
    3. 3
      +Edouard
      145
    4. 4
      Steven P.
      86
    5. 5
      ATLien_0
      84
  • Tell a friend

    Love Neowin? Tell a friend!