Home stereo display, For trackinfo mod panel |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
Home stereo display, For trackinfo mod panel |
Sep 27 2006, 23:43
Post
#326
|
|
|
Group: Members Posts: 384 Joined: 12-June 05 Member No.: 22685 |
Is there a how to get this running instructions. I can't understand the one thats in the file. I have all the components and I don't know where to go now to get the themes working. You paste the code from the component download into your trackinfo mod panel (note you need the old trackinfo mod panel b/c the new one will not work yet with this code, and you can download the old trackinfo mod panel in the trackinfo mod thread under the link on the last page). Then you paste the desired theme code under the themes section of the component download code. You put the image for the theme in a folder under your foobar root directory called images. You then go to the definitons section of the component download code and tweak the settings to your liking according to the instructions. As far as selecting the theme, the first definition is for theme where put the theme name if you want to use a theme or otherwise leave blank. |
|
|
|
Sep 28 2006, 01:00
Post
#327
|
|
![]() Group: Members Posts: 28 Joined: 10-May 04 Member No.: 13999 |
Is there a how to get this running instructions. I can't understand the one thats in the file. I have all the components and I don't know where to go now to get the themes working. You paste the code from the component download into your trackinfo mod panel (note you need the old trackinfo mod panel b/c the new one will not work yet with this code, and you can download the old trackinfo mod panel in the trackinfo mod thread under the link on the last page). Then you paste the desired theme code under the themes section of the component download code. You put the image for the theme in a folder under your foobar root directory called images. You then go to the definitons section of the component download code and tweak the settings to your liking according to the instructions. As far as selecting the theme, the first definition is for theme where put the theme name if you want to use a theme or otherwise leave blank. thanks for the help but I am still confused. Oh well Thanks again. |
|
|
|
Sep 28 2006, 12:01
Post
#328
|
|
![]() Group: Members Posts: 164 Joined: 1-January 05 Member No.: 18757 |
Russell777, excellent plugin. It has got me messing with my Foobar cfg agen after a long break.
Keep up the good work. |
|
|
|
Sep 29 2006, 03:38
Post
#329
|
|
![]() Group: Members Posts: 337 Joined: 18-September 05 From: UC, TX Member No.: 24536 |
What are the heart icons?
This post has been edited by wolfsong: Sep 29 2006, 04:06 -------------------- [url="http://www.last.fm/user/wolfsong/"]Last.fm Profile[/url]
|
|
|
|
Sep 29 2006, 10:04
Post
#330
|
|
![]() Group: Members Posts: 446 Joined: 13-August 06 Member No.: 34002 |
Mood.
-------------------- err... i'm not using windows any more ;)
|
|
|
|
Sep 29 2006, 21:39
Post
#331
|
|
![]() Group: Members Posts: 559 Joined: 13-April 06 Member No.: 29483 |
VERSION 1.9 MICRO IS OUT (see the first post)
This version main purpose is to provide compatibility with the latest trackinfo mod component version and to use it's and latest cwb hooks features.Now the mood and rating editing is one mouse click away from you! (Just click on the desired rating\mood symbol).I've also changed the playback statistics info alignment and it now changes every 4 sec in single given rectangle.Also added volume indication and made many code improvements,Enjoy P.S. Updates for other branches are coming soon together with add on panel by Stuart60611 . -------------------- Favourite artist:CD-R
Favourite album:700MB |
|
|
|
Sep 29 2006, 23:28
Post
#332
|
|
![]() Group: Members Posts: 473 Joined: 4-April 05 From: Chicago, IL Member No.: 21193 |
Hey Russell, the new mod looks great! Thanks!
I noticed a couple of things though. First, I have MP3 and FLAC files, which have the %track% tag in the XX/YY format. foobar2000 reads the MP3 files as having %tracknumber% and %totaltracks% tags, but the FLAC files are still read as a single %track% tag with the XX/YY format. It might be best to change CODE $get(active)[%tracknumber%] to CODE $get(active)[$substr(%tracknumber%,1,2)] which will compensate for either format.Also, I noticed in the last played/first played section of the panel that it is saying a song of mine first played yesterday (which should be Sept 28th), but the first played tag actually shows Sept 27th. It is saying that two days ago is actually yesterday. Also, does the code truly account for leap years and different numbers of days in certain months? It seems that months are based on 30 days only. Then again, I could just be getting confused by all of the code in there. Thanks again for the awesome work. |
|
|
|
Sep 30 2006, 00:04
Post
#333
|
|
![]() Group: Members Posts: 559 Joined: 13-April 06 Member No.: 29483 |
Hey Russell, the new mod looks great! Thanks! I noticed a couple of things though. First, I have MP3 and FLAC files, which have the %track% tag in the XX/YY format. foobar2000 reads the MP3 files as having %tracknumber% and %totaltracks% tags, but the FLAC files are still read as a single %track% tag with the XX/YY format. It might be best to change CODE $get(active)[%tracknumber%] to CODE $get(active)[$substr(%tracknumber%,1,2)] which will compensate for either format.Also, I noticed in the last played/first played section of the panel that it is saying a song of mine first played yesterday (which should be Sept 28th), but the first played tag actually shows Sept 27th. It is saying that two days ago is actually yesterday. Also, does the code truly account for leap years and different numbers of days in certain months? It seems that months are based on 30 days only. Then again, I could just be getting confused by all of the code in there. Thanks again for the awesome work. Yes you're right about the 30 days part,it could be easily converted to specify exactly how long every specific month is,but i thought that it will add a lot of code lines and hurt the preformance.As for yesterday issue: the date range is calculated by cwb hooks function,that will tell you that it's two days old only if 48 hours has passed from the last playback time (it considers not only the date but also the time),i used to use home made code for that part in the past (without time consideration),but have switched to cwbowron's function as i find it much more accurate.As for flac files can you provide me with an example file,so i'll understand what the problem is? -------------------- Favourite artist:CD-R
Favourite album:700MB |
|
|
|
Sep 30 2006, 00:58
Post
#334
|
|
![]() Group: Members Posts: 473 Joined: 4-April 05 From: Chicago, IL Member No.: 21193 |
Yes you're right about the 30 days part,it could be easily converted to specify exactly how long every specific month is,but i thought that it will add a lot of code lines and hurt the preformance.As for yesterday issue: the date range is calculated by cwb hooks function,that will tell you that it's two days old only if 48 hours has passed from the last playback time (it considers not only the date but also the time),i used to use home made code for that part in the past (without time consideration),but have switched to cwbowron's function as i find it much more accurate.As for flac files can you provide me with an example file,so i'll understand what the problem is? I understand what you mean about why it might show yesterday, but it still doesn't seem right. cwbowron has an example code on his wiki page for cwb_hooks, which is the following: CODE $if(%last_played%, $puts(diff,$cwb_datediff(%last_played%,%cwb_systemdate%)) Played $ifgreater(1,$get(diff),Today, $ifgreater(2,$get(diff),Yesterday, $get(diff) days ago)), No last played info) If I change %last_played% to %first_played%, and throw this code into a blank track_info_mod panel, it properly shows "2 days ago" for the song that shows "Yesterday" in your Home Stereo mod. If I can, where would I send you an example FLAC file? This post has been edited by kockroach: Sep 30 2006, 01:01 |
|
|
|
Sep 30 2006, 01:05
Post
#335
|
|
![]() Group: Members Posts: 559 Joined: 13-April 06 Member No.: 29483 |
If I change %last_played% to %first_played%, and throw this code into a blank track_info_mod panel, it properly shows "2 days ago" for the song that shows "Yesterday" in your Home Stereo mod. If I can, where would I send you an example FLAC file? Ok i'll see what can be done,you know it's pretty hard to navigate at this code as it has some sort of complexity in it,in fact if you ask me today how do things work in sections that i wrote a week ago the answer will be: "I dunno... -------------------- Favourite artist:CD-R
Favourite album:700MB |
|
|
|
Sep 30 2006, 03:02
Post
#336
|
|
![]() Group: Members Posts: 473 Joined: 4-April 05 From: Chicago, IL Member No.: 21193 |
Hey Russell,
I made some changes to your "Date Range" section. Instead of Showing the number of years, months, etc., and today or yesterday, I have it showing the date in a format like "September 29th, at 8:55:07 PM". Thought you might like to use it as a base for your mod. It does the same swap of "First Played", "Last Played", and "Times Played". It took a bit to figure out how you had yours set up, but once I did it was easy to modify my old Track Info Panel code. Here it is CODE //////////////////////////////////////////Date Range/////////////////////////////////////////////// $alignabs(189,$add($div(%_height%,5),38),%_width%,%_height%,,top) $font(lcdmono2,8,bold$get(font_options),)$get(active)$ifequal($put(yoo,$div($mod(%_time_elapsed_seconds%,12),4)),0, $if(%last_played%,$puts(timestamp,%last_played%),), $select($get(yoo), $if(%first_played%,$puts(timestamp,%first_played%),), $puts(timestamp,$add(%play_count%,%play_counter%)))) // Day Conversion $puts(day,$substr($get(timestamp),9,10)) $if($get(timestamp), $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($get(timestamp),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($get(timestamp),1,4)) // Time Conversion $puts(hour,$substr($get(timestamp),12,13)) $puts(min,$substr($get(timestamp),14,16)) $puts(sec,$substr($get(timestamp),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)) $ifequal($put(yoo,$div($mod(%_time_elapsed_seconds%,12),4)),0, Last played: $if(%last_played%,$get(time_of_year) at $get(time_of_day),'Never'), $select($get(yoo), First played: $if(%first_played%,$get(time_of_year) at $get(time_of_day),'Never'), Number of times played: $if($or(%play_count%,%play_counter%),%play_count%,0) )) Figured it out. I hope you like it. This post has been edited by kockroach: Sep 30 2006, 03:17 |
|
|
|
Sep 30 2006, 09:32
Post
#337
|
|
![]() Group: Members Posts: 61 Joined: 28-July 06 Member No.: 33367 |
Whats Up with the font thing ...??
-Can you rename your "R.segment" so that it can coexist with the "old" one ?? Or what did you change (/improve) ...?? P.s.: GREAT WORK !! |
|
|
|
Sep 30 2006, 11:04
Post
#338
|
|
![]() Group: Members Posts: 559 Joined: 13-April 06 Member No.: 29483 |
Whats Up with the font thing ...?? -Can you rename your "R.segment" so that it can coexist with the "old" one ?? Or what did you change (/improve) ...?? P.s.: GREAT WORK !! No they cannot coexist,if you want to use the latest version of the code,you'll need to uninstall the 7 segment font your machine (close foobar and delete it from from "Windows\Fonts" directory) and to install Rsegment instead of it.Sorry i didn't mention it in the first place.Also from now on all the new versions will use Rsegment instead of 7 Segment font. Hey Russell, I made some changes to your "Date Range" section. Instead of Showing the number of years, months, etc., and today or yesterday, I have it showing the date in a format like "September 29th, at 8:55:07 PM". Thought you might like to use it as a base for your mod. It does the same swap of "First Played", "Last Played", and "Times Played". It took a bit to figure out how you had yours set up, but once I did it was easy to modify my old Track Info Panel code. Here it is CODE //////////////////////////////////////////Date Range/////////////////////////////////////////////// $alignabs(189,$add($div(%_height%,5),38),%_width%,%_height%,,top) $font(lcdmono2,8,bold$get(font_options),)$get(active)$ifequal($put(yoo,$div($mod(%_time_elapsed_seconds%,12),4)),0, $if(%last_played%,$puts(timestamp,%last_played%),), $select($get(yoo), $if(%first_played%,$puts(timestamp,%first_played%),), $puts(timestamp,$add(%play_count%,%play_counter%)))) // Day Conversion $puts(day,$substr($get(timestamp),9,10)) $if($get(timestamp), $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($get(timestamp),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($get(timestamp),1,4)) // Time Conversion $puts(hour,$substr($get(timestamp),12,13)) $puts(min,$substr($get(timestamp),14,16)) $puts(sec,$substr($get(timestamp),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)) $ifequal($put(yoo,$div($mod(%_time_elapsed_seconds%,12),4)),0, Last played: $if(%last_played%,$get(time_of_year) at $get(time_of_day),'Never'), $select($get(yoo), First played: $if(%first_played%,$get(time_of_year) at $get(time_of_day),'Never'), Number of times played: $if($or(%play_count%,%play_counter%),%play_count%,0) )) Figured it out. I hope you like it. That's nice,but it's doing different thing from my code:yours is making the verbal translation of date info and mine is making verbal translation of how long ago the file was played.Now i don't mind using yours, or mine i'll let the users to say what they think.Thanks for the code. This post has been edited by Russell777: Sep 30 2006, 11:05 -------------------- Favourite artist:CD-R
Favourite album:700MB |
|
|
|
Sep 30 2006, 13:28
Post
#339
|
|
![]() Group: Banned Posts: 172 Joined: 6-March 06 Member No.: 28300 |
using 1.9micro and cwb_hooks 0.1.12 I have now 100% cpu on volume change !!! downgrade to cwb 0.1.10 fixed it again
|
|
|
|
Sep 30 2006, 13:56
Post
#340
|
|
|
Group: Members Posts: 31 Joined: 4-July 06 Member No.: 32539 |
My volume indicator is not working good, what's the matter?
Nevermind, it was the cwb_hooks. This post has been edited by Pingwinho: Sep 30 2006, 14:11 |
|
|
|
Sep 30 2006, 15:00
Post
#341
|
|
|
Group: Members Posts: 10 Joined: 27-September 06 Member No.: 35671 |
sounds pretty cool. I'll get one.
|
|
|
|
Sep 30 2006, 15:32
Post
#342
|
|
![]() Group: Members Posts: 473 Joined: 4-April 05 From: Chicago, IL Member No.: 21193 |
That's nice,but it's doing different thing from my code:yours is making the verbal translation of date info and mine is making verbal translation of how long ago the file was played.Now i don't mind using yours, or mine i'll let the users to say what they think.Thanks for the code. No problem. Just wanted to offer up an alterative to displaying the dates. I have a suggestion. Perhaps you could make the symbol to the left of the volume indicator a mute/unmute button. I think that might be a cool thing to have....unless it causes to big of a resource drain. |
|
|
|
Sep 30 2006, 15:49
Post
#343
|
|
![]() Group: Members Posts: 559 Joined: 13-April 06 Member No.: 29483 |
QUOTE I have a suggestion. Perhaps you could make the symbol to the left of the volume indicator a mute/unmute button. I think that might be a cool thing to have....unless it causes to big of a resource drain. Heh,we are thinking in the same direction,I've tried to do it,but unfortunately i wasn't able to implement it,the button assigned to command "Volume mute" just doesn't responce,i believe it's happening b/c "Volume mute" isn't foobar's recognised command.But if you success in doing it let me know.
-------------------- Favourite artist:CD-R
Favourite album:700MB |
|
|
|
Sep 30 2006, 15:55
Post
#344
|
|
![]() Group: Members Posts: 473 Joined: 4-April 05 From: Chicago, IL Member No.: 21193 |
QUOTE I have a suggestion. Perhaps you could make the symbol to the left of the volume indicator a mute/unmute button. I think that might be a cool thing to have....unless it causes to big of a resource drain. Heh,we are thinking in the same direction,I've tried to do it,but unfortunately i wasn't able to implement it,the button assigned to command "Volume mute" just doesn't responce,i believe it's happening b/c "Volume mute" isn't foobar's recognised command.But if you success in doing it let me know.In the actual button toolbar, the "Main Menu Item" option of "Playback/Volume Mute" button is functional. Is that what you were trying? |
|
|
|
Sep 30 2006, 15:56
Post
#345
|
|
![]() Group: Members Posts: 559 Joined: 13-April 06 Member No.: 29483 |
QUOTE In the actual button toolbar, the "Main Menu Item" option of "Playback/Volume Mute" button is functional. Is that what you were trying? Exactly,and it didn't work,maybe i did something wrong,maybe you can try it out and let me now if it's working for you? -------------------- Favourite artist:CD-R
Favourite album:700MB |
|
|
|
Sep 30 2006, 16:07
Post
#346
|
|
![]() Group: Members Posts: 473 Joined: 4-April 05 From: Chicago, IL Member No.: 21193 |
Could you give me an example of the code you are using? I'm afraid I don't really know how the $button command works, yet.
Thanks. |
|
|
|
Sep 30 2006, 16:34
Post
#347
|
|
![]() Group: Members Posts: 559 Joined: 13-April 06 Member No.: 29483 |
Could you give me an example of the code you are using? I'm afraid I don't really know how the $button command works, yet. Thanks. Example:$button(10,10,0,0,20,20,Image path1,Image path2,COMMAND,) Where 10,10 - X1,Y1 on panel where the top left corner of button is located 0,0- X2,Y2 starting position of an active (clackable) part of button relative to X1,Y1 20,20 - X3,Y3 width,height of active part of the button image path1,image path2-paths of inactive and active images (you can leave it blank) command-the executable command name (ex:play) See "Buttons" section of my code for examples -------------------- Favourite artist:CD-R
Favourite album:700MB |
|
|
|
Sep 30 2006, 16:37
Post
#348
|
|
![]() Group: Banned Posts: 172 Joined: 6-March 06 Member No.: 28300 |
Russell777 you don't have problems with high-cpu usage on volume change?
|
|
|
|
Sep 30 2006, 16:43
Post
#349
|
|
![]() Group: Members Posts: 559 Joined: 13-April 06 Member No.: 29483 |
Russell777 you don't have problems with high-cpu usage on volume change? Yes in fact i do.The problem doesn't come from my code,but from latest version of cwb hooks combined with latest version of trackinfo mod panel (it's because of callback notifications).I PMed CWBowron and he said that he and Terrestrial are working on solution.So for now that's what we get.if you feel that it's too much for you,you can switch to prev version of cwb hooks,but it doesn't provide the volume value. So for now i'm just sitting and waiting for the updates of those components. -------------------- Favourite artist:CD-R
Favourite album:700MB |
|
|
|
Sep 30 2006, 17:51
Post
#350
|
|
![]() Group: Members Posts: 473 Joined: 4-April 05 From: Chicago, IL Member No.: 21193 |
Hey Russell,
No luck here getting a "Mute" button to work, either. It wasn't that I couldn't get a button in place, it's that I don't think there is a command that can be currently called to mute the volume in the button options. Not sure if terrestrial would need to add the "context menu" to the options, or if perhaps a function in cwb_hooks would be better. UPDATE: I was able to get a function "Mute" button by using foo_run. The only problem is that when you click the button, it takes a few seconds for it to activate. Wish it were faster. It probably would work best if there were a "Mute" option in the right-click context menu. Wish there was a way to add it. This post has been edited by kockroach: Sep 30 2006, 19:27 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 23:47 |