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

    • Formatting would be awesome if fully customised and then roll out the settings as a company wide standard.
    • I just want to know why the volume control feature in the browser version keeps appearing then disappearing, here today - gone tomorrow. Now it's gone again. Annoying as hell.
    • When you have only lies and blood libels to present, you've lost. And how hard is it for you to look up BBC and AP? You hate Jews, just admit it.
    • This article does not make sense and it’s very evident, the bug wasn’t confirmed to exist, because the application itself runs on editions of Windows which make it impossible to run Hyper-V VMs on, “Basically, Claude Desktop on Windows spins up a 1.8GB Hyper-V virtual machine if you use Claude Cowork or agent mode even once.”, suggests the bug is caused by something else otherwise it would only happen to users with the capability of running Hyper-V VMs and that’s only if Hyper-V was enabled which is by default not enabled. The true issue is that the author who reported the bug used the incorrect terminology, it’s actually a container, not a VM that is being started by the way. There were users on macOS reporting the same issue, Hyper-V, doesn’t exist on that platform obviously. Every single user who confirmed the problem in the last week was either using macOS making this issue impossible to be relevant to them, or was a comment talking about WSL, which the author indicated 3 months ago was disabled.
    • “To prevent hallucination issues and keep the database clean, the platform uses a multi-agent verification loop to check code quality.” - This absolutely isn’t happening. ”Before the massive rise of LLMs, which tanked its traffic by about 50% over the last couple of years, Stack Overflow was the go-to website for millions of programmers seeking coding solutions.” - It still is trusted, because the community of users, blocked other users from submitting false and misleading answers generated by AI agents that can be convinced something it generated is actually incorrect even if it’s actually correct. The company itself doesn’t know what it wants to be so it keeps trying and failing to introduce AI features to the platform. This effort will also fail, already submitted one successful poison pill, look forward to generating more.
  • Recent Achievements

    • One Month Later
      Sopa flores earned a badge
      One Month Later
    • First Post
      StaticMatrix earned a badge
      First Post
    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • Rookie
      lamborghiniv10 went up a rank
      Rookie
    • One Month Later
      pinnclepd earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      524
    2. 2
      PsYcHoKiLLa
      211
    3. 3
      +Edouard
      160
    4. 4
      Steven P.
      98
    5. 5
      ATLien_0
      83
  • Tell a friend

    Love Neowin? Tell a friend!