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 729242 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Track Info Panel with ability to change font

Reply #750
I am trying to get the rotate flip working...
$imageabs2(100,100,,,,,0,200,C:\Documents and Settings\xxxx\Application Data\foobar2000\data\misc images\nocover.png,NOKEEPASPECT,rotateflip-2)

but it just makes the image dissapear - any idea what i am doing wrong?


The problem is the "," character in the image options.
Try this:

$imageabs2(100,100,,,,,0,200,C:\Documents and Settings\xxxx\Application Data\foobar2000\data\misc images\nocover.png,NOKEEPASPECT rotateflip-2)

Track Info Panel with ability to change font

Reply #751
thats awesome thanks - now my only other question is how do i make it so I flip the image horizontally and rotate it 180 degrees..

basically I am trying to make a mirror image below so that I can then add a fade out overlay like in itunes v7.0 should be a cool effect... also any idea when this feature will be added into single columns... I dont really use track info as scl caters for all of my needs...

ok so I worked out that rotateflip-6 is what I want... now to make an image overlay that fadetransparently to alpha 0 + but also makes the lower album cover go transparent..

any one have any ideas..

or better yet can I add an alpha channel overlay to an image?

Track Info Panel with ability to change font

Reply #752
4nt1:
You can make a transparent gradient PNG file like some people do. And put this image over the cover.

Track Info Panel with ability to change font

Reply #753
thats fine but it doesn't blend into my original bg - ie my alpha chanel is transparent to white - blended - but my bg isnt white its textured...

anyway to blend any image based on an overlay alpha chanel image...

see below


Track Info Panel with ability to change font

Reply #754
Use the texture that the image is over instead of white, so it looks transparent even thought its not.

Track Info Panel with ability to change font

Reply #755
I'm trying to get some buttons in my trackinfo mod. But i have a hard time using the $font statement. It fucks the $button2 tag.
For example i used the example from the wiki and a simple play button:
Code: [Select]
$button2(0,0,0,0,30,13,$font(tahoma,8,,0-0-0)Forward,$font(tahoma,8,underline,0-0-0)Forward,'Seek ahead by 10 seconds',)

$button2(20,50,0,0,50,50,Play,Play,Play,)

It generates:

The play button works, the seek ahead doesn't

What am i doing wrong?
Inter Deum et Diabolum semper Musica est", Tanzwut

Track Info Panel with ability to change font

Reply #756
Is there a way to add support for dynamical button position?

I want to make my progress clickable where the "already played area" acts as a seek back button and the other part, as a seek ahead button.

Right now, seek back button works, but not the other one. It seems to me the button width and height support dynamic values, but coordinates does not.

Here is my code:
Code: [Select]
$puts(pbarLength,996)
$puts(percentage,$muldiv(%_time_elapsed_seconds%,$get(pbarLength),%_time_total_seconds%))
$puts(pbarProgress,$muldiv($get(percent),1000,1000))

$button(15,3,0,0,$get(pbarProgress),3,,,'Seek back by 10 seconds',)
$button($get(pbarProgress),3,0,0,$sub($get(pbarLength),$get(pbarProgress)),3,,,'Seek ahead by 10 seconds',)
i got the seek ahead button to work. But i don't seem to get the dynamic seek back button to work.
I have problems getting buttons to work under // PerSecond, which is needed with the dynamic button. Did you find a solution?
Inter Deum et Diabolum semper Musica est", Tanzwut

Track Info Panel with ability to change font

Reply #757
I'm trying to get some buttons in my trackinfo mod. But i have a hard time using the $font statement. It fucks the $button2 tag.
For example i used the example from the wiki and a simple play button:
Code: [Select]
$button2(0,0,0,0,30,13,$font(tahoma,8,,0-0-0)Forward,$font(tahoma,8,underline,0-0-0)Forward,'Seek ahead by 10 seconds',)

$button2(20,50,0,0,50,50,Play,Play,Play,)

It generates:

The play button works, the seek ahead doesn't

What am i doing wrong?


Try $button2(0,0,0,0,30,13,'$font(tahoma,8,,0-0-0)Forward','$font(tahoma,8,underline,0-0-0)Forward',Seek ahead by 10 seconds,) instead missed the 's


EDIT: Lol, i didn't see your last post..
Buttons won't work in // PerSecond for now.
Terrestrial might enable PerSecond buttons in the next version

Track Info Panel with ability to change font

Reply #758
Thanks for that

It seems that trying to show a tab with a track info mod button: Album list or ProjectM sometimes open up a new instance of Album list or ProjectM.
The names are right, and they worked like they should.

Anyone else has had this problem?
Inter Deum et Diabolum semper Musica est", Tanzwut

Track Info Panel with ability to change font

Reply #759
Hi folks, sorry for posting here too but after using // PerTRack and // PerSecond to refresh my progress bar my panel got messed up as you can see here:

   
No Foobar? No music

Track Info Panel with ability to change font

Reply #760
You have only used normal align like top,left,middle..

To avoid this overwriting, try alignabs. Alignrel might work, too, I don't know.

Quote
//---------------------------// <---------(THIS PART SHIFTS ON TOP)
$alignrel(left,middle)


Jap, added it, works 


Track Info Panel with ability to change font

Reply #761
Thanks for your reply, i know it's a wasting of resources but this is the only way i was able to make it work. I tried adding alignrel as you told but this does'nt work properly for me, cause when i shrink the Info Panel i got overlapping ... so i removed all the align and placed on top a // PerSecond

Code: [Select]
$if(%isplaying%,
// PerSecond
$rgb(0,0,128)Artist: $rgb()$rgb(0,255,255)%album artist%$char(10)$rgb()
$rgb(0,0,128)Album: $rgb()$rgb(0,255,255)%album%$char(10)$rgb()
$rgb(0,0,128)Title: $rgb()$rgb(0,255,255)%title%$char(10)$rgb()
$char(10)
//---------------------------// <---------(THIS PART SHIFTS ON TOP)
$rgb(0,0,128)Duration: $rgb(200,255,255)[%_time_elapsed%]$rgb() $rgb(0,0,128)/ $rgb()$rgb(0,255,255)%_length%$rgb()
//ADDITIONAL CODE FOR PROGRESS BAR//
$puts(progchar,|)
$puts(progfore,ffff00)
$puts(progback,ddffff)
$puts(proglength,85)
$char(10)
$get(head)$get(file)
$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,$get(proglength),$get(progfore)$get(progchar),$get(progback)$get(progchar))$get(bright) $muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'
//END OF CODE
$char(10)
$char(10)
$rgb(0,0,128)Codec: $rgb()$rgb(0,255,255)%codec%$rgb()$char(10)
$rgb(0,0,128)Bitrate: $rgb()$rgb(200,255,255)%bitrate%$rgb()$rgb(0,255,255 ) kbps $rgb()$rgb(200,255,255)%codec_profile%  $char(10)$rgb()
$rgb(0,0,128)Filesize: $rgb()$rgb(200,255,255)$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2)$rgb()$rgb(0,255,255 ) MB $char(10) $rgb()
$rgb(0,0,128)Samplerate: $rgb()$rgb(200,255,255)%samplerate%$rgb()$rgb(0,255,255) Hz %channels% $char(10)$rgb()
$char(10)
$rgb(0,0,128)Played: $rgb()$rgb(200,255,255)%play_count%$rgb()$rgb(0,255,255) times $char(10)$rgb()

)
No Foobar? No music

Track Info Panel with ability to change font

Reply #762
In your case it wont be such a big waste of ressources, as theres only a little bit of text uselessly rendered every second.

But if you want it make more resource friendly, check out alignabs at the Trackinfo Mod Wiki.
If you can't make it (or simply don't want to), perhaps I will try it.

Track Info Panel with ability to change font

Reply #763
I Would like to use the Track Info Panel with the Spektrum Analyzer in the back of the shown track info instead of an picture file. Is this possible somehow?

Edit: How can I switch formatting to get something like this?

          Album
            Title
            ... (centered)


Bitrate (left)        (right) Sampling Rate
Codec (left)          (right) Size

Track Info Panel with ability to change font

Reply #764
In your case it wont be such a big waste of ressources, as theres only a little bit of text uselessly rendered every second.

But if you want it make more resource friendly, check out alignabs at the Trackinfo Mod Wiki.
If you can't make it (or simply don't want to), perhaps I will try it.



I've tried with alignabs... but i can't figure it, the main problem is that when i put // PerTrack in the title-artist-album section and then i add // PerSecond in the progressbar section the first section disappear, the way i did last time works fine but refreshing things every second a bit annoys me.

There's some correct order to put // PerSecond and //PerTrack? They are causing so much trouble to me
No Foobar? No music

Track Info Panel with ability to change font

Reply #765
@powernemo: There isnt any special rule how they have to be sorted. You even can define every passage twice,trice, and so on.

p.ex:
// PerSecond
Some code
// PerTrack
...
// PerSecond
albumart
...

The code thats written last will be written on top, at least if you use alignabs.

EDIT:
If you want, post your faulty code in a codebox, I might take a look at it.

Track Info Panel with ability to change font

Reply #766
I Would like to use the Track Info Panel with the Spektrum Analyzer in the back of the shown track info instead of an picture file. Is this possible somehow?

Edit: How can I switch formatting to get something like this?

          Album
            Title
            ... (centered)


Bitrate (left)        (right) Sampling Rate
Codec (left)          (right) Size

I think the best way to do this is to put in the same text box everything that you want aligned to the left, and similarly with everything you want aligned in the center and to the right. 
If you want to allow for things to word wrap to multiple lines, you can do something like this:

Code: [Select]
$rgb(text color)Album:$char(10)
$rgb(background color)%album%$char(10)
$rgb(text color)Title:$char(10)
$rgb(background color)%title%

And then of course go back and add %album% and %title% center aligned.

Also, as far as I know, there is currently no way to place a pannel in the track info mod pannel, though I have requested that feature, so we'll see...

Track Info Panel with ability to change font

Reply #767
Can somebody tell me how to make those transparent png images that make the manel look 3D and shinny?

Track Info Panel with ability to change font

Reply #768
@eisteh: this is my code

Code: [Select]
$if(%isplaying%,
// PerTrack
$rgb(0,0,128)Artist: $rgb()$rgb(0,255,255)%album artist%$char(10)$rgb()
$rgb(0,0,128)Album: $rgb()$rgb(0,255,255)%album%$char(10)$rgb()
$rgb(0,0,128)Title: $rgb()$rgb(0,255,255)%title%$char(10)$rgb()
$char(10)
// PerSecond
//---------------------------// <---------(THIS PART SHIFTS ON TOP)
$rgb(0,0,128)Duration: $rgb(200,255,255)[%_time_elapsed%]$rgb() $rgb(0,0,128)/ $rgb()$rgb(0,255,255)%_length%$rgb()
//ADDITIONAL CODE FOR PROGRESS BAR//
$puts(progchar,|)
$puts(progfore,ffff00)
$puts(progback,ddffff)
$puts(proglength,85)
$char(10)
$get(head)$get(file)
$progress2(%_time_elapsed_seconds%,%_time_total_seconds%,$get(proglength),$get(progfore)$get(progchar),$get(progback)$get(progchar))$get(bright) $muldiv(%_time_elapsed_seconds%,100,%_time_total_seconds%)'%'
//END OF CODE
$char(10)
$char(10)
$rgb(0,0,128)Codec: $rgb()$rgb(0,255,255)%codec%$rgb()$char(10)
$rgb(0,0,128)Bitrate: $rgb()$rgb(200,255,255)%bitrate%$rgb()$rgb(0,255,255 ) kbps $rgb()$rgb(200,255,255)%codec_profile%  $char(10)$rgb()
$rgb(0,0,128)Filesize: $rgb()$rgb(200,255,255)$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2)$rgb()$rgb(0,255,255 ) MB $char(10) $rgb()
$rgb(0,0,128)Samplerate: $rgb()$rgb(200,255,255)%samplerate%$rgb()$rgb(0,255,255) Hz %channels% $char(10)$rgb()
$char(10)
$rgb(0,0,128)Played: $rgb()$rgb(200,255,255)%play_count%$rgb()$rgb(0,255,255) times $char(10)$rgb()

)


- moving //PerSecond on the bottom in the current position prevent the upper lines from being displayed
- adding // PerTrack does'nt solve this problem, i've tried with several alignabs but i can't figure how to make it works
- the if(x,y) statement it's now ignored, when there's no track selected or i'm not in playback the various TAGs are displayed as ' ? '
- i cannot figure a way to select a bunch of tracks (also during the playback) and to display in the Info Panel the properties as the total lengt, the total filesize or the average bitrate (this feature appeared by default on Foobar0.8 in the statusbar)

thanks for your precious help



@eboomer: Open Photoshop:

- Create a new image
- In the Layer Palette be sure that the Layer is named everything but Background else you must double click it and it will turn into Layer 1 (this will prevent you to have a background layer)
- Press G to activate the Gradient tool (if the buckett tool instead is active as is by default press Shift+ G)
- On the top toolbox choose a gradient from white (or every color you like) to transparent from the dropdown list, there's already one made by default (it should be the second one)
- You can edit the gradients clicking directly on the swatch that appears on the toolbox
- Draw your gradient in the canvas
- Save as PNG enabling transparency

hope this is what you asked 
No Foobar? No music

Track Info Panel with ability to change font

Reply #769
@eboomer: Open Photoshop:

Thanks for the tip.  Unfortunately I don't already have Photoshop, and it seems that it costs about $100 - not worth it to me just for this.  Does anybody know of free (or pretty cheap) software that  can acheive the same thing (creating the transparent png gradients)?

Track Info Panel with ability to change font

Reply #770
Use Paint.net 
I think it will do his job, although I haven't tried what you want.


Transparency is quite easy to use:
open an picture an than go to the layers window go  to properties and then put the opacity where you want it.

For 3D try to use some tools and maybe you can find out on hp of paint.net how it works

Track Info Panel with ability to change font

Reply #771
www.gimp.org

 

Track Info Panel with ability to change font

Reply #772
Please, terrestrial or anybody else, I'm looking for some clarification... I'm a bit confused right now. 

Code: [Select]
$imageabs(,,images\art.png,)

It will seek for art.png in X:\%foobar_profile_directory%\images\art.png.

Code: [Select]
$imageabs2(,,,,,,,,images\art.png,)

It will seek for art.png in X:\%foobar_install_directory%\images\art.png.

Code: [Select]
$imageabs2(,,,,,,,,/images\art.png,)

It will also seek for art.png in X:\%foobar_install_directory%\images\art.png.
Why the slash if it has the same behavior without it?

Code: [Select]
$imageabs2(,,,,,,,,X:\some_dir\art.png,)

It will seek for art.png in X:\some_dir\art.png.
but
Code: [Select]
$puts(dir,'X:\some_dir\)
$imageabs2(,,,,,,,,$get(dir)art.png',)

won't work, with or without the quotemarks. Is this a bug ? Because it works fine with button() or in SCP.

I had this idea.. Maybe you could had an option in the config window to specify the default image folder? All fonctions would point in this directory unless something different is specified. That would eliminate the ambiguities mentionned above. Just a suggestion

Thanks

EDIT: Nevermind about the slash. It fixes a problem I reported a couple of weeks ago.

Track Info Panel with ability to change font

Reply #773
Quote
Code: [Select]
$puts(dir,'X:\some_dir\)
$imageabs2(,,,,,,,,$get(dir)art.png',)

won't work, with or without the quotemarks. Is this a bug ? Because it works fine with button() or in SCP.

I've tryed this:
Code: [Select]
$puts(dir,X:\some_dir\)
$imageabs2(,,,,,,,,$get(dir)art.png,)

And it works fine for me.
I'm using a code like this for my backgrounds.

By the way, if you don't use the "/" character in $imageabs2, it will seek in the install folder.
And if you use the "/" it will seek in the profile folder.
It was changed in the new version.

Track Info Panel with ability to change font

Reply #774
- moving //PerSecond on the bottom in the current position prevent the upper lines from being displayed
- adding // PerTrack does'nt solve this problem, i've tried with several alignabs but i can't figure how to make it works
- the if(x,y) statement it's now ignored, when there's no track selected or i'm not in playback the various TAGs are displayed as ' ? '


the code in // PerSecond or // PerTrack section has to work independently. So you can't do this:

Code: [Select]
// PerTrack

$if(%isplaying%,
// PerSecond
    %playback_time%,
// PerTrack
    Not Playing
)


because it becomes

Code: [Select]
// PerTrack

$if(%isplaying%,
    Not Playing
)

// PerSecond
    %playback_time%


so you need to do something like:

Code: [Select]
// PerSecond
$if(%isplaying%,
// draw progress bar using $alignabs
)

// PerTrack
$if(%isplaying%,
...
)


although since you're just using text, it shouldn't really make a big difference if you just make everything persecond.

Code: [Select]
$imageabs(,,images\art.png,)

It will seek for art.png in X:\%foobar_profile_directory%\images\art.png.


yep.

Quote
Code: [Select]
$imageabs2(,,,,,,,,images\art.png,)

It will seek for art.png in X:\%foobar_install_directory%\images\art.png.


not quite... the path (images\art.png) is unaltered, and how it is interpreted is determined by windows (which uses the "working directory" as the base). The working directory is the foobar install directory if you run foobar from a shortcut, or launch it directly, but if foobar starts from you clicking an associate file (eg .mp3), then the working directory is the directory where the mp3 resides. I wouldn't recommend using this.

Quote
Code: [Select]
$imageabs2(,,,,,,,,/images\art.png,)

It will also seek for art.png in X:\%foobar_install_directory%\images\art.png.


yep. the path (/images\art.png) will be altered to %foobar_install_directory%\images\art.png.

Quote
Code: [Select]
$imageabs2(,,,,,,,,X:\some_dir\art.png,)

It will seek for art.png in X:\some_dir\art.png.
but
Code: [Select]
$puts(dir,'X:\some_dir\)
$imageabs2(,,,,,,,,$get(dir)art.png',)

won't work, with or without the quotemarks. Is this a bug ? Because it works fine with button() or in SCP.


looks like you're missing a couple of quotes