Skip to main content

Topic: foo_uie_trackinfo (Read 721586 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • chongy5
  • [*][*]
foo_uie_trackinfo
Reply #975
This component is now integrated in Panels UI, that's what you need.


Okay cheers, I had a feeling it was like that - is there any alternatives for ColumnsUI then, or is PanelsUI definitely the way to go? (With this whole terrestial situation I'm not too sure what to stick to, ColumnsUI seems safe at the moment!)

Thanks

foo_uie_trackinfo
Reply #976
You don't have to set Panels as the UI, just install it and the "Track Display" and "Single Column Playlist" panels are available in Columns.

  • chongy5
  • [*][*]
foo_uie_trackinfo
Reply #977
You don't have to set Panels as the UI, just install it and the "Track Display" and "Single Column Playlist" panels are available in Columns.


Yeah, just seen this. Thanks for the help! Much appreciated.

  • OnPoint
  • [*]
foo_uie_trackinfo
Reply #978
You should ask Phi before you release that, you know.

Here's my current one:



Code: [Select]
// Original code by necropimp, modified by AstreaEdge, final by KockRoach
// Appearance changed by Habla. Muchas gracias to those above!
// Best viewed with vert pad 10, hor pad 13, line space 2, Segoe UI 7pt font, black background

// !!!!BEGIN USER CONFIGURATION!!!!

// Show Artist? (1 = show, 0 = don't show)
$puts(arts,1)

// Show Album?
$puts(albs,1)

// Show Title?
$puts(tils,1)

// Info Heading Color e.g. "Title:"
$puts(head,$rgb(61,129,193))

// Info Color e.g. "Black Dog"
$puts(info,$rgb(255,255,255))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(255,255,255))

// Separator
// the separators (Song,Play,Tech info) will change to a different color if the panel mode is set to Follow cursor.
// change "followcursorcol" to change this color. It is currently set to flash orange.
$puts(followcursorcol,$rgb(200,150,50))
$puts(text2,$rgb(255,255,255))
$puts(text1,$if(%_trackinfo_nowplaying%,$rgb(61,129,193))$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,$rgb(0,0,0))
$puts(seplen,83)
$puts(sepchar,'.')

// Set Rating character
$puts(ratingchar,'●●●')

// !!!!END USER CONFIGURATION!!!!

// Day Conversion
$puts(day,$substr(%last_played%,9,10))
$if(%last_played%,
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1))))
$if($strcmp($get(day),11),$puts(xx,th),
$if($strcmp($get(day),12),$puts(xx,th),
$if($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)))))))

// Month Conversion
$puts(month,$substr(%last_played%,6,7))
$puts(month_name,$select($get(month),
Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec))

// Year Conversion
$puts(year,$substr(%last_played%,1,4))

// Time Conversion
$puts(hour,$substr(%last_played%,12,13))
$puts(min,$substr(%last_played%,14,16))
$puts(sec,$substr(%last_played%,17,19))

// 24 Hour to 12 Hour Conversion
$if($strcmp($left($get(hour),1),0),$puts(hour1,$right($get(hour),1)))
$if($strcmp($left($get(hour),1),1),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($left($get(hour),1),2),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($get(hour),00),$puts(hour1,12))
$if($strcmp($get(hour),10),$puts(hour1,10))
$if($strcmp($get(hour),11),$puts(hour1,11))
$if($strcmp($get(hour),12),$puts(hour1,12))

// AM/PM Conversion
$if($strcmp($get(hour),00),$puts(yy,am))
$if($strcmp($get(hour),10),$puts(yy,am))
$if($strcmp($get(hour),11),$puts(yy,am))
$if($strcmp($get(hour),12),$puts(yy,pm))
$if($strcmp($get(hour),24),$puts(yy,am))
$if($strcmp($left($get(hour),1),0),$puts(yy,am))
$if($strcmp($left($get(hour),1),1),$puts(yy,pm))
$if($strcmp($left($get(hour),1),2),$puts(yy,pm))

// Date Format
$puts(time_of_year,$get(month_name) $get(day)$get(xx)',' $get(year))

// Time Format
$puts(time_of_day,$get(hour1)$get(min)$get(sec) $get(yy))

// SONG INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)S o n g  I n f o $get(text1)']'$char(10)

$if($strcmp(1,$get(tils)),$if(%title%,$get(head)Title: $get(info)%title%$char(10),),)
$if($strcmp(1,$get(arts)),$if(%artist%,$get(head)Artist: $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$get(head)Album: $get(info)%album%$char(10),),)
$if(%date%,$get(head)Year: $get(info)%date%$char(10),)
$if(%tracknumber%,$get(head)Track #: $get(info)%tracknumber%$char(10),)
$if(%genre%,$get(head)Genre: $get(info)%genre%$char(10),)
$if(%rating%,$get(head)Rating: $repeat($get(info)$get(ratingchar),%rating%)
$repeat($rgb(70,70,70)$get(ratingchar),$sub(5,%rating%))$char(10),)

// TECH INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)T e c h  I n f o $get(text1)']'$char(10)

$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%, / %_length%,)$if(%_length%, / -%_time_remaining%),%_length%)$char(10)
$get(head)Type:$if(%__codec%, $get(info)%__codec%) $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kb/s $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$char(10)
$if(%__lame_version%,$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%)'$char(10)
$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample% bits/sample$char(10),)
$if(%__samplerate%,$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%_filesize%,$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)

$if(%last_played%,
// PLAY STATS SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)P l a y  I n f o $get(text1)']'
$char(10),)

$if(%play_counter%,$get(head)Played $get(info)%play_counter% times$char(10),)
$if(%last_played%,$get(head)Last played on $get(info)$get(time_of_year) at $get(time_of_day)$char(10),)
$get(head)$progress(%_time_elapsed_seconds%,%_time_total_seconds%,52,$get(info)'()',$get(head)'-')
 $get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%'$char(10)

Question: Why can't the panel update %rating%, %last_played%, and %play_count% on the fly? In Navigator, they update immediately.


How do you turn follow cursor off for this one?

  • -Sacred-
  • [*]
foo_uie_trackinfo
Reply #979
hehe  i merged some of the codes posted here on this thread and made them work togther and i got this 
Code: [Select]
$select($add($mod($div(%playback_time_seconds%,10),2),1),// Original code by necropimp, modified by AstreaEdge, final by KockRoach
// Appearance changed by Habla. Muchas gracias to those above!
// Best viewed with vert pad 10, hor pad 13, line space 2, Segoe UI 7pt font, black background

// !!!!BEGIN USER CONFIGURATION!!!!

// Show Artist? (1 = show, 0 = don't show)
$puts(arts,1)

// Show Album?
$puts(albs,1)

// Show Title?
$puts(tils,1)

// Info Heading Color e.g. "Title:"
$puts(head,$rgb(61,129,193))

// Info Color e.g. "Black Dog"
$puts(info,$rgb(80,80,80))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(80,80,80))

// Separator
// the separators (Song,Play,Tech info) will change to a different color if the panel mode is set to Follow cursor.
// change "followcursorcol" to change this color. It is currently set to flash orange.
$puts(followcursorcol,$rgb(200,150,50))
$puts(text2,$rgb(80,80,80))
$puts(text1,$if(%_trackinfo_nowplaying%,$rgb(61,129,193))$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,$rgb(0,0,0))
$puts(seplen,83)
$puts(sepchar,'.')

// Set Rating character
$puts(ratingchar,'•')


// !!!!END USER CONFIGURATION!!!!

// Day Conversion
$puts(day,$substr(%last_played%,9,10))
$if(%last_played%,
$if($strcmp($left($get(day),1),0),$puts(day,$right($get(day),1))))
$if($strcmp($get(day),11),$puts(xx,th),
$if($strcmp($get(day),12),$puts(xx,th),
$if($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)))))))

// Month Conversion
$puts(month,$substr(%last_played%,6,7))
$puts(month_name,$select($get(month),
Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec))

// Year Conversion
$puts(year,$substr(%last_played%,1,4))

// Time Conversion
$puts(hour,$substr(%last_played%,12,13))
$puts(min,$substr(%last_played%,14,16))
$puts(sec,$substr(%last_played%,17,19))

// 24 Hour to 12 Hour Conversion
$if($strcmp($left($get(hour),1),0),$puts(hour1,$right($get(hour),1)))
$if($strcmp($left($get(hour),1),1),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($left($get(hour),1),2),$puts(hour1,$sub($get(hour),12)))
$if($strcmp($get(hour),00),$puts(hour1,12))
$if($strcmp($get(hour),10),$puts(hour1,10))
$if($strcmp($get(hour),11),$puts(hour1,11))
$if($strcmp($get(hour),12),$puts(hour1,12))

// AM/PM Conversion
$if($strcmp($get(hour),00),$puts(yy,am))
$if($strcmp($get(hour),10),$puts(yy,am))
$if($strcmp($get(hour),11),$puts(yy,am))
$if($strcmp($get(hour),12),$puts(yy,pm))
$if($strcmp($get(hour),24),$puts(yy,am))
$if($strcmp($left($get(hour),1),0),$puts(yy,am))
$if($strcmp($left($get(hour),1),1),$puts(yy,pm))
$if($strcmp($left($get(hour),1),2),$puts(yy,pm))

// Date Format
$puts(time_of_year,$get(month_name) $get(day)$get(xx)',' $get(year))

// Time Format
$puts(time_of_day,$get(hour1)$get(min)$get(sec) $get(yy))

// SONG INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)S o n g I n f o $get(text1)']'$char(10)

$if($strcmp(1,$get(tils)),$if(%title%,$get(head)Title: $get(info)%title%$char(10),),)
$if($strcmp(1,$get(arts)),$if(%artist%,$get(head)Artist: $get(info)%artist%$char(10),),)
$if($strcmp(1,$get(albs)),$if(%album%,$get(head)Album: $get(info)%album%$char(10),),)
$if(%date%,$get(head)Year: $get(info)%date%$char(10),)
$if(%tracknumber%,$get(head)Track #: $get(info)%tracknumber%$char(10),)
$if(%genre%,$get(head)Genre: $get(info)%genre%$char(10),)
$if(%rating%,$get(head)Rating: $repeat($get(info)$get(ratingchar),%rating%)
$repeat($rgb(70,70,70)$get(ratingchar),$sub(5,%rating%))$char(10),)
$if(%last_played%,
// PLAY STATS SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)P l a y I n f o $get(text1)']'
$char(10),)

$if(%play_counter%,$get(head)Played $get(info)%play_counter% times$char(10),)
$if(%last_played%,$get(head)Last played on $get(info)$get(time_of_year) at $get(time_of_day)$char(10),)
$get(head)$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,30,$get(info)'█',$get(head)'█')
$get(info)$muldiv(%_time_elapsed_seconds%,100,%_length_seconds%)'%'$char(10)

//Test
$puts(back_symbol,'● ')
$puts(back_color,C0C0C0)
$puts(fore_symbol,'● ')
$puts(fore_color,)
$puts(fragments,5)

$puts(time_total,$mul($sub($get(fragments),1),2))
$puts(time_mod,$mod(%playback_time_seconds%,$get(time_total)))

$if(%isplaying%,
$ifgreater($get(time_mod),$div($get(time_total),2),
$get(back_color)$repeat($get(back_symbol),$sub($get(time_total),$get(time_mod)))
$get(fore_color)$get(fore_symbol)
$get(back_color)$repeat($get(back_symbol),$add($sub($get(time_mod),$get(fragments)),1))
,
$get(back_color)$repeat($get(back_symbol),$get(time_mod))
$get(fore_color)$get(fore_symbol)
$get(back_color)$repeat($get(back_symbol),$sub($sub($get(fragments),1),$get(time_mod)))
),
)
//Test2
$select($add($mod($div(%playback_time_seconds%,5),2),1),%artist%,%album%)

//Test3

$blend(FFDA09|FFDA09,F909FF|F909FF,%playback_time_seconds%,10)
$select($add(1,$mod(%playback_time_seconds%,10)),
//●••••,•●•••,••●••,•••●•,••••●,•••●•,••●••,•●•••)
// '/////','\\\\','///','\\','/','\\','///','\\\\')
●••••,●●•••,●●●••,●●●●•,●●●●●,•●●●●,••●●●,•••●●,••••●,•••••)

//test4

$if($or(%_isplaying%,%_ispaused%),
$rgb(0,0,0)
$select($add(1,$mod(%_time_elapsed_seconds%,8)),←,↖,↑,↗,→,↘,↓,↙,)
)

//Test 5
$puts(Len,5)
$puts(PChar,•)
$puts(Cnt0,$mod(%_time_elapsed_seconds%,$add($get(Len),1)))

$puts(Phase,$add($div($mod(%_time_elapsed_seconds%,$mul($add($get(Len),1),2)),$mul($add($get(Len),1),1)),1))
$puts(Cycle1,$add($div($mod(%_time_elapsed_seconds%,$mul($add($get(Len),1),4)),$mul($add($get(Len),1),2)),1))
//from 1 to 7
$puts(Cycle2a,$add($div($mod(%_time_elapsed_seconds%,$mul($add($get(Len),1),28)),$mul($add($get(Len),1),4)),1))
$puts(Cycle2a,$add($get(Cycle2a),$select($get(Cycle1),0,1)))
$puts(Cycle2a,$ifgreater($get(Cycle2a),7,1,$get(Cycle2a)))
//from 1 to 6
$puts(Cycle2b,$add($div($mod(%_time_elapsed_seconds%,$mul($add($get(Len),1),24)),$mul($add($get(Len),1),4)),1))

$put(Cola,$select($get(Cycle2a)
,FFEBBF|FFEBBF
,4FA7FF|4FA7FF
,80FF80|80FF80
,FBAAFB|FBAAFB
,80FFFF|80FFFF
,FFD2D5|FFD2D5
,E1E1E1|E1E1E1
,FFFFFF|FFFFFF))
//$get(Cycle2a)

$put(Colb,$select($get(Cycle2b)
,E1E1E1|E1E1E1
,80FF80|80FF80
,FBAAFB|FBAAFB
,FFEBBF|FFEBBF
,80FFFF|80FFFF
,FFD2D5|FFD2D5
,4FA7FF|4FA7FF
,FFFFFF|FFFFFF))
//$get(Cycle2b)


//$puts(Colz,0000A0|008000)
$puts(Colz,006000|800000)
$puts(Col1,$select($get(Phase),$select($get(Cycle1),$get(Cola),$get(Colb)),$get(Colz)))
$puts(Col2a,$select($get(Phase),$get(Colz),$select($get(Cycle1),$get(Colb),$get(Cola))))
$puts(Col2b,$select($get(Phase),$get(Colz),$select($get(Cycle1),$get(Cola),$get(Colb))))


// Formatting
$if(%_isplaying%,$transition($repeat($get(PChar),$get(Cnt0)),$blend($get(Col1),$get(Col2a),$min($get(Cnt0),$sub($get(Len),1)),$get(Len)),$blend($get(Col1),$get(Col2a),1,$get(Len)))$get(Col1)$get(PChar)$transition($repeat($get(PChar),$sub($get(Len),$get(Cnt0))),$blend($get(Col1),$get(Col2b),1,$get(Len)),$blend($get(Col2b),$get(Col1),$max($get(Cnt0),1),$get(Len))),)



//Test 6
$if($or(%isplaying%,%ispaused%),
$select($add(1,$mod(%playback_time_seconds%,4)),$char(9835) ,$char(9835) $char(9835) ,$char(9835) $char(9835) $char(9835) ,$char(9835) $char(9835) $char(9835) $char(9835) ),
%playlist_number%)

//test 7

$rgb(80,80,80)$repeat($char(9679),%rating%)$repeat($char(9674),$sub(5,%rating%))$rgb(),
// !!!!BEGIN USER CONFIGURATION!!!!

// Show Artist? (1 = show, 0 = don't show)
$puts(arts,1)

// Show Album?
$puts(albs,1)

// Show Title?
$puts(tils,1)

// Info Heading Color e.g. "Title:"
$puts(head,$rgb(61,129,193))

// Info Color e.g. "Black Dog"
$puts(info,$rgb(80,80,80))

// Info Annotation Color (e.g. kbps is the annotation)
$puts(anno,$rgb(80,80,80))

// Separator
// the separators (Song,Play,Tech info) will change to a different color if the panel mode is set to Follow cursor.
// change "followcursorcol" to change this color. It is currently set to flash orange.
$puts(followcursorcol,$rgb(200,150,50))
$puts(text2,$rgb(80,80,80))
$puts(text1,$if(%_trackinfo_nowplaying%,$rgb(61,129,193))$if(%_trackinfo_followcursor%,$get(followcursorcol)))
$puts(fadeend,$rgb(0,0,0))
$puts(seplen,83)
$puts(sepchar,'.')

// Set Rating character
$puts(ratingchar,'•')

// TECH INFO SEPARATOR
$transition($repeat($get(sepchar),$get(seplen)),$get(fadeend),$get(text1))$get(text1)'[' $get(text2)T e c h I n f o $get(text1)']'$char(10)

$get(head)Length: $get(info)$if(%_isplaying%,%_time_elapsed%$get(anno)$if(%_length%, / %_length%,)$if(%_length%, / -%_time_remaining%),%_length%)$char(10)
$get(head)Type:$if(%__codec%, $get(info)%__codec%) $get(info)
$if2(%__bitrate_dynamic%,%__bitrate%) $get(anno)Kb/s $if($stricmp(%__codec%,mp3),$if($stricmp(%__extrainfo%,vbr),VBR,CBR))
$char(10)
$if(%__lame_version%,$get(head)Preset: $get(info)$left(%__lame_version%,4) $right(%__lame_version%,4) [$upper(%__lame_profile%)]$char(10),)
$if(%__flac_vendor%,$get(head)Encoder: $get(info)$if($stricmp(%__flac_vendor%,reference libFLAC 1.1.2 20050205),FLAC 1.1.2 -8)$char(10),)
$if(%__mpc_profile%,$get(head)MPC Profile: $get(info)%__mpc_profile%$char(10),)
$get(head)Compression: $get(info)$div(1411,%__bitrate%).$substr($muldiv(1411,100,%__bitrate%),2,3):1 '('$get(info)$muldiv(%__bitrate%,100,1411)$get(anno)'%)'$char(10)
$get(head)Channels: $get(info)$if($stricmp($codec(),MP3),$get(space2)$caps(%__mp3_stereo_mode%),
$if(%__channels%,$ifgreater(%__channels%,1,Stereo,Mono),'?'))$char(10)
$if(%__bitspersample%,$get(head)Bitdepth: $get(info)%__bitspersample% bits/sample$char(10),)
$if(%__samplerate%,$get(head)Samplerate: $get(info)$div(%__samplerate%,1000).$substr(%__samplerate%,3,3) KHz $char(10))
$if(%_filesize%,$get(head)Filesize: $get(info)
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),100,1048576),2),2) $get(anno)'MB'$char(10),)
)

It Should give u "2" views will switch between them every 10 seconds
1st view is >>


2nd View is >>
  • Last Edit: 20 February, 2008, 08:35:32 PM by -Sacred-

  • Bobjua
  • [*][*]
foo_uie_trackinfo
Reply #980
$char(1)C is not working for centering.

foo_uie_trackinfo
Reply #981
This component should be brought back, since now Panels UI is discontinued and since it is now unsupported, gives that nasty warning when starting up.

Having to add another complete UI plugin to foobar, unsupported and unmaintained just to have a panel to display some TAGZ seems a bit too much...

  • blubbo
  • [*]
foo_uie_trackinfo
Reply #982
This component should be brought back, since now Panels UI is discontinued and since it is now unsupported, gives that nasty warning when starting up.

Having to add another complete UI plugin to foobar, unsupported and unmaintained just to have a panel to display some TAGZ seems a bit too much...


Version 0.8.1 works just fine.

foo_uie_trackinfo
Reply #983

This component should be brought back, since now Panels UI is discontinued and since it is now unsupported, gives that nasty warning when starting up.

Having to add another complete UI plugin to foobar, unsupported and unmaintained just to have a panel to display some TAGZ seems a bit too much...


Version 0.8.1 works just fine.


Thank you, i checked the link available in the wiki:

http://stephan.kochen.nl/proj/foobar2000.html#trackinfo and couln't find a download link 

  • livedead13
  • [*]
foo_uie_trackinfo
Reply #984
can anyone tell me how to write the format for bit depth?

i've tried using $info(bitspersample) as indicated HERE, but it's not displaying anything.

thanks.

  • Benji99
  • [*][*]
foo_uie_trackinfo
Reply #985
I'm looking for something similar to this plugin that I can use with the Default UI as UI Element.

NOTE: I've tried foo_dockable_panels, while a neat idea, I'm really looking for for UI element that I would integrate within the Default UI, and especially, that I could have multiple tabbed elements.

Any suggestions?

  • Hakubo
  • [*][*][*][*]
foo_uie_trackinfo
Reply #986
Any suggestions?
You can stop looking. Until public SDK with UI Elements specification is released, there will be no third-party UI Elements.

  • Benji99
  • [*][*]
foo_uie_trackinfo
Reply #987
Any suggestions?
You can stop looking. Until public SDK with UI Elements specification is released, there will be no third-party UI Elements.



Thanks for the reply, that would explain a few things.
However, if that's the case, how come the foo_facets plugin is compatible as an element for the Default UI?

  • Hakubo
  • [*][*][*][*]
foo_uie_trackinfo
Reply #988
Facets is kind of semi-official component (the only one there is, AFAIK). Due to close interaction with core development, Frank Bicking has access to the closed part of SDK.

  • livedead13
  • [*]
foo_uie_trackinfo
Reply #989
can anyone tell me how to write the format for bit depth?

i've tried using $info(bitspersample) as indicated HERE, but it's not displaying anything.

thanks.

anyone?

  • shakey_snake
  • [*][*][*][*][*]
  • Moderator
foo_uie_trackinfo
Reply #990

can anyone tell me how to write the format for bit depth?

i've tried using $info(bitspersample) as indicated HERE, but it's not displaying anything.

thanks.

anyone?
I hope you're not trying to find the "bit depth" of lossy files. 
elevatorladylevitateme

  • livedead13
  • [*]
foo_uie_trackinfo
Reply #991


can anyone tell me how to write the format for bit depth?

i've tried using $info(bitspersample) as indicated HERE, but it's not displaying anything.

thanks.

anyone?
I hope you're not trying to find the "bit depth" of lossy files. 

i'm trying to emulate the properties window inside a track info panel, and it would be nice to display the bits per sample to distinguish 16-bit and 24-bit files.

so... is this possible?

  • shakey_snake
  • [*][*][*][*][*]
  • Moderator
foo_uie_trackinfo
Reply #992
With lossless files, yes.

By definition, Lossy files do not have bit depth.
elevatorladylevitateme

  • livedead13
  • [*]
foo_uie_trackinfo
Reply #993
haha. i feel like an idiot. i was expecting to see 16-bit show up when playing an mp3 and just assumed the title format wasn't working.

i just played a couple lossless files and there it is. excellent.

thanks for pointing that out, shakey snake. apologies for being so dense.

  • danny.d
  • [*][*]
foo_uie_trackinfo
Reply #994
Anyone knows how to blur the background color?

Also, is it possible to have different text font sizes, say bigger for the artist and smaller for the rest?

Thanks
  • Last Edit: 20 June, 2008, 07:36:13 AM by danny.d

  • jgro
  • [*]
foo_uie_trackinfo
Reply #995
Anyone knows how to blur the background color?

Also, is it possible to have different text font sizes, say bigger for the artist and smaller for the rest?

Thanks



Here is what I'm using for some time now:

Code: [Select]
$drawrect(0,0,0,0,pencolor-null brushcolor-118-118-118)
$padding(2,4)$align(center,middle)

$font(,14,,225-225-225)
$if(%_trackinfo_notrack%,
    No Track
,

//// PAUSED
$align(left,bottom)

$char(10)
$font(@Arial Unicode MS,2,,118-118-118)....................

$font(,11, bold glow-250-178-120 glowexpand-1,25-55-45)$if(%_ispaused%,'< Paused >',)
////

$align(center,)

$char(10)$font(,4,,218-118-118).

$font(,1,,118-118-118)$char(10)

$iflonger(%album artist%,33,$font(,12,,231-231-235)[%album artist%],$font(,14,,231-231-235)[%album artist%])

$char(10)$font(,2,,218-118-118).
$char(10)

$iflonger(%album%,50,$font(,9,,229-229-232)[%album%],$font(,10,,229-229-232)[%album%])
$char(10)
$font(,6,,236-236-236)
? ? ?
//$char(10)
//$font(,1,,118-118-118)
//?
$char(10)
$iflonger(%title%,43,$font(,10,,242-198-130)[ %title% ],$font(,11,,242-198-130)[%title%])
))


// PerSecond

$font(@Arial Unicode MS,11,,236-236-239)

$align(center,bottom)[%playback_time_remaining% / %length%]


//$font(@Arial Unicode MS,11,,236-236-239)

$char(10)
$font(,2,,118-118-118).


cu
jgro

  • danny.d
  • [*][*]
foo_uie_trackinfo
Reply #996
Hi jgro,

Thanks for the code.  Does this require panels ui?  Because I'm using the latest foobar version - which does not accept panels ui anymore, and I am trying to do font changes and background blur with foo_uie_trackinfo only...

EDIT:

I just stumbled upon trackinfo mod...  Sooo much stuff to keep track of...  Thanks again, jgro
  • Last Edit: 20 June, 2008, 10:19:57 AM by danny.d

  • jgro
  • [*]
foo_uie_trackinfo
Reply #997
Hi jgro,

Thanks for the code.  Does this require panels ui?  Because I'm using the latest foobar version - which does not accept panels ui anymore, and I am trying to do font changes and background blur with foo_uie_trackinfo only...

EDIT:

I just stumbled upon trackinfo mod...  Sooo much stuff to keep track of...  Thanks again, jgro

jep, trackinfo mod 0.8.0 beta does it the same way in 0.9.5.3 as p*nels ui in pre-versions for me.
Btw., if you wonder, why I'm using

Code: [Select]
$char(10)
$font(,2,,118-118-118).

at the end: That is just a "dot" in background-color 118-118-118, so it is invisible. 
Depending on the fontsize (here: "2"), you can adjust the space between the displayed "%playback_time_remaining% / %length%" and bottom of the track info panel. 

Have a nice weekend 
jgro

  • Falstaff
  • [*][*][*][*][*]
foo_uie_trackinfo
Reply #998
don't get confused with trackinfo panel and trackinfo_mod which are  different components.

this topic is for trackinfo panel only. 
  • Last Edit: 20 June, 2008, 01:15:25 PM by Falstaff

  • dutch109
  • [*][*][*]
foo_uie_trackinfo
Reply #999
Hi,

Here is my script :

Code: [Select]
$tab()'[' Mode %_trackinfo_mode% ']'$tab()$crlf()$crlf()

$if(%_trackinfo_notrack%,$crlf()$crlf()No track,

$if($or($stricmp($info(codec),PCM),$stricmp($info(codec),CDDA)),$puts(isuncomp,1))

$puts(ratiocu,$muldiv(%bitrate%,100000,$mul(%samplerate%,$info(bitspersample),$info(channels))))

$if($meta_test(title),
$tab()808080______________ Tag ______________$tab()$crlf()
[Artist :  0000D9%artist%$crlf()]
[Album Artist :  0000D9$meta(album artist)$crlf()]
Title :  0000D9%title%$crlf()
[Track n° :  0000D9%tracknumber%[/%totaltracks%]$crlf()]
[Album :  0000D9%album%$crlf()]
[Disc n° :  0000D9%discnumber%[/%totaldiscs%] $crlf()]
[Date :  0000D9%date% $crlf()]
$crlf()
)

$tab()808080___________ File info ____________$tab()$crlf()
$if($stricmp($info(codec),CDDA),CD Audio,
File size :  0000D9$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB$crlf()
Embedded cover :  0000D9$if($meta_test(ALBUMART),Yes,No)$crlf()
Full path :  0000D9%path%$crlf()
)

$crlf()$tab()808080___________ Tech info ___________$tab()$crlf()
Codec :  0000D9%codec%  '('$if($get(isuncomp),Uncompressed,$caps2($info(encoding)))')'$crlf()
[Codec settings :  0000D9$caps2(%codec_profile%)$crlf()]
[Encoder :  0000D9$info(tool)$crlf()]
Bitrate :  0000D9$info(bitrate) kb/s $if($and($stricmp($info(encoding),lossless),$not($get(isuncomp))),'('$get(ratiocu)'%)')$crlf()
[Tag type :  0000D9$caps2($replace($info(tagtype),'|',', '))$crlf()]
Length :  0000D9%length%$crlf()
Channels :  0000D9$info(channels) '('$caps2(%channels%)')'$crlf()
[Channel coupling :  0000D9$caps2($info(MP3_STEREO_MODE))$crlf()]
Sample rate :  0000D9%samplerate% Hz$crlf()
[Bits per sample :  0000D9$info(bitspersample)$crlf()]
$if($stricmp($info(encoding),lossless),MD5 :  0000D9$if($info(md5),Yes,No)$crlf())

$if($meta_test(MP3GAIN_UNDO),
$crlf()$tab()808080__________ MP3 Gain ___________$tab()$crlf()
Track min/max :  0000D9$meta(MP3GAIN_MINMAX)$crlf()
[Album min/max :  0000D9$meta(MP3GAIN_ALBUM_MINMAX)$crlf()]
Undo :  0000D9$meta(MP3GAIN_UNDO)$crlf()
)

$if(%replaygain_track_gain%,
$crlf()$tab()808080__________ Replay Gain__________$tab()$crlf()
[Track :  0000D9%replaygain_track_gain% '('peak : %replaygain_track_peak%')'$crlf()]
[Album :  0000D9%replaygain_album_gain% '('peak : %replaygain_album_peak%')'$crlf()]
)

)


I'm looking for a way to check if there is an embedded album art in the audio file, because what I did :
Code: [Select]
Embedded cover :  0000D9$if($meta_test(ALBUMART),Yes,No)

obviously don't work ... 

Any ideas ?
Vorbis -q2/5 (Android/PC) & WavPack -hhx6m
https://playnoise.com/