Foobar2000:TrackInfoStrings
Track Info Strings
Add your custom track info strings here. Don't forget to include a screenshot!
Beto's trackinfo string
supports tech info from:
- MP3 (lame profiles and versions). you need cz's modified input std component
- Vorbis (aotuv and xiph.org releases)
- FLAC
- Monkey's Audio
- WavPack
- Last Played tag (external database only)
you may modify it at will...
// Tagname color $puts(color1,�9C6B4C�) // Section name color $puts(color2,�000000�) // Tag color $puts(color3,�000080�) // Rating $puts(rtchar,●) // Last played $puts(last_played_year,$substr(%__last_played%,1,4)) $puts(last_played_month,$substr(%__last_played%,6,7)) $puts(last_played_day,$substr(%__last_played%,9,10)) $puts(last_played_hour,$substr(%__last_played%,12,13)) $puts(last_played_min,$substr(%__last_played%,15,16)) $puts(last_played_sec,$substr(%__last_played%,18,19)) // Core code //$get(color1)Mode: $get(color3)%_trackinfo_mode%$char(10)$char(10) // Song info $get(color2)Song Info$char(10) $if(%artist%,$get(color1)Artist: $iflonger(%artist%,22,$get(color3)$cut(%artist%,22)'...'$char(10),$get(color3)%artist%$char(10))) $if(%album%,$get(color1)Album: $iflonger(%album%,21,$get(color3)$cut(%album%,21)'...'$char(10),$get(color3)%album%$char(10))) $if(%album_subtitle%,$get(color1)Album subtitle: $iflonger(%album_subtitle%,14,$get(color3)$cut(%album_subtitle%,14)'...'$char(10),$get(color3)%album_subtitle%$char(10))) $if(%subalbum%,$get(color1)Subalbum: $iflonger(%subalbum%,20,$get(color3)$cut(%subalbum%,20)'...'$char(10),$get(color3)%subalbum%$char(10))) $if(%title%,$get(color1)Title: $iflonger(%title%,23,$get(color3)$cut(%title%,23)'...'$char(10),$get(color3)%title%$char(10))) $if(%subtitle%,$get(color1)Subtitle: $iflonger(%subtitle%,20,$get(color3)$cut(%subtitle%,22)'...'$char(10),$get(color3)%subtitle%$char(10))) $char(10) //Last played $get(color2)Last Played$char(10) $get(color1)$if(%__last_played%, When: $get(color3)$get(last_played_day)/$get(last_played_month)/$get(last_played_year)$get(color1)' at '$get(color3)$get(last_played_hour):$get(last_played_min)$char(10) $get(color3)$ifgreater(%__play_counter%,1,$get(color1)Played: $get(color3)%__play_counter% times$char(10),$get(color1)Played: $get(color3)%__play_counter% time$char(10)), $get(color3)This song was never played$char(10)) $if(%__rating%, $get(color1)Rating: $get(color3)$repeat($get(rtchar),%__rating%)$get(color1)$repeat($get(rtchar),$sub(5,%__rating%)), $get(color3)This track has no rating)$char(10) $char(10) //Tech information $get(color2)Tech Info$char(10) $get(color1)Codec: $get(color3)%__codec%$char(10) $if($stricmp($codec(),FLAC),$get(color1)Vendor: $get(color3)$cut(%__FLAC_vendor%,23)$char(10)) $if($stricmp($codec(),Monkeys Audio),$get(color1)V/C: $get(color3)%__version%/%__compression%$char(10)) $if($stricmp($codec(),WavPack),$get(color1)V/C: $get(color3)%__version%/%__compression%$char(10)) $if($and($stricmp($codec(),MP3),%__lame_version%),$get(color1)Version: $get(color3)%__lame_version%$char(10)) $if($and($stricmp($codec(),MP3),%__lame_profile%),$get(color1)Profile: $get(color3)$upper(%__lame_profile%)$char(10)) $if($stricmp($codec(),Vorbis),$if($stricmp($left(%__vorbis_vendor%,2),AO),$get(color1)Vendor: $get(color3)$cut(%__vorbis_vendor%,12)$char(10), $if($stricmp($left(%__vorbis_vendor%,4),Xiph),$get(color1)Vendor: $get(color3)$cut(%__vorbis_vendor%,20)$char(10),$get(color1)Vendor: $get(color3)%__vorbis_vendor%$char(10)))) $if($stricmp($codec(),AAC),$get(color1)Profile: $get(color3)%__aac_profile%$char(10)) $if($stricmp($codec(),Musepack),$get(color1)Version: $get(color3)%__mpc_encoder%$char(10)) $if($stricmp($codec(),Musepack),$get(color1)SV/Profile: $get(color3)%__mpc_streamversion%/%__mpc_profile%$char(10)) $get(color1)Bitrate: $get(color3)%__bitrate%Kbps$char(10) $if($strcmp(%__channels%,2),$if(%__mp3_stereo_mode%,$get(color1)Stereo mode: $get(color3)%__mp3_stereo_mode%$char(10),$get(color1)Stereo mode: $get(color3)stereo$char(10)),$get(color1)Stereo mode: $get(color3)mono$char(10)) $get(color1)Compression level: $get(color3)$muldiv(%__bitrate%,100,1411)'%'$char(10) $get(color1)Samplerate: $get(color3)$div(%__samplerate%,1000) kHz$char(10) $if(%__replaygain_track_gain%,$get(color1)Track Gain: $get(color3)%__replaygain_track_gain%$char(10),$get(color1)Track Gain: $get(color3)No track gain$char(10)) $if(%__replaygain_album_gain%,$get(color1)Album Gain: $get(color3)%__replaygain_album_gain%$char(10),$get(color1)Album Gain: $get(color3)No album gain$char(10)) //$get(color1)Path: $get(color3)%_path%$char(10) //$if(%rippedby%,$get(color1)Ripper: $iflonger(%rippedby%,20,$get(color3)$cut(%rippedby%,20)'...'$char(10),$get(color3)%rippedby%$char(10))) // //$if($or($stricmp($codec(),FLAC),$and($stricmp($codec(),MP3),$not(%__lame_profile%))),$if(%encodedby%,$get(color1)Encoder: $iflonger(%encodedby%,20,$get(color3)$cut(%encodedby%,20)'...'$char(10),$get(color3)%encodedby%$char(10)))) $if(%comment%,$get(color1)Comment: $iflonger(%comment%,20,$get(color3)$cut(%comment%,20)'...'$char(10),$get(color3)%comment%$char(10)))