Created
February 1, 2021 19:02
-
-
Save Freem-di/78ba2eda2f723d0ceb22e96bf3afaaa7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$puts(|,$rgb(64,64,64)' ● '$rgb(0,0,0)) | |
$rgb(0,0,0) | |
//===================== | |
// Левая часть | |
//===================== | |
%codec% | |
$get(|)%bitrate%' Kbit/s'[' '%__extrainfo%] | |
$get(|)%samplerate%' Hz' | |
//Если MP3 | |
$if($stricmp(%codec%,'mp3'), | |
$get(|)$caps(%__mp3_stereo_mode%), | |
//Если MPC | |
$if($stricmp(%codec%,'Musepack'), | |
$get(|)$replace(%__codec_profile%,'',), | |
//Если OGG | |
$if($stricmp(%codec%,'Vorbis'),, | |
//Если APE | |
$if($stricmp(%codec%,'Monkey'$char(39)'s Audio'), | |
$get(|)%__codec_profile% | |
$get(|)%__bitspersample%' Bits', | |
//Если FLAC | |
$if($stricmp(%codec%,'FLAC'), | |
$get(|)%__bitspersample%' Bits', | |
//Если WMA v7/v8 | |
$if($stricmp(%codec%,'Windows Media Audio v7/v8'),, | |
//Если WMA v9 | |
$if($stricmp(%codec%,'Windows Media Audio V9 (Lossless Mode)'),, | |
//Если WAV | |
$if($stricmp(%codec%,'PCM'), | |
$get(|)%__bitspersample%' Bits', | |
//Если AC3 | |
$if($stricmp(%codec%,'ATSC A/52'), | |
))))))))) | |
$get(|)%__channels%' '$ifgreater(%__channels%,1,'Channels','Channel') | |
//ReplayGain | |
$if($or(%__replaygain_track_gain%,%__replaygain_album_gain%), | |
$get(|)$if3(%__replaygain_track_gain%,'No')' TG' | |
$get(|)$if3(%__replaygain_album_gain%,'No')' AG' | |
) | |
//типы тегов | |
$if(%__tagtype%, | |
$get(|) | |
$replace(%__tagtype%,'|',' + ')) | |
//% сжатия | |
$get(|) | |
$left($muldiv(%__bitrate%,10000,1411),$sub($len($muldiv(%__bitrate%,10000,1411)),2))'.'$right($muldiv(%__bitrate%,10000,1411),2)' % Compression' | |
//Размер файла | |
$if(%_time_total%, | |
$get(|)$ifgreater($div(%filesize%,1024),999,$left($div(%filesize%,1024),$sub($len($div(%filesize%,1024)),3))' '$right($div(%filesize%,1024),3),$div(%filesize%,1024))' Kb' | |
) | |
//===================== | |
// Правая часть | |
//===================== | |
$tab() | |
$rgb(0,0,0) | |
//Процент воспроизведения | |
$if(%length%, | |
$max(0,$left($muldiv(%playback_time_seconds%,1000,%length_seconds%),$sub($len($muldiv(%playback_time_seconds%,1000,%length_seconds%)),1)))'.'$right($muldiv(%playback_time_seconds%,1000,%length_seconds%),1)' % Played' | |
$get(|) | |
) | |
//Время проигрывания/всего/осталось | |
'+'$left('00:00:00',$sub(8,$len(%playback_time%)))%playback_time% | |
[' '$left('00:00:00',$sub(8,$len(%length%)))%length%' '] | |
['-'$left('00:00:00',$sub(8,$len(%playback_time_remaining%)))%playback_time_remaining%] | |
//Если пауза | |
$get(|) | |
$if(%ispaused%,$rgb(128,0,0)$if(%length%,'Paused','Stoped'), | |
$rgb(192,192,192)$if(%length%,'Paused','Stoped')) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment