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 729993 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Track Info Panel with ability to change font

Reply #1025
Thank you wraithdu that gave a good idea how to do it. Is it possible to add transition time between images?

And another thing.. How do I bind buttons to current playlist selection instead of now playing item?

Track Info Panel with ability to change font

Reply #1026
I don't believe it's possible to transition between art exactly, at least not a blending effect.  You could do something with cropping to make the image appear as a horizontal/vertical/diagonal wipe.  But I don't know how to get timing in smaller increments than seconds, so the wipe would be very choppy and ugly IMO.

And another thing.. How do I bind buttons to current playlist selection instead of now playing item?

I'm not sure what you mean by this?  Buttons are assigned commands, that is all.  If a command affects the selection or now playing item, that is the nature of the command.

Track Info Panel with ability to change font

Reply #1027
I'm not sure what you mean by this?  Buttons are assigned commands, that is all.  If a command affects the selection or now playing item, that is the nature of the command.


I'm trying to link rating buttons to current playlist selection. If I use the code below it rates currently playing song instead. In the normal buttons panel you can select the item group a specific command affects.
Code: [Select]
$button(300,10,0,0,22,22,images\orchid\buttons\1.png,images\orchid\buttons\1a.png,rating1,)

"rating1" is a masstagger script that changes %rating%=1

Track Info Panel with ability to change font

Reply #1028
I see exactly what you are saying now.  Unfortunately I don't have an answer for you.  Maybe the actual command is altered/appended in some way to affect the selection vs now playing item.  If it is though, it is not shown how it is changed.  This might just be a function of the button panel though, and would have to be something added to Track Display button coding by terrestrial to enable this functionality, ie something in the OPTIONS section of the button code.

What happens if you stop playback (so there is no now playing item), then select some songs, then try your button?

Track Info Panel with ability to change font

Reply #1029
I'm having problem with some code I have here:

Code: [Select]
//REPLAY GAIN//
$puts(rpg,
$if(%__replaygain_track_gain%,   TGain: $rgb(77,122,172)$cut(%__replaygain_track_gain%,5)' dB',$rgb(78,78,78)       '['$button2(300,1,0,0,150,16,'$font(tahoma,8,underline,61-131-182)No TGain','$font(tahoma,8,underline italics,120-145-209)No TGain',Scan Per-file Track Gain,)']'))
$alignabs(400,1,95,16,,)
$get(rpg)
//REPLAY GAIN//


What it's supposed to do is display the replaygain info, which it does when the file HAS some. But if it DOESN'T have any, its supposed to display a [ bracket, then a button I click (text) that will scan the file, then a closing ] bracket.

I'm not sure what I screwed up here in the code . A little help?
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

Track Info Panel with ability to change font

Reply #1030
Hi, I've got a problem.
I was planning to change the old foo_uie_trackinfo to this one but i encountered a problem (i simple one i hope)

Basicly the problem is that [%playback_time% / ]%length% or similar don't work:



All the time its 00:00/XX:XX

I hope someone could point me where the problem is

Track Info Panel with ability to change font

Reply #1031
Hi, I've got a problem.
I was planning to change the old foo_uie_trackinfo to this one but i encountered a problem (i simple one i hope)

Basicly the problem is that [%playback_time% / ]%length% or similar don't work:

[a href="http://xs.to/xs.php?h=xs412&d=07074&f=foo_prob.jpg" target="_blank"].
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

Track Info Panel with ability to change font

Reply #1032
Thank you. Works perfectly now

Track Info Panel with ability to change font

Reply #1033
Could anyone tell me if there is a command to switch a panel between 'follow cursor' and 'now playing' modes?  I want to switch to 'now playing' when playing and 'follow cursor' when stopped.

Track Info Panel with ability to change font

Reply #1034
I've seen this on the forum and it works good, but when I add the last part ($char(10)[%playback_time% / ] %length%) I'm getting an

"No track
?"

when I dont play anything, the No track is fine, but how do I delete the "?"

// PerSecond
$char(10)$char(10)$if(%_trackinfo_notrack%,No track,Artist: %artist%
$char(10)Title: %title%
$char(10)Album: %album%)
$char(10)[%playback_time% / ] %length%

Track Info Panel with ability to change font

Reply #1035
I've seen this on the forum and it works good, but when I add the last part ($char(10)[%playback_time% / ] %length%) I'm getting an

"No track
?"

when I dont play anything, the No track is fine, but how do I delete the "?"

// PerSecond
$char(10)$char(10)$if(%_trackinfo_notrack%,No track,Artist: %artist%
$char(10)Title: %title%
$char(10)Album: %album%)
$char(10)[%playback_time% / ] %length%


add [ and ] around %length%. [ and ] make the "tagz" only show up if the "tag" is there. So the last line would read: $char(10)[%playback_time% / ] [%length%]


(NOTE: Still need help with my problem meantioned above people ...)
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

Track Info Panel with ability to change font

Reply #1036
sorry I can't help you but maybe someone knows this:

I want to add the source in the info panel

So I already have:
Artist:
Album:
etc...

But now I want to add the source of the folder like:
Source: D:\music\John - Happy Song.mp3

I use now [%path%] but this only shows D:\My
instand of D:\My music\folder\John - Happy Song.mp3

Track Info Panel with ability to change font

Reply #1037
Has anyone had any luck associating .trackinfo files to an external editor? When I click the Edit button it always uses Notepad. I'm a little bit unsure about this anyway since I don't know where these .trackinfo files would be. Are the just created in the TEMP directory?

Track Info Panel with ability to change font

Reply #1038
sorry I can't help you but maybe someone knows this:

I want to add the source in the info panel

So I already have:
Artist:
Album:
etc...

But now I want to add the source of the folder like:
Source: D:\music\John - Happy Song.mp3

I use now [%path%] but this only shows D:\My
instand of D:\My music\folder\John - Happy Song.mp3

Hmm, not sure.  It works just fine for me, and I have spaces in my directory structure as well.  Post the rest of your code.  Perhaps there's a problem somewhere else that is causing the text to be cut off.

Track Info Panel with ability to change font

Reply #1039
I tried this code and now it works fine.
so I think you are right, the code was wrong

Code: [Select]
// PerSecond

$char(10)$if(%_trackinfo_notrack%,No track,
$char(10)Artist: %artist%
$char(10)Title: %title%
$char(10)Album: %album%
$char(10)Date: %date%
$char(10)Length: %Playback_time% / %length%
$char(10)Bitrate: %bitrate%kbps

)

Track Info Panel with ability to change font

Reply #1040

@terrstrial
Is there a way to use mouse wheel for scroll like the classic trackinfo?

no, the display code (and syntax) are not really designed for scrolling.

Is this still the case with the latest version? I'm trying to create a tagging panel and have a fairly lengthy list.

Track Info Panel with ability to change font

Reply #1041
How do I get the bitrate at //PerTrack and %Playback_time% / %length% //PerSecond in the following order:
- Artist (//PerTrack)
- Title (//PerTrack)
- Album (//PerTrack)
- Date (//PerTrack)
- Lenght //PerSecond
- Bitrate (//PerTrack)


I use now

Code: [Select]
// PerSecond
$char(10)$if(%_trackinfo_notrack%,No track,
$char(10)Artist: %artist%
$char(10)Title: %title%
$char(10)Album: %album%
$char(10)Date: %date%
$char(10)Length: %Playback_time% / %length%
$char(10)Bitrate: %bitrate%kbps

)


But when I change // PerTrack everyting is going wrong.

Track Info Panel with ability to change font

Reply #1042
Are you looking for something like this?
Code: [Select]
// PerTrack
$alignabs(0,0,50,15,,)Artist:
$alignabs(0,15,50,15,,)Title:
$alignabs(0,30,50,15,,)Album:
$alignabs(0,45,50,15,,)Date:
$alignabs(0,60,50,15,,)Length:
$alignabs(0,75,50,15,,)Bitrate:

$alignabs(60,0,$sub(%_width%,60),15,,)%artist%
$alignabs(60,15,$sub(%_width%,60),15,,)%title%
$alignabs(60,30,$sub(%_width%,60),15,,)%album%
$alignabs(60,45,$sub(%_width%,60),15,,)%date%
$alignabs(60,75,$sub(%_width%,60),15,,)%bitrate%kbps

// PerSecond
$alignabs(60,60,$sub(%_width%,60),15,,)%Playback_time% / %length%

The cursor position seems to get reset when changing from PerTrack to PerSecond so I personally avoid using $char(10) and instead use $alignabs() for greater reliability and flexibility.

Also you might want to further develop the way you display bitrate because with the approach you are using, variable and adaptive bitrates will be misrepresented. I'd suggest either moving that line to PerSecond as well or add additional logic to show VBR, ABR, or something else instead of the normal bitrate.

Track Info Panel with ability to change font

Reply #1043
Yes I like that, but one thing is going wrong I just want this:

Code: [Select]
- Artist ARTIST
- Title TITLE
- Album ALBUM
- Date DATE
- Lenght LENGHT
- Bitrate BITRATE


instead of this:
Code: [Select]
- Artist............ARTIST
- Title.............TITLE
- Album..........ALBUM
- Date............DATE
- Lenght..........LENGHT
- Bitrate..........BITRATE



I'm totally noob but I see it's the (60,0,$sub(%_width%,60),15,,) doing this.
When I change 60 to 40 it's a little better, but is there a better option for this? so it's just
Abum: Album name
only 1 single space.

 

Track Info Panel with ability to change font

Reply #1044
If you prefer that type of formatting, try this instead:
Code: [Select]
// PerTrack
$alignabs(0,0,%_width%,15,,)Artist: %artist%
$alignabs(0,15,%_width%,15,,)Title: %title%
$alignabs(0,30,%_width%,15,,)Album: %album%
$alignabs(0,45,%_width%,15,,)Date: %date%
$alignabs(0,75,%_width%,15,,)Bitrate: %bitrate%kbps

// PerSecond
$alignabs(0,60,%_width%,15,,)Length: %Playback_time% / %length%

It's the same basic approach. By using $alignabs() for each line you can split up your text into whatever update interval you want and not wory about the text positioning being reset on the refresh. I prefer to handle the labels separately so you can do stuff like right alignment on the labels.. $alignabs(0,0,50,15,right,)Label: but the above code should do what you ask.

Track Info Panel with ability to change font

Reply #1045
Since trackinfo isn't scrollable I was wondering if I can split text into two or more side by side columns, if a specific height is exceeded? I'd use this for showing long lyrics which don't fit on the panel.


Edit: I figured how to split it with $len() but I'd prefer by the height of area. Thought I could use $calcheight() but seems like it returns the size of font instead. So is there any function for calculating the height of a multiline string? Below is an example how I did it so far

Code: [Select]
$ifgreater($len(%lyrics%),1000,

$alignabs(0,65,$div(%_width%,2),$sub(%_height%,80),center,middle)
$left(%lyrics%,$div($len(%lyrics%),2))
$alignabs(0,65,$muldiv(%_width%,3,2),$sub(%_height%,80),center,middle)
$right(%lyrics%,$add($div($len(%lyrics%),2),1)),

$alignabs(0,65,%_width%,$sub(%_height%,80),center,middle)%lyrics%)

Track Info Panel with ability to change font

Reply #1046
I want two buttons for control playback's order.

With default order:
$button(,,,,,,,,default,)

and work very well, but with shuffle (tracks) (or another shuffle mode) non:

$button(,,,,,,,,Shuffle(tracks),)

I try with Playback/Order/Shuffle (tracks), Shuffle, Shuffle tracks... and nothing... and try with this:

#  Playback/Order/Shuffle
# Playback/Order/Shuffle album
# Playback/Order/Shuffle album 2
# Playback/Order/Shuffle tag set

how put: http://wiki.hydrogenaudio.org/index.php?ti...text_Menu_Items

BUT NOTHING... 

any sugerence? 

THANKS!

(sorry for my english)

Track Info Panel with ability to change font

Reply #1047
If you prefer that type of formatting, try this instead:
Code: [Select]
// PerTrack
$alignabs(0,0,%_width%,15,,)Artist: %artist%
$alignabs(0,15,%_width%,15,,)Title: %title%
$alignabs(0,30,%_width%,15,,)Album: %album%
$alignabs(0,45,%_width%,15,,)Date: %date%
$alignabs(0,75,%_width%,15,,)Bitrate: %bitrate%kbps

// PerSecond
$alignabs(0,60,%_width%,15,,)Length: %Playback_time% / %length%

It's the same basic approach. By using $alignabs() for each line you can split up your text into whatever update interval you want and not wory about the text positioning being reset on the refresh. I prefer to handle the labels separately so you can do stuff like right alignment on the labels.. $alignabs(0,0,50,15,right,)Label: but the above code should do what you ask.



Thank you, can you help me with one little thing?
With the $char(10) code I used

Code: [Select]
$char(10)$if(%_trackinfo_notrack%,No track,
when I listened to nothing.

Is there anyway to do this with the $alignabs code?

When no track is playing:
Code: [Select]
No track


When Pause:
Code: [Select]
Artist: ARTIST
Title: TITLE
Album: ALBUM
Date: DATE
Lenght: LENGHT
Bitrate: BITRATE
Status: Pause

Track Info Panel with ability to change font

Reply #1048
[removed]

Track Info Panel with ability to change font

Reply #1049
Is there anyway to do this with the $alignabs code?

When no track is playing: No track
When Pause: ...


Code: [Select]
// PerTrack
$if(%_trackinfo_notrack%,
$alignabs(0,0,%_width%,15,,)No track,

$alignabs(0,0,%_width%,15,,)Artist: %artist%
$alignabs(0,15,%_width%,15,,)Title: %title%
$alignabs(0,30,%_width%,15,,)Album: %album%
$alignabs(0,45,%_width%,15,,)Date: %date%
$alignabs(0,75,%_width%,15,,)Bitrate: %bitrate%kbps

// PerSecond
$alignabs(0,60,%_width%,15,,)Length: %Playback_time% / %length%

)


Or if you don't want to show the trackinfos while paused use something like this
Code: [Select]
// PerTrack
$if(%_trackinfo_notrack%,
$alignabs(0,0,%_width%,15,,)No track,
$if(%ispaused%,
$alignabs(0,0,%_width%,15,,)Paused,

$alignabs(0,0,%_width%,15,,)Artist: %artist%
$alignabs(0,15,%_width%,15,,)Title: %title%
$alignabs(0,30,%_width%,15,,)Album: %album%
$alignabs(0,45,%_width%,15,,)Date: %date%
$alignabs(0,75,%_width%,15,,)Bitrate: %bitrate%kbps

// PerSecond
$alignabs(0,60,%_width%,15,,)Length: %Playback_time% / %length%

))