IPB

Welcome Guest ( Log In | Register )

foo_cwb_hooks, No longer compatible/developed.
cwbowron
post Apr 13 2006, 19:04
Post #1





Group: Members
Posts: 863
Joined: 15-November 04
From: East Lansing,MI
Member No.: 18153



foo_cwb_hooks adds various functions and variables to global title formatting. It also adds a timestamp action to masstagger scripts, and the ability to run a script on files added to the media library (New File Tagger).

More information on my components page: http://www.bazquux.com/wiki/Foobar2000:Hooks

This post has been edited by cwbowron: May 9 2008, 01:21


--------------------
There used to be a link to my website here.
Go to the top of the page
+Quote Post
 
Start new topic
Replies
lhaymehr
post Aug 24 2006, 01:27
Post #2





Group: Members
Posts: 16
Joined: 28-March 06
Member No.: 28921



Could you add system colors to this plugin?
Go to the top of the page
+Quote Post
Stuart60611
post Aug 24 2006, 02:19
Post #3





Group: Members
Posts: 384
Joined: 12-June 05
Member No.: 22685



I think it would awesome if you could add hotness and hot_color. A lot of people use the hotness code, and it is now as far as I know not possible to display such data in the track info. panel. With this addition, one would be able to do so.
Go to the top of the page
+Quote Post
cwbowron
post Aug 24 2006, 03:23
Post #4





Group: Members
Posts: 863
Joined: 15-November 04
From: East Lansing,MI
Member No.: 18153



QUOTE (Stuart60611 @ Aug 23 2006, 21:19) *
I think it would awesome if you could add hotness and hot_color. A lot of people use the hotness code, and it is now as far as I know not possible to display such data in the track info. panel. With this addition, one would be able to do so.


If someone posts the formula for hotness I will look into it.


--------------------
There used to be a link to my website here.
Go to the top of the page
+Quote Post
Stuart60611
post Aug 24 2006, 04:16
Post #5





Group: Members
Posts: 384
Joined: 12-June 05
Member No.: 22685



QUOTE (cwbowron @ Aug 23 2006, 21:23) *
QUOTE (Stuart60611 @ Aug 23 2006, 21:19) *

I think it would awesome if you could add hotness and hot_color. A lot of people use the hotness code, and it is now as far as I know not possible to display such data in the track info. panel. With this addition, one would be able to do so.


If someone posts the formula for hotness I will look into it.



Hotness Code (topdownjimmy's original code and modified by others).
Note: change %play_counter% if using official statistics component to %play_count%.

Code for global variables tab:
CODE

// hourly decay version (hotness)
/////////////////////////////////////////

// baselines: define baseline frequency and decay periods
//
// baselinefrequency: decrease if songs stay hot too long
// baselinedecay: decrease if too many songs are hot
//
$puts(baselinefrequency,14)
$puts(baselinedecay,7)

// convert baselines to hours
$puts(baselinefrequency,$mul($get(baselinefrequency),24))
$puts(baselinedecay,$mul($get(baselinedecay),24))

// calculate "age": the number of hours the song has been in the library
// actually it's just hardcoded ^^
$puts(age,$mul(%play_counter%,$get(baselinefrequency)))

// calculate "recentness": number of hours since song was last played
$puts(recentness,
$sub(
$add(
$mul(
$add(
$mul($right(%_system_year%,2),365),
$select(%_system_month%,0,31,59,90,120,151,181,212,243,273,304,334),
$add($div($right(%_system_year%,2),4),$if($or($greater(%_system_month%,2),$greater($mod(%_system_year%,4),0)),1,0)),
%_system_day%
),
24
),
%_system_hour%
)
,
$add(
$mul(
$add(
$mul($substr(%last_played%,3,4),365),
$select($substr(%last_played%,6,7),0,31,59,90,120,151,181,212,243,273,304,334),
$add($div($substr(%last_played%,3,4),4),$if($or($greater($substr(%last_played%,6,7),2),$greater($mod($substr(%last_played%,1,4),4),0)),1,0)),
$substr(%last_played%,9,10)
),
24
),
$substr(%last_played%,12,13)
)
)
)

// calculate "decay": the specific decay period
$puts(decay,$div($mul(%play_counter%,$get(baselinefrequency),$get(baselinedecay),$if2(%rating%,$get(avgrating))),$mul($max($get(age),$get(baselinefrequency)),3)))

// calculate "hotness"
$puts(hotness,$div($mul($max($sub($get(decay),$get(recentness)),0),100),$get(decay)))

$set_global(hotness,$get(hotness))
$set_global(hot_color,$blend(000000|000000,0000FF|0000FF,$get(hotness),100))

/////////////////////////////////////////


Display hotness with $get_global(hotness). This will diplay a hotness value of 0-100. I use a character to display my hotness (along with the hotness color) and no number, such as $char(9650). You access hotness color with the hot_color variable and can set column custom style with $set_style(text,$get_global(hot_color),$get_global(hot_color)). You custom sort the column with $num($get_global(hotness),3). You have to have all three boxes checked under global variables tab, except legacy support and obviously all three boxes checked on the hotness column.

This post has been edited by Stuart60611: Aug 24 2006, 05:56
Go to the top of the page
+Quote Post
cwbowron
post Aug 24 2006, 13:19
Post #6





Group: Members
Posts: 863
Joined: 15-November 04
From: East Lansing,MI
Member No.: 18153



QUOTE (Stuart60611 @ Aug 23 2006, 23:16) *
QUOTE
If someone posts the formula for hotness I will look into it.



Hotness Code (topdownjimmy's original code and modified by others).
Note: change %play_counter% if using official statistics component to %play_count%.

Code for global variables tab:

<SNIP>

Display hotness with $get_global(hotness). This will diplay a hotness value of 0-100. I use a character to display my hotness (along with the hotness color) and no number, such as $char(9650). You access hotness color with the hot_color variable and can set column custom style with $set_style(text,$get_global(hot_color),$get_global(hot_color)). You custom sort the column with $num($get_global(hotness),3). You have to have all three boxes checked under global variables tab, except legacy support and obviously all three boxes checked on the hotness column.


I want a formula. I dont want the whole complicated tagz mess.

This post has been edited by cwbowron: Aug 24 2006, 13:22


--------------------
There used to be a link to my website here.
Go to the top of the page
+Quote Post
Stuart60611
post Aug 24 2006, 15:58
Post #7





Group: Members
Posts: 384
Joined: 12-June 05
Member No.: 22685



QUOTE (cwbowron @ Aug 24 2006, 07:19) *
QUOTE (Stuart60611 @ Aug 23 2006, 23:16) *

QUOTE
If someone posts the formula for hotness I will look into it.



Hotness Code (topdownjimmy's original code and modified by others).
Note: change %play_counter% if using official statistics component to %play_count%.

Code for global variables tab:

<SNIP>

Display hotness with $get_global(hotness). This will diplay a hotness value of 0-100. I use a character to display my hotness (along with the hotness color) and no number, such as $char(9650). You access hotness color with the hot_color variable and can set column custom style with $set_style(text,$get_global(hot_color),$get_global(hot_color)). You custom sort the column with $num($get_global(hotness),3). You have to have all three boxes checked under global variables tab, except legacy support and obviously all three boxes checked on the hotness column.


I want a formula. I dont want the whole complicated tagz mess.



Sorry, I don't know the formula, but I only can provide you the code. Perhaps, pm topdownjimmy, and he can provide you with what you need.
Go to the top of the page
+Quote Post

Posts in this topic
- cwbowron   foo_cwb_hooks   Apr 13 2006, 19:04
- - Silversight   The download works, but the archive is corrupted.   Apr 13 2006, 19:25
- - foosion   Is there a special reason why this function is not...   Apr 13 2006, 19:26
- - cwbowron   Archive has been fixed. I had forgotten to switch...   Apr 13 2006, 19:32
- - mazy   cwbowron, could you, please add other functions to...   Apr 25 2006, 21:49
- - year98   I would like to request -current playback order   Aug 8 2006, 12:51
- - cwbowron   I added a couple more things today to foo_cwb_hook...   Aug 11 2006, 20:23
|- - Squeller   QUOTE (cwbowron @ Aug 11 2006, 11:23) * a...   Aug 12 2006, 13:06
- - mazy   thank you for this update, cwbowron. what are you ...   Aug 12 2006, 01:44
- - mazy   Squeller, i'm all for new functions in tagz fo...   Aug 12 2006, 16:52
|- - saivert   You could make a component that enables the use of...   Aug 13 2006, 22:35
- - vlada   I'd like to vote for queue index. Please see a...   Aug 15 2006, 00:15
- - cwbowron   After looking into some of the SDK documentation, ...   Aug 15 2006, 18:21
- - vlada   That's sad, that it is not possible to automat...   Aug 16 2006, 12:19
- - Chronial   I don't know if this is possible, but: just re...   Aug 17 2006, 16:17
|- - cwbowron   QUOTE (Chronial @ Aug 17 2006, 11:17) I d...   Aug 17 2006, 16:20
- - cwbowron   I just put up 1.0.3 on my web site, which adds %qu...   Aug 17 2006, 18:07
|- - roentgen   QUOTE (cwbowron @ Aug 17 2006, 20:07) I j...   Aug 17 2006, 19:16
|- - cwbowron   QUOTE (roentgen @ Aug 17 2006, 14:16) QUO...   Aug 17 2006, 19:32
- - Chronial   Great work there I have some more suggestions co...   Aug 17 2006, 19:21
- - q-stankovic   Great thing and thanks, Chris! I tested %que...   Aug 17 2006, 20:56
- - mazy   just wanted to thank you, cwbowron ... this queue ...   Aug 17 2006, 21:58
- - Chronial   I added some stuff and sent it to cwbowron - hope ...   Aug 17 2006, 23:15
|- - bfly   QUOTE (Chronial @ Aug 18 2006, 00:15) I a...   Aug 18 2006, 21:46
|- - cwbowron   QUOTE (bfly @ Aug 18 2006, 16:46) I don...   Aug 18 2006, 21:50
- - vlada   Thanks a lot cwbowron, it works great. The queue i...   Aug 18 2006, 00:05
- - q-stankovic   QUOTE (vlada @ Aug 18 2006, 00:05) But I ...   Aug 18 2006, 13:29
- - cwbowron   I incorporated the changes sent to my by Chronial ...   Aug 18 2006, 13:58
- - bfly   Thanks Christopher, that worked. Great plugin, tha...   Aug 18 2006, 22:16
- - year98   Can playback order variable be possible? I think t...   Aug 19 2006, 10:29
- - vlada   QUOTE (q-stankovic @ Aug 18 2006, 14...   Aug 19 2006, 10:31
|- - cwbowron   QUOTE (vlada @ Aug 19 2006, 05:31) Someti...   Aug 19 2006, 15:17
|- - vlada   QUOTE (cwbowron @ Aug 19 2006, 16:17) Dis...   Aug 19 2006, 15:53
- - thuan   QUOTE Btw. Is it possible to delete a file from a ...   Aug 19 2006, 13:00
- - q-stankovic   Some ideas for new variables and functions: 1. %c...   Aug 20 2006, 14:27
- - Chronial   %cwb_replaygain_mode% is not a good idea - if you ...   Aug 20 2006, 15:52
- - thuan   %cwb_replaygain_mode% is for displaying what mode ...   Aug 21 2006, 01:10
|- - cwbowron   QUOTE (thuan @ Aug 20 2006, 20:10) %cwb_r...   Aug 21 2006, 01:52
|- - foosion   QUOTE (cwbowron @ Aug 21 2006, 02:52) I d...   Aug 21 2006, 09:05
- - thuan   If it's so then maybe it should be call ...   Aug 21 2006, 04:19
- - Squeller   You have introduced two variables for displaying p...   Aug 21 2006, 07:54
- - q-stankovic   QUOTE (Chronial @ Aug 17 2006, 19:21) I h...   Aug 21 2006, 17:35
- - Chronial   unfortunately there is no way to access the name o...   Aug 21 2006, 19:05
|- - Squeller   QUOTE (Chronial @ Aug 21 2006, 10:05) So ...   Aug 22 2006, 17:00
- - rendom   Any ways to get info from specific file from playl...   Aug 21 2006, 19:33
- - cwbowron   Release 1.0.5 * $cwb_datediff(d1,d2) - numb...   Aug 22 2006, 16:37
- - Chronial   %cwb_queue_end_playlist% returns the playlist the ...   Aug 22 2006, 17:27
- - q-stankovic   QUOTE (Chronial @ Aug 22 2006, 17:27) %cw...   Aug 22 2006, 18:15
- - Chronial   CODE$if(%cwb_queueindex%,'['...   Aug 22 2006, 19:39
- - Russell777   Is it possible to get system time even when no tra...   Aug 22 2006, 21:30
|- - cwbowron   QUOTE (Russell777 @ Aug 22 2006, 16:30) I...   Aug 22 2006, 21:39
- - Squeller   So you made it possible for us to access the activ...   Aug 23 2006, 20:36
- - cwbowron   Release 1.0.6 * fixed incorrect way of gettin...   Aug 23 2006, 21:01
- - Russell777   Thank you for this component and for updating it...   Aug 23 2006, 22:03
|- - ktr   QUOTE (Russell777 @ Aug 23 2006, 15:03) T...   Sep 1 2006, 21:24
- - lhaymehr   Could you add system colors to this plugin?   Aug 24 2006, 01:27
|- - Stuart60611   I think it would awesome if you could add hotness ...   Aug 24 2006, 02:19
|- - cwbowron   QUOTE (Stuart60611 @ Aug 23 2006, 21:19) ...   Aug 24 2006, 03:23
|- - Stuart60611   QUOTE (cwbowron @ Aug 23 2006, 21:23) QUO...   Aug 24 2006, 04:16
|- - cwbowron   QUOTE (Stuart60611 @ Aug 23 2006, 23:16) ...   Aug 24 2006, 13:19
|- - Stuart60611   QUOTE (cwbowron @ Aug 24 2006, 07:19) QUO...   Aug 24 2006, 15:58
- - Squeller   cwbowron you are fast, thank you. I am ashamed to ...   Aug 24 2006, 04:55
- - q-stankovic   QUOTE (Stuart60611 @ Aug 23 2006, 21:19) ...   Aug 24 2006, 10:41
- - FofR   I updated the wiki page with the info on the offic...   Aug 24 2006, 15:53
- - q-stankovic   I had some ideas for special functions but don...   Aug 24 2006, 16:03
- - Chronial   No, this is not possible. It would be way to slow...   Aug 24 2006, 17:01
- - cwbowron   Release 1.0.7 * %cwb_next_title% - title of the n...   Sep 1 2006, 17:32
|- - TheTravis   QUOTE (cwbowron @ Sep 1 2006, 19:32) Rele...   Sep 1 2006, 17:35
- - mazy   nice additions, cwbowron! could you add somet...   Sep 1 2006, 19:44
|- - cwbowron   QUOTE (mazy @ Sep 1 2006, 14:44) could yo...   Sep 1 2006, 19:50
|- - mazy   QUOTE (cwbowron @ Sep 1 2006, 20:50) I...   Sep 2 2006, 10:50
- - thuan   Thanks for your handy plugin. Could you do someth...   Sep 2 2006, 01:45
- - q-stankovic   I tried following things without succes: In PT i c...   Sep 2 2006, 21:40
|- - cwbowron   QUOTE (q-stankovic @ Sep 2 2006, 16...   Sep 5 2006, 15:50
|- - Stuart60611   Request. cwb_followcursor.   Sep 11 2006, 04:54
- - Sw!ng   Handy, very handy Component ... THNX !! I...   Sep 3 2006, 10:46
- - Chronial   About the %_replaygain_mode% request: This can be ...   Sep 3 2006, 16:10
- - AsD   Thanks for the plugin. I have 3 requests: 1 cwb_st...   Sep 11 2006, 14:42
- - alphaex32   Would it be possible to add a function that can in...   Sep 11 2006, 17:54
|- - cwbowron   QUOTE (alphaex32 @ Sep 11 2006, 12:54) Wo...   Sep 11 2006, 18:10
- - alphaex32   Would it be possible if it were implemented in col...   Sep 11 2006, 18:20
- - fabiospark   Are all the variables added by cwb_hooks working i...   Sep 11 2006, 19:08
|- - cwbowron   QUOTE (fabiospark @ Sep 11 2006, 14:08) A...   Sep 11 2006, 19:28
- - cwbowron   Release 1.0.8 * %cwb_stopaftercurrent% * ...   Sep 11 2006, 21:56
- - pepoluan   Mods: With all the amazing functions this plugin p...   Sep 11 2006, 22:04
- - Hamallainen   I really like this plugin, especially the playback...   Sep 11 2006, 22:12
|- - Stuart60611   Thanks for creating this wonderful component and a...   Sep 12 2006, 17:36
|- - cwbowron   QUOTE (Stuart60611 @ Sep 12 2006, 12:36) ...   Sep 12 2006, 18:14
- - Chronial   Have you ever tried doing a hardcore full-db refre...   Sep 12 2006, 18:23
|- - foosion   QUOTE (Chronial @ Sep 12 2006, 19:23) I t...   Sep 12 2006, 19:16
- - Chronial   As far as i've seen it, updating the whole Db ...   Sep 12 2006, 21:20
|- - Peter   QUOTE (Chronial @ Sep 12 2006, 22:20) It ...   Sep 12 2006, 21:26
|- - Peter   QUOTE (Chronial @ Sep 12 2006, 22:20) As ...   Sep 12 2006, 22:04
- - Peter   I don't want to get into pointless arguments h...   Sep 12 2006, 21:43
- - Chronial   Well, every user has his own POV regarding reliabi...   Sep 12 2006, 22:04
|- - foosion   QUOTE (Chronial @ Sep 12 2006, 23:04) So ...   Sep 12 2006, 22:33
|- - cwbowron   QUOTE (foosion @ Sep 12 2006, 17:33) That...   Sep 13 2006, 13:31
- - ...Just Elliott   If there's one feature in this, I'm going ...   Sep 13 2006, 22:27
- - alphaex32   I'd just like to restate my suggestion for som...   Sep 13 2006, 23:15
- - Kirya   Please, add %cwb_next_directoryname%. It would be ...   Sep 13 2006, 23:22
5 Pages V   1 2 3 > » 


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th December 2014 - 01:27