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: Track Info Panel with ability to change font (Read 730074 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Track Info Panel with ability to change font

Reply #1000
I do, however, very much like the idea of having separate tabs for // Background, // PerTrack, // PerSecond, etc. but how do you dictate which code is processed in what order? Sometimes I want // PerSecond code to be rendered before // PerTrack code and visa versa.

I had always assumed that the trackinfo_mod processed code in a set order - // Global, then // Background, then // PerTrack, then //PerSecond.  Is it actually possible to reorder this processing?  If so, how about having multiple instances of a // PerTrack section for example?

Track Info Panel with ability to change font

Reply #1001
Has anyone figured out how to make scrolling lyrics in the info panel yet?


i was just about to ask if any1 had done this. But also how do you have the lyric line of the song highlighted

This was what i propose (please say if its a stupid idea/theres a easier way etc)

use the tag sync_lyric or whatever ppl use to contains all the timestamps and lyrics (copy and pasted from file). Then have in the //per second

when [time stamp] equals current tracks time, change font  - lyric line  - change back font - next line.

Any ideas on how to actually code this? i would somehow need to look up the next occurance of [time stamp]? a while loop somehow? by [timestamp] i mean eg [0:11]

I know that i could just use a lyric panel but i want to have the lyrics over a image and also have the lyrics embedded.

Track Info Panel with ability to change font

Reply #1002
Hi, at all. For my problems with playback order i try the suggestion found some post later, (wraithdu) but it not work.

The problem is the charter "(" and the charter ")" it is interpreted as part of the expression and not like text.

The solution which i have found is the use of function $char().
Quote
'$font(lcd2 bold,10,,128-0-255)'REPEAT '$char(40)'PLAYLIST'$char(41)'

Track Info Panel with ability to change font

Reply #1003
zhdali: Using single quotes inside of single quotes gets really messy. Try this instead:
'$font(lcd2 bold,10,,128-0-255)Repeat $char(40)playlist$char(41)'

See waithdu's post below, the name of the button command should match exactly the name of the function you wish to execute. Dont put any font commands in with it.

Track Info Panel with ability to change font

Reply #1004
I just need the timing of the scroll to be correct. Right now I have the lyrics scroll up to the top and just cut the rest off but I would like the entire song's lyrics to scroll by.

Track Info Panel with ability to change font

Reply #1005
upps, so sorry: wrong post in wrong thread. 
please ignore this one. 

Track Info Panel with ability to change font

Reply #1006
Hi, at all. For my problems with playback order i try the suggestion found some post later, (wraithdu) but it not work.

I believe it didn't work because you wrote the wrong command code.  I just tested this and it works as it should.  Paste into a new trackinfo_mod, play a song (becuase %cwb_playback_order% is only valid while a song is playing) and try it out.
Code: [Select]
%cwb_playback_order%
$button2(5,20,0,0,50,15,'default','DEFAULT','Default',)
$button2(5,35,0,0,50,15,'repeat','REPEAT','Repeat (playlist)',)

Track Info Panel with ability to change font

Reply #1007
Has anyone had luck with the scrolling lyrics yet?
or
Does anyone know how to identify the length of the lyrics tag in total lines rather than characters?

Track Info Panel with ability to change font

Reply #1008
Mhh, i wont specify which i found my solution and i change little the way i write the button. And no need help for it. However i'm curious to discover the problem.

For wraithdu: Your code write two buttons

button 1 write on screen "default" or "DEFAULT"
button 2 write on screen "repeat" or "REPEAT"

And this is ok, but my difficult is create a button which write this:

button 2 write on screen "repeat (playlist)" or "REPEAT (PLAYLIST)"

If you write a code like this:
Code: [Select]
%cwb_playback_order%
$button2(5,20,0,0,50,15,'default','DEFAULT','Default',)
$button2(5,35,0,0,50,15,'repeat (playlist)','REPEAT (PLAYLIST)','Repeat (playlist)',)


At least at me not work, and from this problem the question: How write a button name which contains parenthesis?

Track Info Panel with ability to change font

Reply #1009
zhdali:
Code: [Select]
// PerSecond
Current Mode: %cwb_playback_order%

// PerTrack

$button2(5,20,0,0,150,15,'default','DEFAULT','Default',)
$button2(5,35,0,0,150,15,'repeat $char(40)playlist$char(41)','REPEAT $char(40)PLAYLIST$char(41)','Repeat (playlist)',)
$button2(5,50,0,0,150,15,'repeat $char(40)track$char(41)','REPEAT $char(40)TRACK$char(41)','Repeat (track)',)
$button2(5,65,0,0,150,15,'shuffle $char(40)albums$char(41)','SHUFFLE $char(40)ALBUMS$char(41)','Shuffle (albums)',)
$button2(5,80,0,0,150,15,'shuffle $char(40)directories$char(41)','SHUFFLE $char(40)DIRECTORIES$char(41)','Shuffle (directories)',)
$button2(5,95,0,0,150,15,'shuffle $char(40)tracks$char(41)','SHUFFLE $char(40)TRACKS$char(41)','Shuffle (tracks)',)

Track Info Panel with ability to change font

Reply #1010
Scrolling lyrics, anyone? No?

Track Info Panel with ability to change font

Reply #1011
I hope this is the right place (don't know if it's a behaviour of track_info_mod or foo_ui_tabs)!

I have the following Setup (generalized)
Code: [Select]
Tabbed Panel Stack mod
--Horizontal splitter
----track_info_mod
----...

--track_info_mod


So I have two 'Main'-tabs: one containing a trackinfo for navigation and all the other stuff and the other has only one fullscreen trackinfo!

I am hiding the tab-bar at the top and change the layouts per
$button(70,0,0,0,0,0,images\buttons\layout-right.png,images\buttons\layout-right.png,fullview,)
and
$button(10,10,0,0,0,0,images\buttons\layout-left.png,images\buttons\layout-left.png,normalview,)

So now both trackinfos have some same space on the top left of each tab:
Normal view:


Full view:


Now my problem is that when I don't hit the change-layout button exactly in the full view, music suddenly stops! It took me some time to get what's happening.

Both images with some transparency:


So it seems that the trackinfo(or the Panel Stack?) is somehow 'transparent' aswell and when I click aside of the layout-change button, I accidentally click the Stop-button which is in the other tab (The other buttons are also working 'through' the Full-view-trackinfo)!

Using:
foobar2000 v0.9.4.1
foo_uie_tabs.dll (2006-10-17 22:54:32)    Tabbed panel modified 0.2.5
foo_uie_trackinfo_mod.dll (2007-01-05 13:36:20)    Track info panel mod 0.8.0 beta [Jan  5 2007 - 13:36:12]

Track Info Panel with ability to change font

Reply #1012
ahhh my trackinfo panel is not updating.. i read that i need to go back and install the old version and then check some box and then reinstall? but which old version and where can i get it?

Track Info Panel with ability to change font

Reply #1013
Love this panel, and fully support the "show all functions in config window" 

One other thing: why does the code jump back to the first line when you press "apply"? Then I have to search back to the line I was editing again
Les mots d'amour...

Track Info Panel with ability to change font

Reply #1014
never noticed that the bothering tag updating process window doesnt appear when rating my song with a button out of the trackinfo panel instead of using the standard button panel
or was this always the case

Track Info Panel with ability to change font

Reply #1015
Hi all,
i've tried to display coverart image with dynamic height and weight like this.

Code: [Select]
$imageabs2($sub(%_width%,20),$sub(%_width%,20),,,,,10,10,$replace(%path%,%filename_ext%,folder.jpg),NOKEEPASPECT)


But then I noticed that with resizing foobar starts to take RAM more and more.
Is it a bug or I've done something wrong?

Track Info Panel with ability to change font

Reply #1016
Hi all,
i've tried to display coverart image with dynamic height and weight like this.

Code: [Select]
$imageabs2($sub(%_width%,20),$sub(%_width%,20),,,,,10,10,$replace(%path%,%filename_ext%,folder.jpg),NOKEEPASPECT)


But then I noticed that with resizing foobar starts to take RAM more and more.
Is it a bug or I've done something wrong?


The plugin is caching all resized version of the picture....

Track Info Panel with ability to change font

Reply #1017
I've got a list of moods - which I'd like to display over two columns - can I force this after a certain amount?

Quote
$alignrel(left,top) $char(10) $char(10)
[%Mood%]

Quote
Dramatic
Passionate
Fiery
Visceral
Aggressive
Malevolent
Menacing
Ominous
Provocative
Volatile
Rousing
Intense
Raucous
Eerie
Theatrical
Rebellious

Track Info Panel with ability to change font

Reply #1018
If it hasn't been mentioned before, or, if it has, as a little reminder--could you please fix the bug that scrolls the configuration editbox to the top when you apply changes.  Editing your configuration like this is really difficult.

Track Info Panel with ability to change font

Reply #1019
rouge: There is a new version of trackinfomod included with PanelsUI. This version has a new code editbox that has basic syntax highlighting, is resizable, and no longer resets to the top when you apply the code.

Track Info Panel with ability to change font

Reply #1020
Was wondering what the command was to open the main menu with a $button or $button2...

Does anyone know this?

Track Info Panel with ability to change font

Reply #1021
Hey

Is it possible to rotate images in the same way foo_uie_albumart does? I suppose it could be done with $replace but how would I define cycle time and make it jump back to first image when last has been displayed?

Also this has probably been requested before but I'd love to have an option for making trackinfo area scrollable for showing lyrics.

 

Track Info Panel with ability to change font

Reply #1022
orchid: From the Track Info Panel Mod Wiki
Quote
imageOptions can be

        * ALPHA-x

        Adjusts the opacity of the image, where the integer value can be between 0 (fully transparent) to 255 (fully opaque).

        * NOKEEPASPECT

        Ignores the aspect ratio when resizing.

        * VALIGN-T (vertical align-TOP), VALIGN-B, HALIGN-L, HALIGN-R

        Allows alignment options.

        * ROTATEFLIP-x

        Where x is:

        ×    Flip X    Flip Y    Flip XY    None
        Rotate 90° CW    5    7    3    1
        Rotate 180° CW    6    4    0    2
        Rotate 270° CW    7    5    1    3
        None    4    6    2    0

See the section regarding $imageabs2()

Track Info Panel with ability to change font

Reply #1023
See the section regarding $imageabs2()


Thanks for reply.

Ofcourse I've read through the wiki page and if I understood correctly (and if you are referring to) "ROTATEFLIP-x" only flips/mirrors a single image. What I'm trying to do is cycle through multiple images like the album art component can do, to rotate N amount of images in the same spot. Should I speak of cycle instead rotate?  Hope I made it clear now

Track Info Panel with ability to change font

Reply #1024
You would have to setup each directory of images similarly, but something like this should work if images are named, for example, cover1.jpg, cover2.jpg, and cover3.jpg, rotated every 30 seconds.  The downfall is this has to be in a // PerSecond section so the art is redrawn every second.  Understandably CPU usage is a little higher than normal due to this.  Also, this code will skip cycles if you skip through the song using the seekbar as it relies on 30 second intervals in playback time.

Code: [Select]
// Global
// Background
// PerTrack
// PerSecond

// if art.num does not exist, set it to 1
$if($getpvar(art.num),,$setpvar(art.num,1))

// when a new song starts, reset art.num to 1
$ifequal(%playback_time_seconds%,0,$setpvar(art.num,1),)

// add 1 to art.num every 30 seconds
$ifequal($mod($sub(%playback_time_seconds%,1),30),29,
$setpvar(art.num,$add($getpvar(art.num),1))
,)

// if track is playing, cycle art
$if(%isplaying%,
$if($fileexists($replace(%path%,%filename_ext%,'cover'$getpvar(art.num)'.jpg')),
$imageabs2(100,100,,,,,10,10,$replace(%path%,%filename_ext%,'cover'$getpvar(art.num)'.jpg'),nokeepaspect)
,
// if cover(art.num).jpg does not exist, assume restart the cycle and reset art.num to 1
$setpvar(art.num,1)
// imageabs2 tag immediately after reset art.num to avoid 1 second gap with no art displayed
$imageabs2(100,100,,,,,10,10,$replace(%path%,%filename_ext%,'cover'$getpvar(art.num)'.jpg'),nokeepaspect)
)
,
// if track is not playing, display a default image, or cover1.jpg, etc.
$imageabs2(100,100,,,,,10,10,'/images\default.jpg',nokeepaspect)
)
// monitor value of art.num for debug
$align(left,bottom)$font(Calibri,10,,255-255-255)'   '$getpvar(art.num)