Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Listen To The Music Again Mod (Read 49849 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Listen To The Music Again Mod

Reply #25
Yes I choose lttmam.pui and then I click save all and close.
But when I open the windows again, default.pui is chosen in the layout option.


Ah, that is because you don't have the newest beta of Panels UI

Listen To The Music Again Mod

Reply #26
Are you sure?
I downloaded it from http://panels.fooblog2000.com.
It's 0.13.8 beta.
Where can I get the newest version?


Listen To The Music Again Mod

Reply #28
Thank you very much! It works now.
But what about the basic folder? Where should I extract it?

Listen To The Music Again Mod

Reply #29
Thank you very much! It works now.
But what about the basic folder? Where should I extract it?


You don't need it. It's just some ugly basic layout

Listen To The Music Again Mod

Reply #30
Could you post your config in text form?
The version 0.14.12 of PanelsUI is too buggy for me, so I'd rather adapt your configuration to 0.13.8.

Listen To The Music Again Mod

Reply #31
Could you post your config in text form?
The version 0.14.12 of PanelsUI is too buggy for me, so I'd rather adapt your configuration to 0.13.8.

I don't know if that's going to work well as this probably uses much of the new syntax.
elevatorladylevitateme

Listen To The Music Again Mod

Reply #32
I don't think backporting this will be too hard.
At least, I'd like to try.

Listen To The Music Again Mod

Reply #33
Hi,
I've got another question. Is it possible that the bitrate-number (red) is updated automatically?
Because I use variable bitrate (blue) and the number only changes if I minimize the foobar window and open it again.

Here is a picture:


And why there is no number in front of the "Bit"?

Listen To The Music Again Mod

Reply #34
Hi,
I've got another question. Is it possible that the bitrate-number (red) is updated automatically?
Because I use variable bitrate (blue) and the number only changes if I minimize the foobar window and open it again.

Here is a picture:


And why there is no number in front of the "Bit"?

I don't think that's possible to do with panels_ui. The reason there is no number infront of "Bit", is that mp3 files and other lossy files do not have a %bitspersample% tag. If you use FLAC or WAV though, it will show the Bitrate.

I'm working on an update and might try to see if I can get it to hide the Bit depth portion when playing lossy files. I'm also trying to add some new buttons for tagging and file organization.

For the person who wanted to try and back-port it, here it is:

Code: [Select]
// Foo lttma (Listen To The Music Again) originally by lassekongo83.deviantart.com, adapted by moglenstar.deviantart.com
// changes from original lttm:
// - made layout fluid, so window can now be resized
// - remade all graphics, designed to suit VistyV2 visual style (but go well with most styles)
// - added toggleable albumart/trackinfo side panel
// - changed views to scpl and albumlist, removed old trackinfo and playlist selector
// - added buttons to search current artist on last.fm/wikipedia.org/oink.cd
// - added functioning custom seekbar ability, using foo_uie_powerpanels from http://borgusiek.neostrada.pl/foobar/
//
// enjoy and listen to the music again!
//
// lttmam Modifications by fwqhgads
// - added Quick Search Toolbar
// - added RateYourMusic search button
// - added AlbumArt/Artist image download buttons
// - added Discogs tagging info
// - added File Info tag space
// - changed album art display method
//
// Background
$drawrect(0,0,%_width%,%_height%,pencolor-null brushcolor-238-238-238)
$imageabs2(0,0,,,,,0,0,/lttmam\gnome_cd.png,)
$imageabs2(0,0,,,,,8,$sub(%_height%,35),/lttmam\tb_end.png,)
$imageabs2(0,0,,,$sub(%_width%,166),,12,$sub(%_height%,35),/lttmam\tb.png,NOKEEPASPECT)

// PerSecond
$if(%isplaying%,
$puts(progress,$muldiv(%playback_time_seconds%,$sub(%_width%,166),%length_seconds%))
,)
$ifgreater($get(progress),0,$padding(0,0)$imageabs2(0,0,,,$get(progress),,10,$sub(%_height%,33),/lttmam\tb-fill.png,),)
$panel(SeekPanel,'Seek Panel',10,$sub(%_height%,33),$sub(%_width%,164),21,)

// PerSecond
$font('HaxrCorp 4088',9,normal,0-0-0 shadow glowalpha-1)
$if(%isplaying%,
$alignabs(20,$sub(%_height%,38),647,30,left,middle)%playback_time%
,
$alignabs(20,$sub(%_height%,38),647,30,left,middle)0:00
)

// PerTrack
$button($sub(%_width%,154),$sub(%_height%,35),0,0,0,0,/lttmam\btn-stop.png,/lttmam\btn-stoph.png,Stop,)
$button($sub(%_width%,130),$sub(%_height%,35),0,0,0,0,$if($or(%ispaused%,$not(%isplaying%)),/lttmam\btn-play.png,/lttmam\btn-pause.png),$if($or(%ispaused%,$not(%isplaying%)),/lttmam\btn-playh.png,/lttmam\btn-pauseh.png),$if($or(%ispaused%,$not(%isplaying%)),Play,Pause),)
$button($sub(%_width%,106),$sub(%_height%,35),0,0,0,0,/lttmam\btn-prev.png,/lttmam\btn-prevh.png,Previous,)
$button($sub(%_width%,82),$sub(%_height%,35),0,0,0,0,/lttmam\btn-next.png,/lttmam\btn-nexth.png,Next,)
$button($sub(%_width%,58),$sub(%_height%,35),0,0,0,0,/lttmam\btn-open.png,/lttmam\btn-openh.png,Add Files...,)
$button($sub(%_width%,34),$sub(%_height%,35),0,0,0,0,/lttmam\btn-menu.png,/lttmam\btn-menuh.png,MENU,TOOLTIP: Menu)

// PerTrack
$if(%_isplaying%,
$settitle(%artist% - %title%)
$settray(%artist% - %title%)
,
$settitle(Foobar2000)
$settray(Foobar2000)
)

// PerTrack
$puts(yOffset,0)
$if($strcmp($getpvar(side_width),10),,
$if(%isplaying%,

//    toggle artwork
$select($eval($getpvar(arthide) + 1),
//    dim image if paused
    $if(%ispaused%,
        $puts(dim,alpha-150)
        ,
    )
    $select($eval($getpvar(art) + 1),
//        album art mode
        $if($fileexists($get(coverPath)),
            $drawrect(10,50,200,200,brushcolor-$get(color1) pencolor-$get(color1))
            $imageabs2(200,200,,,,,10,50,$get(coverPath),nokeepaspect $get(dim))
            $puts(roffset,225)
            ,
            $puts(roffset,240)
        )
        $button(0,2,10,50,200,200,,,PVAR:SET:art:1,)
        ,
//        artist art mode
        $if($fileexists($get(artistPath)),
            $drawrect(10,50,200,200,brushcolor-$get(color1) pencolor-$get(color1))
            $imageabs2(200,200,,,,,10,50,$get(artistPath),nokeepaspect $get(dim))
            $puts(roffset,225)
            ,
            $puts(roffset,240)
        )
        $button(0,2,10,50,200,200,,,PVAR:SET:art:0,)
        ,
    )
    ,
    $puts(roffset,240)
)

$alignabs(10,260,200,20,,)$font(Calibri,9,bold uppercase,90-90-90)
%album% / %date%
$alignabs(10,275,200,20,,)$font(Calibri,9,bold,130-130-130)
%artist%
$alignabs(10,290,200,20,,)$font(Calibri,9,bold,90-90-90)
[%style%]
$alignabs(10,320,200,20,,)$font(Calibri,9,bold,130-130-130)
[%label%]
$alignabs(10,335,200,20,,)$font(Calibri,9,bold,130-130-130)
[%catalog #%]
$alignabs(10,350,200,20,,)$font(Calibri,9,bold,130-130-130)
[[%discogs_format%] / [%discogs_country%]]
$alignabs(10,380,200,20,,)$font(Calibri,9,bold,90-90-90)
[%codec%] / [%bitrate%]kbps
$alignabs(10,395,200,20,,)$font(Calibri,9,bold,90-90-90)
[$insert($div(%samplerate%,100),'.',$sub($len(%samplerate%),3)) kHz / [%__bitspersample%] Bit]

))

$panel(qs,'Quick Search Toolbar',7,$sub(%_height%,60),$sub(%_width%,578),21,)

$select($add($getpvar(display.mode),1),
$panel(Planels,Single Column Playlist,$getpvar(side_width),35,$sub($sub(%_width%,$getpvar(side_width)),10),$sub(%_height%,80),)
,
$panel(Panels,'Album list',$getpvar(side_width),35,$sub($sub(%_width%,$getpvar(side_width)),10),$sub(%_height%,80),)
)
// views
$button(10,10,12,12,0,0,/lttmam\btn-list.png,/lttmam\btn-listh.png,'PVAR:SET:display.mode:0',TOOLTIP: Playlist)
$button(28,10,12,12,0,0,/lttmam\btn-switch.png,/lttmam\btn-switchh.png,'PVAR:SET:display.mode:1',TOOLTIP: Album List)
// searches
$button(50,10,12,12,0,0,/lttmam\btn-lastfm.png,/lttmam\btn-lastfmh.png,Last.fm,)
$button(68,10,12,12,0,0,/lttmam\btn-wiki.png,/lttmam\btn-wikih.png,Wikipedia,)
$button(86,10,12,12,0,0,/lttmam\btn-rym.png,/lttmam\btn-rymh.png,RateYourMusic,)
$button(104,10,12,12,0,0,/lttmam\btn-oink.png,/lttmam\btn-oinkh.png,OiNK,)

// toggles
$button(126,10,12,12,0,0,/lttmam\btn-compact.png,/lttmam\btn-compacth.png,'PVAR:SET:side_width:10',)
$button(144,10,12,12,0,0,/lttmam\btn-wide.png,/lttmam\btn-wideh.png,'PVAR:SET:side_width:220',)

// cover&artist image search
$button(166,10,12,12,0,0,/lttmam\btn-cover2.png,/lttmam\btn-cover2h.png,Cover Image,)
$button(184,10,12,12,0,0,/lttmam\btn-artist.png,/lttmam\btn-artisth.png,Artist Image,)

$button(787,10,12,12,0,0,/lttmam\btn-opendir.png,/lttmam\btn-opendirh.png,Open Directory,$sub(%_width%,27,,$sub(%_height%,35)))


and scpl group display:

Code: [Select]
// background
$drawrect(0,0,0,0,brushcolor-null pencolor-null)

// top row
$alignabs(6,14,$sub(%_width%,80),20,,)$font(Calibri,9,bold uppercase,90-90-90)
%album% / $num(%date%,4)

// bottom row
$alignabs(6,29,$sub(%_width%,80),20,,)$font(Calibri,9,bold,130-130-130)
%album artist%

// right side

$alignabs($sub(%_width%,80),14,75,10$puts(coverstring,$replace(%path%,%filename_ext%,folder.jpg))

// background
$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null))
$drawrect(-1,-1,$add(%_width%,2),19,brushcolor-null pencolor-null)
$if(%_selected%,$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-210-210-210 pencolor-null),$drawrect(,,,,brushcolor-210-210-210 pencolor-null))$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null)))
$if(%_focused%,$drawrect(-1,,$add(%_width%,2),,brushcolor-null pencolor-null))


// info for without coverart
$if(%isplaying%,$alignabs(4,,40,40,,)$font(webdings,9,,90-120-140)$if(%ispaused%,;,4),
$alignabs(1,,22,18,center,middle)$font(calibri,8,bold,180-180-180)$if(%totaltracks%,%tracknumber%.,$num(%_itemindex%,2).))
$alignabs(23,,$sub(%_width%,162),18,left,middle)$font(calibri,8,bold,$if(%isplaying%,60-60-60,90-90-90))%title%$font(calibri,8,bold lowercase,$if(%isplaying%,120-150-170,170-170-170))$if(%totaltracks%,,[ '('%genre%[',' %date%]')'])
$alignabs($sub(%_width%,60),,50,18,right,middle)$font(calibri,8,bold,$if(%isplaying%,130-160-180,180-180-180))[]$font(calibri,8,bold,$if(%isplaying%,80-80-80,120-120-120))$if(%isplaying%,%playback_time_remaining%,%length%)
,right,)$font(Kroeger 05_55,9,,70-70-70)%_itemcount% tracks
$alignabs($sub(%_width%,80),22,75,10,right,)$font(Kroeger 05_55,9,,80-80-80)$replace(%filename_ext%,%filename%.,)[ %codec_profile%]$if($or($strstr(%codec_profile%,VBR),%__bitrate_nominal%),, %__bitrate%kbps)
$alignabs($sub(%_width%,80),30,75,10,right,)$font(Kroeger 05_55,9,,90-90-90)%genre%


// little arrow
$alignabs(,1,20,36,center,middle)$font(Wingdings 3,6,,120-120-120)


Item display:

Code: [Select]
$puts(coverstring,$replace(%path%,%filename_ext%,folder.jpg))

// background
$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null))
$drawrect(-1,-1,$add(%_width%,2),19,brushcolor-null pencolor-null)
$if(%_selected%,$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-210-210-210 pencolor-null),$drawrect(,,,,brushcolor-210-210-210 pencolor-null))$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null)))
$if(%_focused%,$drawrect(-1,,$add(%_width%,2),,brushcolor-null pencolor-null))


// info for without coverart
$if(%isplaying%,$alignabs(4,,40,40,,)$font(webdings,9,,90-120-140)$if(%ispaused%,;,4),
$alignabs(1,,22,18,center,middle)$font(calibri,8,bold,180-180-180)$if(%totaltracks%,%tracknumber%.,$num(%_itemindex%,2).))
$alignabs(23,,$sub(%_width%,162),18,left,middle)$font(calibri,8,bold,$if(%isplaying%,60-60-60,90-90-90))%title%$font(calibri,8,bold lowercase,$if(%isplaying%,120-150-170,170-170-170))$if(%totaltracks%,,)
$alignabs($sub(%_width%,60),,50,18,right,middle)$font(calibri,8,bold,$if(%isplaying%,130-160-180,180-180-180))[]$font(calibri,8,bold,$if(%isplaying%,80-80-80,120-120-120))$if(%isplaying%,%playback_time_remaining%,%length%)

Listen To The Music Again Mod

Reply #35
Ok thank you.
Can you please tell me where I have to insert the codes for the additional search buttons (Last.fm/Wikipedia/etc..) which you have posted?

Listen To The Music Again Mod

Reply #36
Ok thank you.
Can you please tell me where I have to insert the codes for the additional search buttons (Last.fm/Wikipedia/etc..) which you have posted?

Do you mean the code for the buttons themselves, or the foo_run commands?

Listen To The Music Again Mod

Reply #37
Hmm sorry I don't know I'm a noob 
I just want the buttons to be working.

Listen To The Music Again Mod

Reply #38
Hmm sorry I don't know I'm a noob 
I just want the buttons to be working.

Well, the code for the foo_run commands are in the first post. You have to configure those yourself.

Listen To The Music Again Mod

Reply #39

Hmm sorry I don't know I'm a noob 
I just want the buttons to be working.

Well, the code for the foo_run commands are in the first post. You have to configure those yourself.

Would it be possible to keep the button for the playbar on the right side and stretch the track bar across the screen no matter the size of the window?


Listen To The Music Again Mod

Reply #41
look in the Preferences, kais0r

pressing Ctrl + P at the same time opens the preferences.

@ fwqhgads,
The firefox parts of your commands is unnecessary. Simply passing the url opens the web site in the default browser.
elevatorladylevitateme

Listen To The Music Again Mod

Reply #42

I have this problem using PanelsUI 0.14.12 beta.

Listen To The Music Again Mod

Reply #43
Quote
Would it be possible to keep the button for the playbar on the right side and stretch the track bar across the screen no matter the size of the window?

Not sure what you're asking.. the buttons and play bar should stretch when you resize the window.

look in the Preferences, kais0r

pressing Ctrl + P at the same time opens the preferences.

@ fwqhgads,
The firefox parts of your commands is unnecessary. Simply passing the url opens the web site in the default browser.

Which is why I said to edit them as you see fit. On this computer I don't have Firefox set as the default, so I included the path in foo_run. You are right though.

Quote
I have this problem using PanelsUI 0.14.12 beta.

What happens when you try Sorting/Grouping by something else?

Listen To The Music Again Mod

Reply #44
I fixed the problem by deleting foo_ui_panels.dll, restarting foobar and selecting to not keep settings, then putting foo_ui_panels.dll back and now it works perfect.

Listen To The Music Again Mod

Reply #45
The progress bar does not stretch.  It remains in a static position so if I increase the size of my window it does not stretch to the new length to fill in the bottom space.

Listen To The Music Again Mod

Reply #46
Quote
For the person who wanted to try and back-port it, here it is:
Thanks, it basically came down to fixing font sizes and commenting out unnecessary chunks of code.
Speaking of which, does the following really belong to the Group Display?

Code: [Select]
// background
$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null))
$drawrect(-1,-1,$add(%_width%,2),19,brushcolor-null pencolor-null)
$if(%_selected%,$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-210-210-210 pencolor-null),$drawrect(,,,,brushcolor-210-210-210 pencolor-null))$if($stricmp($mod(%list_index%,2),1),$drawrect(,,,,brushcolor-null pencolor-null)))
$if(%_focused%,$drawrect(-1,,$add(%_width%,2),,brushcolor-null pencolor-null))


// info for without coverart
$if(%isplaying%,$alignabs(4,,40,40,,)$font(webdings,9,,90-120-140)$if(%ispaused%,;,4),
$alignabs(1,,22,18,center,middle)$font(calibri,8,bold,180-180-180)$if(%totaltracks%,%tracknumber%.,$num(%_itemindex%,2).))
$alignabs(23,,$sub(%_width%,162),18,left,middle)$font(calibri,8,bold,$if(%isplaying%,60-60-60,90-90-90))%title%$font(calibri,8,bold lowercase,$if(%isplaying%,120-150-170,170-170-170))$if(%totaltracks%,,[ '('%genre%[',' %date%]')'])
$alignabs($sub(%_width%,60),,50,18,right,middle)$font(calibri,8,bold,$if(%isplaying%,130-160-180,180-180-180))[]$font(calibri,8,bold,$if(%isplaying%,80-80-80,120-120-120))$if(%isplaying%,%playback_time_remaining%,%length%)
,right,)
Seems to me like a misplaced paste. The cover art string is never used, too.

Listen To The Music Again Mod

Reply #47

Hi,
I've got another question. Is it possible that the bitrate-number (red) is updated automatically?
Because I use variable bitrate (blue) and the number only changes if I minimize the foobar window and open it again.

Here is a picture:


And why there is no number in front of the "Bit"?

I don't think that's possible to do with panels_ui.


In this Mod the Bit number is updated every second. So it is possible with panels_ui or am i wrong?

Listen To The Music Again Mod

Reply #48


Hi,
I've got another question. Is it possible that the bitrate-number (red) is updated automatically?
Because I use variable bitrate (blue) and the number only changes if I minimize the foobar window and open it again.

Here is a picture:


And why there is no number in front of the "Bit"?

I don't think that's possible to do with panels_ui.


In this Mod the Bit number is updated every second. So it is possible with panels_ui or am i wrong?

Hmm. I'll have a look at it, and same with the progress bar thing. I think I know what that's about now.

Listen To The Music Again Mod

Reply #49
New version released which fixes both issues and a few other things. Check first post.