Help - Search - Members - Calendar
Full Version: [Request] Inactive Tracks
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3
v.1
QUOTE(buktore @ Feb 4 2008, 22:38) *

And here the another version for rating that work.
QUOTE
$if($or(%skip%,$greater($mod($cwb_rand(),100),$if(%rating%,$mul(%rating%,20),50))),1,0)

1 star = 20% to pick the track.
If there is SKIP tag present, it will always skip that track.
The bold number is the probability rate in % for track that don't have rating. Change to 0 will make it skip all track that don't have rating.


your script doesn't work. nor do mine, which i made editing yours.

CODE

$ifgreater(
   $mod($cwb_rand(),100),
   $if(%RATING%,
      $ifequal(%RATING%,0,50,
         $ifequal(%RATING%,9,0,
            $mul(%RATING%,20)
         )
      ),
   50),
1,0)

or
CODE
$ifgreater($mod($cwb_rand(),100),$if(%RATING%,$ifequal(%RATING%,0,50,$ifequal(%RATING%,9,0,$mul(%RATING%,20))),50),1,0)


i use rating from 0 to 6, plus a rating of 9 for double tracks or not-song-tracks, wich is related to a special mark. i don't use the %skip% tag. i want tracks rated 0 to be treated as unmarked, and the tracks rated 9 to be skipped.

something doesn't work in this script.. can you spot any error?

EDIT
i think that the result of $mod($cwb_rand(),100), is too low. which is the interval in wich cwb_rand generates the numbers?
EDIT2
it seems that $cwb_rand() and $rand don't work. i've installed cwb_hooks
servimo
How should be a script for playing not played songs? I have foo_playcounter_custom installed with only database enabled and I want to play the songs not played yet in my playlist, or the ones less played, how should be a script for this?
v.1
QUOTE(servimo @ Aug 26 2008, 18:46) *

How should be a script for playing not played songs? I have foo_playcounter_custom installed with only database enabled and I want to play the songs not played yet in my playlist, or the ones less played, how should be a script for this?


try
$if(%count%,1,0)
or
$if(%count%,$ifgreater(%count%,0,1,0),0)

where count is the name of the variable used by the playcounter. this will make foobar play only songs never played before. while this:

$if(%count%,$ifgreater(%count%,3,1,0),0)
skips all the songs played more than 3 times. you can change this limit as you like
servimo
Thanks for the quick reply.
I am using this and looks like is working.
QUOTE
if(%play_count%,ifgreater(%play_count%,0,1,0),0)

I have a lot of music in my library, and I am always playing randomly and I see that foobar often repeat some songs, and there is some I never heard.
Many thanks!
buktore
What foobar version you use?

cwb_hooks doesn't work with current version of foobar. It mean that my code no longer work anymore.

@servimo

You can simplified it to..

$ifgreater(%play_count%,0,1,0)

or if $if(%play_count%,1,0) work, use this.
servimo
I am using foobar2000 version 0.9.5.5 and for the songs I tried looks like working. It is playing only songs that was played 1 or 0 times. Maybe this could be an illusion... I'll try more times
v.1
QUOTE(buktore @ Aug 26 2008, 19:06) *

What foobar version you use?

cwb_hooks doesn't work with current version of foobar. It mean that my code no longer work anymore.


sad.gif
i'm using 9.5, cwb_hooks figures in my settings menu
is there any alternative to get some random numbers?

thanks
buktore
No.

Last version of foobar that work with cwb_hooks (and some other components) is 0.9.5.2
v.1
QUOTE(buktore @ Aug 26 2008, 19:23) *

No.

Last version of foobar that work with cwb_hooks (and some other components) is 0.9.5.2


i don't know which version i'm running but cwb_hook seems to work. in the settings panel it says to be 9.5
so i can't understand what's wrong..

buktore
Go to preference >Components and check at "foobar2000 core"

If it is 0.9.5 as you said, check cwb_hooks version, it must be 1.2.6 (last version) or else it won't work.
v.1
QUOTE(buktore @ Aug 26 2008, 19:37) *

Go to preference >Components and check at "foobar2000 core"


0.9.5

EDIT: in fact i had an older version of cwb_hooks. updating solved my problem.
thank you very much
your script works fine biggrin.gif
servimo
One thing I notice in this component is that it doesn't keep the last option you choose between sessions on foobar2000-0.9.5.5, it always back to the first option. When I begin foobar again I have to choose the option I want in the menu again. Maybe it should have a way of store the last configuration.
v.1
QUOTE(servimo @ Sep 6 2008, 18:59) *

One thing I notice in this component is that it doesn't keep the last option you choose between sessions on foobar2000-0.9.5.5, it always back to the first option. When I begin foobar again I have to choose the option I want in the menu again. Maybe it should have a way of store the last configuration.


that's a issue i experienced too.

v.1
is there any chance that this plug in shall be updated to support rand() function? this to avoid to use of (the beloved) cwb_hooks
Sounds Blast
If anyone could update this foo_skip for the latest foobar2000 9.6....., or maybe someone has a version that works with this?
2E7AH
QUOTE(Squeller @ Apr 27 2005, 09:06) *
I use foo_dsp_continuator. At the end of a track and if the next track in playlist is a skipped track, foobar plays about 1/2 sec. of the skipped track and then goes on with the next, unskipped track.

What about this?
I have the same problem even without continuator.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.