I noticed that diego had found a nice 'wave' icon somewhere hidden in the MDL2 assets font, and that motivated me to finally update my 'track details' code a little bit.
It aims to display only the most relevant technical information about a track.
- The sample rate is only displayed when it is not the usual 16 bit, but e.g. 24 bit.
- The sample rate is not displayed for lossy and dsd files. (because it doesn't make much sense for those)
- The amount of audio channels is not displayed for two-channel audio, only for multi-channel. (and mono, if that information is available from the metadata)
- DSD files have the DSD version displayed, not their bitrates.
E.g. instead of something like "DSF 88.2 kHz, 5645k" , it will just display "DSD64" for the standard version.
Or DSD128 and DSD256 for double- and quadruple- data rate versions.
- There is an icon that represents if a file has Track Gain. (or not)
This is how it would display in the Track Details panel:
These are a few examples of what it shows for different sorts of files:
This is the code. Just copy it into a field in: Track Details > Customize Panel:
{font: Segoe MDL2 Assets;Regular;10}{contrast: 85}" "{font: Segoe UI;Regular;8}$If($IsMatch(<.Ext>,"APE|ALAC|FLAC|TAK|WAV|AIFF")="T",$Upper(<.Ext>)" "$If($IsMatch(<.Ext>,"DFF|DSF")="T",,{contrast: 65}$IsNull(<Bit Depth>,,$If(<Bit Depth>=16,," "<Bit Depth>" bit"))),$If($IsMatch(<.Ext>,"DFF|DSF")="T",DSD$Replace($Replace($Replace($Replace($Replace(<Bitrate>,5645k,64),11290k,128),14112k,64),16934k,64),22579k,256),$Upper(<.Ext>)" "{contrast: 65}$If($Contains(<Bitrate>,VBR)=T,$Replace(<Bitrate>,VBR,"~"),<Bitrate>)))$If($Contains(<Channels>,Stereo)=T,""," "{contrast: 65}$If($IsMatch(<Channels>,5 Channels)="T",5.0,<Channels>)){font: Segoe MDL2 Assets;Regular;9}{contrast: 80}" "{font: Segoe UI;Regular;8}{contrast: 85}$IsNull(<Track Gain>," No RG",){font: Segoe MDL2 Assets;Regular;8}{contrast: 85}" "{font: Segoe UI;Regular;8}{contrast: 90}<Time>
For those who get a little bit nervous and insecure when they don't see '16 bit', '2-channel', track gain, sample-rates specified for all their tracks, I made a second version which will display like this:
This is the code:
{font: Segoe MDL2 Assets;Regular;10}{contrast: 85}" "{font: Segoe UI;Regular;8}$If($IsMatch(<.Ext>,"APE|ALAC|FLAC|TAK|WAV|AIFF")="T",$Upper(<.Ext>)" "{font: Segoe UI;Regular;8}{contrast: 65}<Bit Depth>/$Split($Split(<Sample Rate>," ",1),.,1),$If($IsMatch(<.Ext>,"DFF|DSF")="T",DSD$Replace($Replace($Replace($Replace($Replace(<Bitrate>,5645k,64),11290k,128),14112k,64),16934k,64),22579k,256),$Upper(<.Ext>)" "{font: Segoe UI;Regular;8}{contrast: 75}<Bitrate>" / "<Sample Rate>)){contrast: 65}$If($Contains(<Channels>,Stereo)=T," 2.0"," "{contrast: 65}$If($IsMatch(<Channels>,5 Channels)="T",5.0,<Channels>)){font: Segoe MDL2 Assets;Regular;9}{contrast: 80}" "{font: Segoe UI;Regular;8}{contrast: 85}$IsNull(<Track Gain>,"No RG",<Track Gain>){font: Segoe MDL2 Assets;Regular;8}{contrast: 85}" "{font: Segoe UI;Regular;8}{contrast: 90}<Time>