Hydrogenaudio Forums

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: TheDom on 03 January, 2005, 06:23:42 AM

Title: foo_skip: skip tracks that match a specified search query
Post by: TheDom on 03 January, 2005, 06:23:42 AM
Hi!

I would like to see a plugin that skips tracks that are marked via a tag as inactive. I don't like some tracks on albums and so I don't want to hear them (except if I click on them) but I want to keep them on my playlist because of the completeness.

Would be great if anybody could code something like this!
Title: foo_skip: skip tracks that match a specified search query
Post by: Silverbolt on 03 January, 2005, 06:33:06 AM
Sounds like a cool idea.
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 03 January, 2005, 07:20:54 AM
Very impressive and cool!
I like this idea.

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 03 January, 2005, 12:47:48 PM
Another way:
Maybe there is a way only to play tracks with rating and skip all other tracks without rating-tag. Would be nice so!
Not a specially mark via a "tag for inactive" needs!

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: TheDom on 03 January, 2005, 01:33:46 PM
I don't have and don't like ratings...
Title: foo_skip: skip tracks that match a specified search query
Post by: Lyx on 03 January, 2005, 04:41:57 PM
Great idea!

It would be especially cool, if one could not just set a "dontplay"-tag to a file, but could also tell the plugin to "play only files with a rating of at least [dropdown-menu] but not higher than [dropdown-menu]."

- Lyx
Title: foo_skip: skip tracks that match a specified search query
Post by: mazy on 03 January, 2005, 05:06:10 PM
well i'm all for configurable plugin, that would sit on top of playback flow and simply skip tracks that evaluate given formatting string to 'true' ...

edit: and if you could save some presets and then select them from toolbar, that would be uber cool
Title: foo_skip: skip tracks that match a specified search query
Post by: TheDom on 06 January, 2005, 07:01:00 AM
*bump*
Anyone?
Title: foo_skip: skip tracks that match a specified search query
Post by: Der_Iltis on 06 January, 2005, 10:19:02 AM
Isn't it possible with playlist_gen or Playlist tree?

Another suggestion would be to use Shuffle control (don't know if it is possible to increment the tracknumber in the playlist (just like the tracknumbers in Album shuffle mode) and to use something like +%Active% +$inc(%_Playlist_entry%)
Title: foo_skip: skip tracks that match a specified search query
Post by: TheDom on 06 January, 2005, 11:47:37 AM
Quote
Isn't it possible with playlist_gen or Playlist tree?

No because I want that the tracks to show up on the playlist.
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 09 January, 2005, 04:27:53 PM
Well, I quickly put something together which might at least be a start.

If the plugin is enabled, all files with a 'skip'-tag are skipped except it's 'false' or '0'. The only way to play skip-tagged files is either to disable the plugin with 'Skip/deactivate' or to stop playback first and then play it. I made it this way, because I don't know any way to find out, if the user has double-clicked on a track or pressed the 'next'-button.

Get it here (http://www.youngpixel.de/foobar/foo_skip.dll), may need the msvcr71.dll (http://www.youngpixel.de/foobar/msvcr71.dll)
Title: foo_skip: skip tracks that match a specified search query
Post by: mazy on 09 January, 2005, 07:46:21 PM
nice!

but could you please add adjustable formatting string to evaluate for that?
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 10 January, 2005, 10:02:00 AM
okay, done

The formatting string now must evaluate to 'true' or '1' to skip. Default is '$if2(%skip%,0)'

new version here (http://www.youngpixel.de/foobar/foo_skip.dll)
Title: foo_skip: skip tracks that match a specified search query
Post by: anza on 10 January, 2005, 11:11:18 AM
Cool, now we'll only have to wait for Peter to implemet the "store these tags in the database instead of writing them to the files" option :B
Title: foo_skip: skip tracks that match a specified search query
Post by: TheDom on 10 January, 2005, 11:16:36 AM
Works great. Thank you!!!
Title: foo_skip: skip tracks that match a specified search query
Post by: mazy on 10 January, 2005, 01:10:44 PM
thanks a lot!
Title: foo_skip: skip tracks that match a specified search query
Post by: lightbulb on 10 January, 2005, 03:06:12 PM
EDIT - never mind.
Title: foo_skip: skip tracks that match a specified search query
Post by: Fishy Joe on 10 January, 2005, 09:17:20 PM
Quote
Cool, now we'll only have to wait for Peter to implemet the "store these tags in the database instead of writing them to the files" option :B
[a href="index.php?act=findpost&pid=264234"][{POST_SNAPBACK}][/a]



Would it be possible to implement a "DB Only Mask" like the play count plugin? Any file masks listed there will have the playcount saved in the foobar database rather than in the tag of the file.
Title: foo_skip: skip tracks that match a specified search query
Post by: Zurman on 11 January, 2005, 01:22:12 PM
Amazing plugin. I would just suggest a few things :
The ability to have more than one format string, and choose the one that I want to use. For example some times I may want to skip the tracks marked "skip", and other times I want to play only rated tracks, etc...
It would be really nice if we could choose this quickly from the interface

keep up the good work 
Title: foo_skip: skip tracks that match a specified search query
Post by: Zurman on 11 January, 2005, 01:34:59 PM
Just another thing : make the plugin always play the track whan double-clicked
Title: foo_skip: skip tracks that match a specified search query
Post by: Lyx on 11 January, 2005, 02:19:27 PM
Cool, thanks :)

- Lyx

edit: eek, go away smiley!
Title: foo_skip: skip tracks that match a specified search query
Post by: Zurman on 11 January, 2005, 02:22:42 PM
Sorry to have another request 

When the plugin skips a track, it plays automatically the following, but it should (I think) play the following or a random one, according to the playing mode.

Anyway thanks for the plugin
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 12 January, 2005, 08:30:42 PM
Quote
Amazing plugin. I would just suggest a few things :
The ability to have more than one format string, and choose the one that I want to use. For example some times I may want to skip the tracks marked "skip", and other times I want to play only rated tracks, etc...
It would be really nice if we could choose this quickly from the interface

okay, is in
..not choosable from interface but you can always make a keyboard-shortcut, if you want to change it that quickly

Quote
When the plugin skips a track, it plays automatically the following, but it should (I think) play the following or a random one, according to the playing mode.

hmk, fixed .. but why aren't you using the shuffle plugin ?
Title: foo_skip: skip tracks that match a specified search query
Post by: Zurman on 13 January, 2005, 06:47:47 AM
Thanks for updating
Title: foo_skip: skip tracks that match a specified search query
Post by: andreas on 15 January, 2005, 05:13:52 AM
Hi,

I'm not quite sure, if I absolutely understood the function of the menu entries.
If I manually add a SKIP tag to my files everything works perfectly. And 'Activate' and 'Deactivate' also seem to work as i expect, but I would have loved some sort of signal, if skip-mode is activated (perhaps a checkmark in front of 'Activate' or 'Deactivate'). At the moment I seem to have to remember or try.

Then I thought, 'toggle' would toggle the SKIP tag in files, but it also seems to activate or deactivate the skip mode. I'm missing a way to add the skip tags. Currently im using the Quick-Tag plugin for this, but I would have liked this feature in the Skip submenu and I can't get the Quick-Tag functions in the main menu.
Also I can't realize a "Toggle" function with quicktag.

Another thing: I've changed my playlist (based on plisk's column_ui playlist)  to sort of grey out the entries, which will be skipped. I could try to post my changes, if somebody is interested in this.

In foo_trackinfo I use the following to show the skipped info:
Code: [Select]
$if($strcmp(%skip%,1),,0080ff)$caps2(%artist%)$if($strcmp(%skip%,1), '['skipped']',)


Many thanks for this plugin,
Andreas
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 15 January, 2005, 06:37:22 AM
Quote
Another thing: I've changed my playlist (based on plisk's column_ui playlist)  to sort of grey out the entries, which will be skipped. I could try to post my changes, if somebody is interested in this.
[a href="index.php?act=findpost&pid=265502"][{POST_SNAPBACK}][/a]

Nice, i have interest for it! - THX

@kdx
Realy good work and THX for that!

One question:
If i mark a song for "skipped", all other songs behind are not playing too, without SKIP-TAG.
Whats wrong?

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: andreas on 15 January, 2005, 10:36:16 AM
Quote
Nice, i have interest for it! - THX

Well, here we go.
Only files which have their skip tag set to "1" will be greyed out.

Please, don't mind that I do not post my entire skripts, because I changed some stuff in plisks-config, which don't seem usefull for everybody (e.g.: I removed the colour theme switching for a bit more performance) and the scripts look a bit messy.

It basically comes down to add this to your "Globals":
Code: [Select]
$if($strcmp(%skip%,1),is_skipped=1,)

Now, you can use %_is_skipped% in your columns.
In plisks configuration this basically involves two flavours of insertions:

First flavour for columns, where there's already something configured in the "Colour"-Tab.

E.g. the Title column: Go to the "Colour"-Tab:
Change this:
Code: [Select]
$if(%_isplaying%,%_ptext%,
$if($and(%_is_first%,$not(%_is_single%)),%_altext%,
%_ntext%))|

into this:
Code: [Select]
$if(%_isplaying%,%_ptext%,
$if(%_is_skipped%,%_brtext%,$if($and(%_is_first%,$not(%_is_single%)),%_altext%,
%_ntext%)))|

Pay attention to the third closing braket at the end! This way, the song title colour is changed only, when the song is NOT playing (remember: you can play songs marked as skipped with a double-click). Actually the colour is changed to the colour normally used for less important text %_brtext% (e.g. text in brakets).

The other sort of change is bit more concise, for columns which don't have anything in their "Colour"-tab:
E.g.: Bitrate-column: Go to the "Display"-Tab:
Change this:
Code: [Select]
$if(%_isplaying%,%__bitrate_dynamic%,%__bitrate%)

into this:
Code: [Select]
$if(%_isplaying%,%__bitrate_dynamic%,$if(%_is_skipped%,%_brtext%,)%__bitrate%)

Since there's no colour, we only need to set the new one for skipped files, so the second change boils down to the insertion of the following in such columns:
Code: [Select]
$if(%_is_skipped%,%_brtext%,)

I hope, this sounds somewhat sensible to you.

Quote
One question:
If i mark a song for "skipped", all other songs behind are not playing too, without SKIP-TAG.
Whats wrong?

For me everything works as it ought to. So I guess, I can't be of any help here.

Regards,
Andreas
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 15 January, 2005, 04:10:31 PM
@andreas
Nice explanation ..... THX! 

But i have still this problem with my skipped tracks, behind the tagged one! 
Damn.

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 16 January, 2005, 08:23:53 PM
Quote
I'm not quite sure, if I absolutely understood the function of the menu entries.
If I manually add a SKIP tag to my files everything works perfectly. And 'Activate' and 'Deactivate' also seem to work as i expect, but I would have loved some sort of signal, if skip-mode is activated (perhaps a checkmark in front of 'Activate' or 'Deactivate'). At the moment I seem to have to remember or try.

are your sure, you have the second version ? I have added checkmarks there ...

Quote
Then I thought, 'toggle' would toggle the SKIP tag in files, but it also seems to activate or deactivate the skip mode. I'm missing a way to add the skip tags. Currently im using the Quick-Tag plugin for this, but I would have liked this feature in the Skip submenu and I can't get the Quick-Tag functions in the main menu.
Also I can't realize a "Toggle" function with quicktag.

"toggle" simply activates/deactivates the skip mode, yes. Why would you need to toggle the skip tags itself ..?

Quote
One question:
If i mark a song for "skipped", all other songs behind are not playing too, without SKIP-TAG.
Whats wrong?

hmm .. I actually have no idea why this could happen. Are you using some special .. ah .. "playback-flow-control-plugin" (something like shuffle) ?
if you are in default-mode .. what happens if you come to a file, which has the skip-tag ? does it just skip all files to the end of the playlist ?
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 16 January, 2005, 08:33:05 PM
Quote
Are you using some special .. ah .. "playback-flow-control-plugin" (something like shuffle) ?
if you are in default-mode .. what happens if you come to a file, which has the skip-tag ? does it just skip all files to the end of the playlist ?
[a href="index.php?act=findpost&pid=265920"][{POST_SNAPBACK}][/a]

Yes, it just skip all files to the end of the playlist! 
I'm in "repeat"-mode! - Maybe i have to change in "default"-mode?

EDIT: Ok, in "default"-mode it happens the same.

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: andreas on 17 January, 2005, 02:14:25 AM
Quote
Quote
I'm not quite sure, if I absolutely understood the function of the menu entries.
If I manually add a SKIP tag to my files everything works perfectly. And 'Activate' and 'Deactivate' also seem to work as i expect, but I would have loved some sort of signal, if skip-mode is activated (perhaps a checkmark in front of 'Activate' or 'Deactivate'). At the moment I seem to have to remember or try.

are your sure, you have the second version ? I have added checkmarks there ...

Aaaargh! You're right, I'm too dumb
Sorry, I somehow thought, I'd got the latest version.
Checkmarks work great and were nearly (see below) everything I needed.
Thanks a lot.

Quote
Quote
Then I thought, 'toggle' would toggle the SKIP tag in files, but it also seems to activate or deactivate the skip mode. I'm missing a way to add the skip tags. Currently im using the Quick-Tag plugin for this, but I would have liked this feature in the Skip submenu and I can't get the Quick-Tag functions in the main menu.
Also I can't realize a "Toggle" function with quicktag.

"toggle" simply activates/deactivates the skip mode, yes. Why would you need to toggle the skip tags itself ..?

Well, in case I want to skip the files temporarily, only.
At the moment, I'm using quick tag plugin (as described before) or I've to open the file properties in order to set/change/remove the skip tag. Correct me, if I missed another smooth way of doing it. I would personally like a possibility to do this within my Skip-submenu (in order to keep this functionality in one spot).
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 17 January, 2005, 06:13:33 AM
Quote
Well, in case I want to skip the files temporarily, only.

Hm, what speaks against enabling/disabling the skip mode ? i thought thats what its for
if you could toggle the skip tags, you wouldnt need to toggle skip mode (and the other way round ..)

Quote
Yes, it just skip all files to the end of the playlist!
I'm in "repeat"-mode! - Maybe i have to change in "default"-mode?

EDIT: Ok, in "default"-mode it happens the same.

the only reason for this i can think of is that you have an expression which always evaluates to
'true' or '1' .. which one do you have ? or try to change it to "false" ..
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 17 January, 2005, 06:23:41 AM
Quote
'true' or '1' .. which one do you have ? or try to change it to "false"

I use "true"now , but i also tried "1". I don't think with "false" it will run. 
Any other idea for me?

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 17 January, 2005, 06:40:16 AM
Quote
I use "true"now , but i also tried "1"

well, lol, okay .. the plugin skips all tracks for which the expression you entered evaluates to "true" or "1" .. so if you have entered "true" as the expression, it will skip all tracks .. try the default '$if2(%skip%,0)' .. it should work as you think it should
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 17 January, 2005, 07:06:02 AM
Quote
try the default '$if2(%skip%,0)' .. it should work as you think it should

*g* .... thats crazy!
With "$if2(%skip%,0)" it works perfect! 
THX for your help, man! 

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: andreas on 17 January, 2005, 01:00:33 PM
Quote
Quote
Well, in case I want to skip the files temporarily, only.

Hm, what speaks against enabling/disabling the skip mode ? i thought thats what its for
if you could toggle the skip tags, you wouldnt need to toggle skip mode (and the other way round ..)

But what, if I've marked a dozen files in a playlist for skipping, but want to enable only a few them temporarily?
And also, as I said, I would like to have the entire skip control in one menu, without the need for adding a tag manually.
On the other hand, if it's only me, who thinks of this as a useful functionality, you shouldn't bother too much. You've already done a nice plugin, and I can't thank you enough for this.
Title: foo_skip: skip tracks that match a specified search query
Post by: Olive on 18 January, 2005, 05:58:13 PM
Nice plugin! Could you make it so that when you click previous it'll skip back instead of forward? For example I'm playing track i and track i-1 is marked %skip% then clicking Previous should play track i-2.
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 18 January, 2005, 09:09:45 PM
Quote
Nice plugin! Could you make it so that when you click previous it'll skip back instead of forward? For example I'm playing track i and track i-1 is marked %skip% then clicking Previous should play track i-2.
[{POST_SNAPBACK}][/a] (http://index.php?act=findpost&pid=266401")

okay, [a href="http://www.youngpixel.de/foobar/foo_skip.dll]updated[/url]. I had to cheat a litte again and the whole thing is based on the assumption that a track with skip-tag wants to be played only once between starting and stopping playback but it should work in practically all scenarios ...

edit: in your described case, it only works, if track i-1 was skipped before. otherwise you have to click previous twice

problem is that there is no callback 'user has clicked previous' (at least not that i know  )
Title: foo_skip: skip tracks that match a specified search query
Post by: Olive on 18 January, 2005, 11:02:17 PM
I was assuming that Previous & Next were more or less symmetrical routines, apparently not. Ok thanks -)
Title: foo_skip: skip tracks that match a specified search query
Post by: anza on 26 March, 2005, 04:50:51 PM
Thanks for teh plugin! It works well enough for me with foo_quicktag_sql.dll.
Title: foo_skip: skip tracks that match a specified search query
Post by: xliu5 on 27 March, 2005, 02:30:37 PM
How does it work on multiple evaluations? I see that you can add more than one expressions at the configuration. Does it do "OR" or "AND"?
Say if I want to skip the tracking either with "SKIP" tag (equal "1") or with "RATING" tag (lower than "3"), it doesn't seem to do it. What about the same with "AND"?
Title: foo_skip: skip tracks that match a specified search query
Post by: matth6546 on 24 April, 2005, 12:57:32 AM
great plug-in, but i have a suggestion:

it'd be nice if i could customize what value or range of values that skip control looks for.

example: i made a custom setting that evaluates %play_counter%, this way foobar won't play songs with a play count of 1 without me having to individually mark any songs.

what i'd like to do is evaluate a tag, %play_counter% in my case, and see if the value is greater/less than x. right now, foobar will only skip songs with a play count of 1, but it still plays any song with a play count greater than 1. i'd like to make a setting to skip all songs with a play count greater than 0.
Title: foo_skip: skip tracks that match a specified search query
Post by: Lance Uppercut on 24 April, 2005, 08:31:24 AM
Quote
great plug-in, but i have a suggestion:

it'd be nice if i could customize what value or range of values that skip control looks for.

example: i made a custom setting that evaluates %play_counter%, this way foobar won't play songs with a play count of 1 without me having to individually mark any songs.

what i'd like to do is evaluate a tag, %play_counter% in my case, and see if the value is greater/less than x. right now, foobar will only skip songs with a play count of 1, but it still plays any song with a play count greater than 1. i'd like to make a setting to skip all songs with a play count greater than 0.
[a href="index.php?act=findpost&pid=292995"][{POST_SNAPBACK}][/a]


This plugin is great.  I use the following to skip songs with a rating of 2 or less:

Code: [Select]
$ifgreater(%rating%,2,0,1)


matth6546, for your situation, the following should work:

Code: [Select]
$ifgreater(%play_counter%,0,1,0)
Title: foo_skip: skip tracks that match a specified search query
Post by: Squeller on 27 April, 2005, 03:06:21 AM
I found a problem.

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.

I fear foo_skip has no influence on this and the author of the continuator has to take care of the skip-tag?

EDIT: Even worse. If a track is followed by, say 15 skip tracks. Foobar does play 1/2 second of about the following 10 tracks, then it goes backwards and starts playing the last unskip track, which already has been played.
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 16 June, 2005, 05:00:15 PM
Quote
matth6546, for your situation, the following should work:
Code: [Select]
$ifgreater(%play_counter%,0,1,0)

This code is not working for me! Any idea else?

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: Anas on 17 June, 2005, 02:12:58 AM
Thanks a lot for this great plugin! It's really useful for me. 
Finally no more crippled albums in the playlist 

EDIT:
Found a weird bug:
I've 242 files in palylist. The last ones are all active. The first 8 ones are all inactive.
Now when the end of the playlist is reached and it starts at the beginning, then the cursor goes excactly down till the first active track (9) and then goes backwards  back to the end of the playlist and starts again with the last song.
F*cking weird.... 
Title: foo_skip: skip tracks that match a specified search query
Post by: fabiospark on 04 October, 2005, 05:06:32 PM
Just installed foo_skip 0.1.

Found a bug:

Playback mode = repeat one

If I play an active track followed by inactive ones, when the active ends fb skips after the inactive even if it is in repeat one.

If the active is not just before the inactive ones, at the end of the active I can see some flickering in the trackinfo panel. I think it is skipping somewhere...

Can you have a look, please?

Thanks.
Title: foo_skip: skip tracks that match a specified search query
Post by: SoulMan on 05 October, 2005, 06:07:38 AM
Good little plugin, thank you.
Title: foo_skip: skip tracks that match a specified search query
Post by: iOsiris on 12 December, 2005, 01:33:05 PM
Due to the fact that my ratings use bars instead of #s
Eg:
|
||
|||
||||
|||||

$ifgreater(%play_counter%,0,1,0) - doesn't work for me

So I tried writing one for strings

$iflonger($len(%rating%), 3, 0, 1)

But can anyone help me out, it looks right to me but doesn't work ?
Title: foo_skip: skip tracks that match a specified search query
Post by: digidistortions on 12 December, 2005, 01:53:06 PM
$ifgreater($len(%rating%),3,0,1)

I didn't really read this thread so I'm not sure what you're trying to do, but it looked like you were misusing $iflonger() when you really wanted $ifgreater()
Title: foo_skip: skip tracks that match a specified search query
Post by: iOsiris on 12 December, 2005, 06:37:03 PM
Well Lance Uppercut uses "$ifgreater(%rating%,2,0,1)" to play songs with ratings over two.  But I'm assuming that his music collection uses rating tagged accordingly "1, 2, 3, 4, 5" but mine uses "|, ||, |||, ||||, |||||" so you can't use numeric values to compare the rating metadata.  So that's why I tried to make it so it just compares the length of the string of the %rating% tag with "$iflonger($len(%rating%), 3, 0, 1)" but it doesn't work, I was just wondering if anyone knows why ? or if my code is completely wrong..
Title: foo_skip: skip tracks that match a specified search query
Post by: digidistortions on 12 December, 2005, 07:54:51 PM
Quote
Well Lance Uppercut uses "$ifgreater(%rating%,2,0,1)" to play songs with ratings over two.  But I'm assuming that his music collection uses rating tagged accordingly "1, 2, 3, 4, 5" but mine uses "|, ||, |||, ||||, |||||" so you can't use numeric values to compare the rating metadata.  So that's why I tried to make it so it just compares the length of the string of the %rating% tag with "$iflonger($len(%rating%), 3, 0, 1)" but it doesn't work, I was just wondering if anyone knows why ? or if my code is completely wrong..
[a href="index.php?act=findpost&pid=349755"][{POST_SNAPBACK}][/a]

Did you try what I suggested? Using $iflonger() you are comparing the LENGTH of $len(%rating%) (which would be a single digit number) to the LENGTH of " 3" (which is two characters...the space counts). Therefore every track you point that at will come back false because the first length (1) is not longer than the second length (2).

What I suggested should instead take the length of %rating% (it will be either 1, 2, 3, 4, 5) and if it is greater than 3, it will play the song (I guess).
Title: foo_skip: skip tracks that match a specified search query
Post by: iOsiris on 12 December, 2005, 08:50:24 PM
Ah I see, your code does work

$ifgreater($len(%rating%),3,0,1)

thank you so much
Title: foo_skip: skip tracks that match a specified search query
Post by: iStormy on 13 December, 2005, 11:44:14 PM
[removed]
Title: foo_skip: skip tracks that match a specified search query
Post by: SoulMan on 14 December, 2005, 04:58:27 AM
A great way to have a random that play mors most rated tracks :

$if($or(%talking%,$and(%rating%,$greater($add(1,$mod($rand(),10)),$sub($mul(%rating%,2),1)))),1,0)

The track is skiped if the TALKING tag is present, and if the tag RATING is present, I compare a 1-10 random number to the (RATING * 2) - 1
The resulting probability is :
Rating < 1 --> 0 / 10
Rating = 1 --> 1 / 10
Rating = 2 --> 3 / 10
Rating = 3 --> 5 / 10
Rating = 4 --> 7 / 10
Rating = 5 --> 9 / 10
Rating > 5 --> 10 / 10
Title: foo_skip: skip tracks that match a specified search query
Post by: randal1013 on 09 April, 2006, 03:27:56 PM
is there any plan to update this for .9?
Title: foo_skip: skip tracks that match a specified search query
Post by: Bacchus95 on 23 April, 2006, 06:58:47 AM
is there any plan to update this for .9?

+1
Title: foo_skip: skip tracks that match a specified search query
Post by: randal1013 on 25 May, 2006, 04:04:38 AM
anyone feel like porting this?
Title: foo_skip: skip tracks that match a specified search query
Post by: iOsiris on 13 June, 2006, 12:50:45 PM
anyone feel like porting this?

Yeh would someone please port this to .9 ! 
Title: foo_skip: skip tracks that match a specified search query
Post by: DanDanRevolution on 24 June, 2006, 11:26:16 PM
(*bump*)

some kind coder, please port? i think i'm developing RSI from skipping manually

     

thank you in advance ;-)
Title: foo_skip: skip tracks that match a specified search query
Post by: DanDanRevolution on 02 July, 2006, 04:10:51 PM
(*bump*)

some kind coder, please port? i think i'm developing RSI from skipping manually

     

thank you in advance ;-)


  pa-palease, kind sirs?
Title: foo_skip: skip tracks that match a specified search query
Post by: bytemastr on 04 July, 2006, 11:02:12 PM
Unless I'm missing something (and I've tried extensive searches on Google, the author's web site, and here on the forums), the source isn't available for anyone but the author to port.  I did send'm an email, but have gotten no response yet.

pa-palease, kind sirs?
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 05 July, 2006, 07:50:05 PM
Unless I'm missing something (and I've tried extensive searches on Google, the author's web site, and here on the forums), the source isn't available for anyone but the author to port.  I did send'm an email, but have gotten no response yet.

got your email and just ported it to 0.9

the good thing is that with 0.9 i didnt have to do the workaround which assumes that a file gets played only once, the bad thing that i dont see a way to *really* skip the song instead of programmatically press the next button (this is how it worked before as well, but 0.9 doesnt like it even less than 0.8  )

well, try it out and see, if it does any problems, you can get it here (http://pelit.koillismaa.fi/plugins/general.php#148)
Title: foo_skip: skip tracks that match a specified search query
Post by: randal1013 on 06 July, 2006, 12:39:22 AM

Unless I'm missing something (and I've tried extensive searches on Google, the author's web site, and here on the forums), the source isn't available for anyone but the author to port.  I did send'm an email, but have gotten no response yet.

got your email and just ported it to 0.9

the good thing is that with 0.9 i didnt have to do the workaround which assumes that a file gets played only once, the bad thing that i dont see a way to *really* skip the song instead of programmatically press the next button (this is how it worked before as well, but 0.9 doesnt like it even less than 0.8  )

well, try it out and see, if it does any problems, you can get it here (http://pelit.koillismaa.fi/plugins/general.php#148)

this is great news......but...um....there doesnt appear to be a download link...
Title: foo_skip: skip tracks that match a specified search query
Post by: bytemastr on 06 July, 2006, 01:09:14 AM
I went back and used this original link in the forum (http://www.youngpixel.de/foobar/foo_skip.dll) and ended up with the correct 0.9 binary, which I'm using right now.

this is great news......but...um....there doesnt appear to be a download link...
Title: foo_skip: skip tracks that match a specified search query
Post by: kdx on 06 July, 2006, 05:44:10 AM
this is great news......but...um....there doesnt appear to be a download link...

sorry, it was a bit late .. should work now
Title: foo_skip: skip tracks that match a specified search query
Post by: randal1013 on 06 July, 2006, 01:58:23 PM

this is great news......but...um....there doesnt appear to be a download link...

sorry, it was a bit late .. should work now

sweet! thanks for porting this, i find it really useful.
Title: foo_skip: skip tracks that match a specified search query
Post by: Brainbug on 06 July, 2006, 03:04:05 PM
cool thing! big big thanx
Title: foo_skip: skip tracks that match a specified search query
Post by: DanDanRevolution on 06 July, 2006, 09:13:25 PM

Unless I'm missing something (and I've tried extensive searches on Google, the author's web site, and here on the forums), the source isn't available for anyone but the author to port.  I did send'm an email, but have gotten no response yet.

got your email and just ported it to 0.9

the good thing is that with 0.9 i didnt have to do the workaround which assumes that a file gets played only once, the bad thing that i dont see a way to *really* skip the song instead of programmatically press the next button (this is how it worked before as well, but 0.9 doesnt like it even less than 0.8  )

well, try it out and see, if it does any problems, you can get it here (http://pelit.koillismaa.fi/plugins/general.php#148)



... I ... love... I ... I LOVE YOU!   
Title: foo_skip: skip tracks that match a specified search query
Post by: randal1013 on 22 July, 2006, 11:50:35 AM
would it be possible for foo_skip to recognize %_system_xxxx% time fields? like %_system_year%, etc..
Title: foo_skip: skip tracks that match a specified search query
Post by: TheTravis on 24 July, 2006, 08:41:50 AM
Is there some way to change font on the playlist for skipped tracks? I'd like to have skipped tracks with striketrough font and normal tracks with defaul font.

Example:
Title | Artist | Album
Voodoo Chile | The Jimi Hendrix Experience | The Best air guitar...
Me and Bill | The Knob | -                        <--- This track is is skipped
Want You Bad | The Offspring | Conspiracy of one

Is there something like $striketrough() function? At the moment I'm using $rgb() to change the colour of skipped track titles. I'm using columns_ui version 0.1.3 beta.
Title: foo_skip: skip tracks that match a specified search query
Post by: Brother John on 25 July, 2006, 10:35:28 AM
Thanks for the port, kdx. This was the last plugin needed to make fb2k 0.9 complete.

Quote
Is there some way to change font on the playlist for skipped tracks?

No. Neither Default UI nor Columns UI allow font changes for individual tracks.

Brother John
Title: foo_skip: skip tracks that match a specified search query
Post by: randal1013 on 01 August, 2006, 01:56:36 PM
it would be of great help if this plug-in could read variables in columns_ui global tab. would this be possible?
Title: foo_skip: skip tracks that match a specified search query
Post by: rouge on 08 August, 2006, 02:33:41 PM
This is sort-of related, but I thought a plug-in that would skip a predefined section of a song would be cool.  Like, the annoying intro to a good song, or a 20 minute outtro.
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 13 August, 2006, 03:39:53 PM
Thanks for porting! 

I would like to make a feature request:

Could you implement a variable like %will_be_skipped% that will show you wich track is going to be skipped in dependence of the string you use.

Not so important but very nice would be a dropdown box from which you can choose your string (why not represented by friendly names) or disable the skip function.
Title: foo_skip: skip tracks that match a specified search query
Post by: Sam Stoat on 14 August, 2006, 02:57:06 PM
would it be possible for foo_skip to recognize %_system_xxxx% time fields? like %_system_year%, etc..
I'll second this one.  You could stop christmas songs playing all year round and limit them to December. 
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 15 August, 2006, 07:39:51 AM
@sam stoat
This plugin (http://foobar.bowron.us/foo_cwb_hooks.zip) will make %systemdate% and%systemdatetime% available for foobar
Title: foo_skip: skip tracks that match a specified search query
Post by: ojdo on 01 September, 2006, 09:41:49 AM
In this post (http://www.hydrogenaudio.org/forums/index.php?showtopic=47865) I'm requesting a new feature: Weighted random playback. If foo_skip also could deal with values between 0 (never skip) and 1 (skip always) which represent a "skip probability" this plugin could provide the requested functionality. As there any chance that the author of this plugin could code that?

Waiting and hoping,
ojdo
Title: foo_skip: skip tracks that match a specified search query
Post by: Bacchus95 on 01 September, 2006, 10:24:22 AM
In this post (http://www.hydrogenaudio.org/forums/index.php?showtopic=47865) I'm requesting a new feature: Weighted random playback. If foo_skip also could deal with values between 0 (never skip) and 1 (skip always) which represent a "skip probability" this plugin could provide the requested functionality. As there any chance that the author of this plugin could code that?

Waiting and hoping,
ojdo


You can use $rand() to do this.
Title: foo_skip: skip tracks that match a specified search query
Post by: TheTravis on 01 September, 2006, 11:45:10 AM
You can use $rand() to do this.


Hmm... Something like $ifgreater($rand(100),80,1,0) will skip a track with 20 percent propability? I must try it
Title: foo_skip: skip tracks that match a specified search query
Post by: ojdo on 03 September, 2006, 04:50:58 PM

In this post (http://www.hydrogenaudio.org/forums/index.php?showtopic=47865) I'm requesting a new feature: Weighted random playback. If foo_skip also could deal with values between 0 (never skip) and 1 (skip always) which represent a "skip probability" this plugin could provide the requested functionality. As there any chance that the author of this plugin could code that?


You can use $rand() to do this.

Thank you so much! How could I forget about good old $rand()...
Title: foo_skip: skip tracks that match a specified search query
Post by: lakser on 01 November, 2006, 01:36:15 PM
download link is dead
anyone can help?
Title: foo_skip: skip tracks that match a specified search query
Post by: Strictly4me on 01 November, 2006, 01:39:16 PM
foo_skip Download (http://www.savefile.com/files/216914)

((((( Strictly4me )))))
Title: foo_skip: skip tracks that match a specified search query
Post by: lakser on 01 November, 2006, 02:49:55 PM
thanks

Kdx also sent link for old version (http://foobar.dramepics.net/foo_skip.0.8.dll),

Mucho gracias to both
Title: foo_skip: skip tracks that match a specified search query
Post by: worldestroyer on 31 December, 2006, 06:00:14 AM
How would one go about adapting the "$ifgreater($rand(100),80,1,0)" to make it only skip a percentage of skip tag'd songs.
Title: foo_skip: skip tracks that match a specified search query
Post by: Zoominee on 31 January, 2007, 07:07:22 AM
How would one go about adapting the "$ifgreater($rand(100),80,1,0)" to make it only skip a percentage of skip tag'd songs.

That code would skip 80/100 (i.e. 80%) of the time. If you want to customise the skip percentage, you can change the numbers. For example, if you have a tag called "skip" that contains an integer between 0 and 100, which denotes the probability that you want to skip, you can put %skip% instead of 80, i.e.
$ifgreater($rand(100),%skip%,1,0).

-------------------------------------------------------------

Dear kdx, maker of this very useful plugin! I'm wondering, would it be possible to recognise tracks from the "enqueue" queue and never skip them?

(I've tried three times posting this, it looks fine on the preview but always ends up in my previous post... Hopefully this time it won't!)
Title: foo_skip: skip tracks that match a specified search query
Post by: chair on 13 March, 2007, 09:08:23 PM
foo_skip Download (http://www.savefile.com/files/216914)

((((( Strictly4me )))))


This link seems to be dead as well, and the link on the components repository wiki site is dead too. 

Repository Link (http://pelit.koillismaa.fi/plugins/redir.php?id=679)

Can someone else please set up a mirror?  I am running foobar2000 v0.9.4.1. 

Thanks.
Title: foo_skip: skip tracks that match a specified search query
Post by: Jugdish on 26 March, 2007, 08:38:25 PM
If playback mode is set to repeat the playlist and the playlist contains only skipped items, foo_skip should STOP playback. What it does currently is get stuck in an infinite loop, constantly printing to the console "skipping: file://X.mp3".

Here's an example scenario to illustrate this bug:
1. Set playback mode to "Repeat (playlist)"
2. Start playing a playlist which contains a single song.
2. During playback, mark the song to be skipped.
3. When the song finishes playing, foo_skip will get stuck in an infinite loop (check the console).
Title: foo_skip: skip tracks that match a specified search query
Post by: x10 on 03 April, 2007, 02:51:45 PM
just discoverd this
so when i make it
$ifgreater(%rating%,3,0,1)
to play rating 3+

and
$if2(%rating%,0)
to play unrated files?
Title: foo_skip: skip tracks that match a specified search query
Post by: funkfuzz on 27 April, 2007, 03:00:42 PM
just discoverd this
so when i make it
$ifgreater(%rating%,3,0,1)
to play rating 3+

and
$if2(%rating%,0)
to play unrated files?


That didn't work for me.

I'd like to be able to:

Play songs that have no rating
AND
Play songs that have a rating of 3, 4 or 5.

In other words, I want to SKIP songs with ratings of 1 or 2.  "$ifgreater" in this case, won't work.

Anyone know how to do this?  I'm using the Custom Info SQLite DB for my ratings (if that helps).

Thanks!
Title: foo_skip: skip tracks that match a specified search query
Post by: BenAddiction on 27 April, 2007, 05:29:13 PM
@funkfuzz

$if(%rating%,$ifgreater(3,%rating%,1,0),0)
Title: foo_skip: skip tracks that match a specified search query
Post by: funkfuzz on 30 April, 2007, 01:31:53 PM
@funkfuzz

$if(%rating%,$ifgreater(3,%rating%,1,0),0)



Worked like a charm.  Thanks BenAddiction. 
Title: foo_skip: skip tracks that match a specified search query
Post by: eradumvelhinho on 03 May, 2007, 08:09:45 AM
Let's see if someone can help me.
Problem: when I have 2 files from the same album (one .cue and another .mp3), they both go to the library of foobar. So basically you have two times the same album. I want to have only the cue file. I installed foo_skip hoping that this dll would solve my problem (I put a SKIP tag in the big files). But, when you play a file from the .cue file, they inherit the properties of the .mp3 file. So, all the songs in the .cue file stay with "SKIP = 1" value.
How do you do with your library in this case? Do you use another component?
With lossless files I dont have this problem, because I put the .cue file inside the tag "cuesheet" of the big files. But with mp3 files, you cannot do this.

Thanks for any help
Title: foo_skip: skip tracks that match a specified search query
Post by: locutus on 13 August, 2007, 09:02:05 AM
Any working link for this plugin for foobar 0.9 available?
Title: foo_skip: skip tracks that match a specified search query
Post by: locutus on 13 August, 2007, 10:58:13 AM
Any working link for this plugin for foobar 0.9 available?

Found the link, installed and have seen the new topic in the menu. But how do i mark a file for skipping?
Title: foo_skip: skip tracks that match a specified search query
Post by: ppnilpa on 04 February, 2008, 01:35:20 PM
Script
Code: [Select]
$if($or(%talking%,$and(%rating%,$greater($add(1,$mod($cwb_rand(),10)),$sub($mul(%rating%,2),1)))),1,0)


posted here is really nice. But what if i want to use hotness (http://www.hydrogenaudio.org/forums/index.php?showtopic=31287) instead of rating?

I cant use multiline scripts with foo_skip as i understand.
buktore (http://www.hydrogenaudio.org/forums/index.php?showuser=38011) adopted (http://www.hotlinkfiles.com/files/890769_cl2co/hot_081721.txt) hotness script to single line, but i didnt manage to make it work with foo_skip alike %rating% did.

Does anybody here use hotness with foo_skip? Any ideas? Maybe i can calculate hotness for every track in playlist with... hmmm... columns_ui or something. And then skip tracks using %hotness%
Title: foo_skip: skip tracks that match a specified search query
Post by: Zoominee on 04 February, 2008, 02:23:13 PM
Maybe i can calculate hotness for every track in playlist with... hmmm... columns_ui or something. And then skip tracks using %hotness%

Does it work with $get_global(hotness) as suggested at the top of the hotness thread? Otherwise, you could I suppose put the whole hotness code on one line into the skip control (get rid of anything that is comments, i.e. anything to the right ot // including that symbol).
Title: foo_skip: skip tracks that match a specified search query
Post by: ppnilpa on 04 February, 2008, 02:37:13 PM

Maybe i can calculate hotness for every track in playlist with... hmmm... columns_ui or something. And then skip tracks using %hotness%

Does it work with $get_global(hotness) as suggested at the top of the hotness thread?

No. For me - No. It is displayed correctly in column, but is useless with foo_skip. So I asked here whether this trick works for anybody.

Otherwise, you could I suppose put the whole hotness code on one line into the skip control

I've mentioned single line hotness script. It does not work for me either.
Title: foo_skip: skip tracks that match a specified search query
Post by: buktore on 04 February, 2008, 04:38:39 PM
Quote
I've mentioned single line hotness script. It does not work for me either.

What he meant is to use hotness code inside skip control + a bit change.

Here, should work.
Quote
$ifgreater($mod($cwb_rand(),100),PASTE ENTIRE SINGLE LINE HOTNESS SCRIPT HERE,1,0)

This will use hotness as it shown as a play probability.

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.
Title: foo_skip: skip tracks that match a specified search query
Post by: jacobbrett on 19 March, 2008, 06:39:39 AM
A database method implementation would convince me to use this, as with this plugin (allows entry of custom comments without modifying the file's tags as they are stored in a local db): http://wiki.hydrogenaudio.org/index.php?ti...o_custominfo%29 (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components_0.9/Custom_Info_%28foo_custominfo%29)

The user is given the choice of storing data via:
In fact, couldn't these two plugins be used in conjunction? Use 'Custom Info' to store a rating of 1-5, output it as %rating%, then use that with foo skip?
Title: foo_skip: skip tracks that match a specified search query
Post by: v.1 on 26 August, 2008, 08:59:46 AM
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: [Select]
$ifgreater(
   $mod($cwb_rand(),100),
   $if(%RATING%,
      $ifequal(%RATING%,0,50,
         $ifequal(%RATING%,9,0,
            $mul(%RATING%,20)
         )
      ),
   50),
1,0)

or
Code: [Select]
$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
Title: foo_skip: skip tracks that match a specified search query
Post by: servimo on 26 August, 2008, 01:46:00 PM
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?
Title: foo_skip: skip tracks that match a specified search query
Post by: v.1 on 26 August, 2008, 01:52:26 PM
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
Title: foo_skip: skip tracks that match a specified search query
Post by: servimo on 26 August, 2008, 02:06:33 PM
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!
Title: foo_skip: skip tracks that match a specified search query
Post by: buktore on 26 August, 2008, 02:06:36 PM
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.
Title: foo_skip: skip tracks that match a specified search query
Post by: servimo on 26 August, 2008, 02:12:33 PM
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
Title: foo_skip: skip tracks that match a specified search query
Post by: v.1 on 26 August, 2008, 02:18:49 PM
What foobar version you use?

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


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

thanks
Title: foo_skip: skip tracks that match a specified search query
Post by: buktore on 26 August, 2008, 02:23:53 PM
No.

Last version of foobar that work with cwb_hooks (and some other components) is 0.9.5.2
Title: foo_skip: skip tracks that match a specified search query
Post by: v.1 on 26 August, 2008, 02:30:59 PM
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..
Title: foo_skip: skip tracks that match a specified search query
Post by: buktore on 26 August, 2008, 02:37:16 PM
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.
Title: foo_skip: skip tracks that match a specified search query
Post by: v.1 on 26 August, 2008, 02:39:34 PM
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
Title: foo_skip: skip tracks that match a specified search query
Post by: servimo on 06 September, 2008, 01:59:56 PM
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.
Title: foo_skip: skip tracks that match a specified search query
Post by: v.1 on 23 September, 2008, 06:33:50 AM
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.
Title: foo_skip: skip tracks that match a specified search query
Post by: v.1 on 25 September, 2008, 01:00:11 PM
is there any chance that this plug in shall be updated to support rand() function (http://www.hydrogenaudio.org/forums/index.php?showtopic=66069)? this to avoid to use of (the beloved) cwb_hooks
Title: foo_skip: skip tracks that match a specified search query
Post by: Sounds Blast on 20 October, 2008, 05:03:15 PM
If anyone could update this foo_skip for the latest foobar2000 9.6....., or maybe someone has a version that works with this?
Title: foo_skip: skip tracks that match a specified search query
Post by: 2E7AH on 28 October, 2008, 09:34:57 PM
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.
Title: foo_skip: skip tracks that match a specified search query
Post by: Schuft on 05 January, 2009, 01:37:02 PM
Hey 2E7AH,

maybe you got fading activated?

(https://hydrogenaud.io/imgcache.php?id=52880edcd20bf0061216f34e0cc04f87" rel="cached" data-warn="External image, click to view at original size" data-url="http://img387.imageshack.us/img387/5112/foobarfadingih1.th.jpg) (http://img387.imageshack.us/my.php?image=foobarfadingih1.jpg)
Title: foo_skip: skip tracks that match a specified search query
Post by: Yirkha on 05 January, 2009, 02:40:45 PM
I don't know how specifically does this work, but if it works as I think it does, it issues a "Next" command when a notification about track change comes and the new one should be skipped. Unfortunately, that notification is fired when the next track really starts playing, therefore some of its samples are already on their way to speakers.
I don't think it can work reliably better unless done in a completely different way, maybe only with additional support in fb2k core.
Title: foo_skip: skip tracks that match a specified search query
Post by: Thundik81 on 05 January, 2009, 02:55:27 PM
If anyone could update this foo_skip for the latest foobar2000 9.6....., or maybe someone has a version that works with this?


by Case :
http://www.saunalahti.fi/~cse/foobar2000/foo_skip.zip (http://www.saunalahti.fi/~cse/foobar2000/foo_skip.zip)
Title: foo_skip: skip tracks that match a specified search query
Post by: 2E7AH on 05 January, 2009, 03:52:10 PM
maybe you got fading activated?

hey Schuft, thanks for replying

the post is somewhat old, but not the point
you're right about fading, and only fade out has the effect on this plugin, but unfortunately it doesn't do the trick as Yirkha explained
Title: foo_skip: skip tracks that match a specified search query
Post by: s33m33 on 19 January, 2009, 02:25:52 AM
Thanks for foo_skip update.

For those who might need it. Will play track only if both, Playcount and Rating are missing:
$if(%rating%,1,$if(%play_count%,1,0))

Lost some of my playback statistics while organizing files but Rating tag still exists. Above script plays music which I haven't heard before.
Title: foo_skip: skip tracks that match a specified search query
Post by: odyssey on 06 March, 2009, 06:45:39 PM
I don't know how specifically does this work, but if it works as I think it does, it issues a "Next" command when a notification about track change comes and the new one should be skipped. Unfortunately, that notification is fired when the next track really starts playing, therefore some of its samples are already on their way to speakers.
I don't think it can work reliably better unless done in a completely different way, maybe only with additional support in fb2k core.

What if it was developed as a DSP that checks the tag and then clear all audio? I guess that would work and work more reliable than this method. But I'm not aware how well it would work with crossfaders?
Title: foo_skip: skip tracks that match a specified search query
Post by: Yirkha on 07 March, 2009, 06:04:12 AM
Might work well on DSP level, placing it as the first in the chain. It is possible to get exact track change point, but it forces flush of all DSPs before the current one.
Title: foo_skip: skip tracks that match a specified search query
Post by: SoulMan on 12 March, 2009, 03:56:18 AM
Hello,

There is a pluggin dooing this job for FB 9.6.3 ?
Title: foo_skip: skip tracks that match a specified search query
Post by: Yirkha on 12 March, 2009, 05:25:43 AM
Hello,

http://www.hydrogenaudio.org/forums/index....st&p=607923 (http://www.hydrogenaudio.org/forums/index.php?showtopic=30361&view=findpost&p=607923)
Title: foo_skip: skip tracks that match a specified search query
Post by: burn416 on 04 May, 2009, 05:27:35 PM
Hi, I just downloaded foobar, and was hoping to install this add on. The only thing is I dont know how to use it. So far I have downloaded foo_skip and placed it in my components folder. Under playback, I can see that it is installed correctly because an option says skip tracks. from here I dont know what to do. I was wondering if someone could give my step by step instructions on how to use this. Thanks.
Title: foo_skip: skip tracks that match a specified search query
Post by: 2E7AH on 04 May, 2009, 05:44:33 PM
In "Preferences > Advanced > Playback > Skip Track" you have to enter title formatting script that will be used for skip action, f.e.:

[font= "Lucida Console"]$if(%rating%,$ifgreater(3,%rating%,skip,))[/font] will skip any track with rating less than 3
[font= "Lucida Console"]$ifequal(%skip%,1,skip,)[/font] will skip if you have added skip tag in your file, and set it to 1
Title: foo_skip: skip tracks that match a specified search query
Post by: vogliadicane on 17 May, 2009, 04:11:15 PM
is this component still in development?

I like and use it a lot. What I would like to see, is the ability to set some tag, which skips tracks only when shuffle(tracks) is set.

Why? Cause there are many albums I would like to listen to but don´t want them to be part of some mix play. If I set all ratings to 1 (my condition to skip a track), I can only hear this particular track by double-clicking, whereas all others are skipped...

edit: or something like %playback_order% to make $ifequal(%playback_order%,"Shuffle (tracks)",$ifequal(%rating%,1,skip,),)
Title: foo_skip: skip tracks that match a specified search query
Post by: v.43 on 02 June, 2009, 08:13:36 PM
EDIT:
sorry, i was unaware of the updated version.
maybe that link should be put in the first post of the thread and on the wiki page (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Components_0.9/Inactive_Tracks_(foo_skip))

EDIT2:
i've some problems finding the settings for the component O_o

(https://hydrogenaud.io/imgcache.php?id=9b3b688df85d4871d89649b113bbba08" rel="cached" data-warn="External image, click to view at original size" data-url="http://i39.tinypic.com/28tvo6p.jpg)

i only got that command: playback/skip tracks
Title: foo_skip: skip tracks that match a specified search query
Post by: Dirhael on 02 June, 2009, 08:55:45 PM
Look under Advanced -> Playback.
Title: foo_skip: skip tracks that match a specified search query
Post by: v.43 on 02 June, 2009, 09:18:47 PM
Look under Advanced -> Playback.


thanks!
Title: foo_skip: skip tracks that match a specified search query
Post by: pstrg on 13 June, 2009, 06:00:23 PM
Look under Advanced -> Playback.

Downloaded and copied up261.dll to the \Components folder.
Tried to see a new entry under Advanced -> Playback, there was none.
Looked for the component under Components, it was not loaded.
Is foo_skip incompatible with fb2k 0.9.6.8 and thus not loadable?
Title: foo_skip: skip tracks that match a specified search query
Post by: fbuser on 13 June, 2009, 06:16:46 PM
You have to rename it to foo_skip.dll. up261.dll is not a valid name for a foobar plugin.
Title: foo_skip: skip tracks that match a specified search query
Post by: Sam Stoat on 10 August, 2009, 04:35:13 AM
Foobar says foo_skip is incompatible with Windows 7 RC.  Any chance of re-compiling?
Title: foo_skip: skip tracks that match a specified search query
Post by: odyssey on 10 August, 2009, 05:24:46 AM
Why not use autoplaylists?
Title: foo_skip: skip tracks that match a specified search query
Post by: smkk on 10 August, 2009, 05:28:36 AM
Autoplaylists don't even come close to the functionality prvided by foo_skip.
Title: foo_skip: skip tracks that match a specified search query
Post by: Yirkha on 10 August, 2009, 05:59:50 AM
Case kindly provides an up-to-date version.
http://www.saunalahti.fi/cse/foobar2000/?changes=foo_skip (http://www.saunalahti.fi/cse/foobar2000/?changes=foo_skip)
Title: foo_skip: skip tracks that match a specified search query
Post by: odyssey on 10 August, 2009, 06:41:03 AM
Personally I like the idea of using foo_skip, but most of the functionality did I just put in my autoplaylists.

A thing I don't like with the current foo_skip is the way it's implemented. I think it should have been a DSP instead, since a DSP can control exactly what to be played and thus prevent the possibility of playing small part of a skipped track that are currently a problem with foo_skip.

Another thing that could be implemented if it was a DSP, is partial skipping in songs. Many album-tracks have interludes appended on tracks instead of separated, which would be nice to circumvent in a shuffle-play.
Title: foo_skip: skip tracks that match a specified search query
Post by: Sam Stoat on 11 August, 2009, 05:03:56 AM
Case kindly provides an up-to-date version.
http://www.saunalahti.fi/cse/foobar2000/?changes=foo_skip (http://www.saunalahti.fi/cse/foobar2000/?changes=foo_skip)

Working.  Thank you.
Title: foo_skip: skip tracks that match a specified search query
Post by: crusher on 19 August, 2009, 12:57:08 AM
hi,

I'm trying to use this plugin to skip songs that I don't wanna hear when I listen to the last.fm radio using foobar.
after studying the foobar helpfile I've got this one working:

$if($stricmp(%title%,A Random Songtitle),skip,)

Unfortunatly it seems not to support wildcards and I didn't find a better function for this case.
Oh and of course I'd like to add several songs, artists and albums that I want to skip.

do you have any suggestion?
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 11 October, 2009, 11:44:41 AM
What is the correct syntax to exclude a specific playlist for this plugin?

Example with 3 Playlists:

1 Autoplaylist with Monitoring all Musicfolders - skipping should be allowed
1 Custom Playlists - skipping should be allowed
1 Empty Playlist - a doubleclick on a mp3 in my windows explorer add this file to this empty playlist and plays it.
- this works for all non-tagged (rating!=1) music files
- but rated files are of course skipped 


In this specific case, I want to play this file even though it is marked for skipping (rating=1)
This is my skip command: $if(%rating%,$ifgreater(2,%rating%,skip,))
IF rating IS 1 AND activeplaylist IS NOT "mywindowsplaylist"
Can somebody transform this to the correct syntax?

Title: foo_skip: skip tracks that match a specified search query
Post by: crimson on 27 October, 2009, 09:34:01 PM
Just wanted to share....I've implemented foo_skip with foo_custominfo in .9.5.1 and now in .9.6.9 with foo_customdb
I use a toggle mechanism with boxes which I don't think you can create with playlist statistics.  For toggle using the same keyboard shortcut or context menu item you need the db. 

(https://hydrogenaud.io/imgcache.php?id=f65ff91d7b128ec016a0d56847a0669a" rel="cached" data-warn="External image, click to view at original size" data-url="http://img196.imageshack.us/img196/4403/foobar0951.png)


If you like this implementation you can read about it in this thread: 
http://www.hydrogenaudio.org/forums/index....mp;#entry664533 (http://www.hydrogenaudio.org/forums/index.php?showtopic=69143&st=0&p=664533&#entry664533)


I'm very grateful to the updaters of foo_skip and foo_customdb for the excellent work, thanks!
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 14 December, 2009, 03:48:51 AM
How do I get the name of an active playlist?
The  Titleformat_Reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference#.25list_index.25) didn't helped me enough.

My problem is (in some rare cases) I have a playlist only with skipped tracks. This causes a never ending loop.
So I tried to exclude this problematic playlist. But no luck.

[font= "Courier New"]$if(%LIST_NAME%,"Windows Explorer",,[/font][font= "Courier New"]$ifequal(%rating%,1,skip)[/font][font= "Courier New"])[/font]

Title: foo_skip: skip tracks that match a specified search query
Post by: MusX on 19 January, 2010, 01:07:44 PM
does it still work for you guys on 1.0?
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 19 January, 2010, 02:14:12 PM
 

Yes, it does

Title: foo_skip: skip tracks that match a specified search query
Post by: MusX on 19 January, 2010, 02:51:32 PM
ok, thanks. don't know why, after installing 1.0 my %skip% has changed to %rating% I think. now it's ok
Title: foo_skip: skip tracks that match a specified search query
Post by: v.43 on 12 April, 2010, 11:39:42 AM
is it possible to convert this script to the new query sintax?

Code: [Select]
$ifgreater(
$right($crc32(%title%),2),  --almost random number 0 to 99
$if(%RATING%,
  $ifequal(%RATING%,0,101,   --tracks rated 0
   $ifequal(%RATING%,-1,-1,  --tracks rated -1, ie: to be skipped
    $mul(%RATING%,35)        --for other ratings. the lower this parameter, the most likely the track will be skipped
   )
  ),
101),   --unrated tracks
1,      --skip
0       --play
)


$ifgreater($right($crc32(%title%),2),$if(%RATING%,$ifequal(%RATING%,0,101,$ifequal(%RATING%,-1,-1,$mul(%RATING%,35))),101),1,0)


if not, i'll stick with the old version..
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 12 April, 2010, 12:17:30 PM
Without trying to analyze your string further you can just use syntax: "$ifgreater($right($crc32(%title%),2),$if(%RATING%,$ifequal(%RATING%,0,101,$ifequal(%RATING%,-1,-1,$mul(%RATING%,35))),101),1,0)" IS 1.
Title: foo_skip: skip tracks that match a specified search query
Post by: v.43 on 12 April, 2010, 04:01:20 PM
thank you! that worked great
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 24 April, 2010, 05:27:14 PM
Thanks for the update (foo_skip 0.8)
Hope you will add querying the active playlist. =)
Title: foo_skip: skip tracks that match a specified search query
Post by: lieti on 21 June, 2010, 03:14:35 PM
HELLo nice and usefull plugin, but I need to know how to indicate if is plugin activated or deactivated. For instance in text_display window, or somwhere in default user interface. Thanks a lot
Title: foo_skip: skip tracks that match a specified search query
Post by: v.43 on 30 June, 2010, 06:49:00 AM
i just noticed v.1.0 is out
http://www.saunalahti.fi/cse/foobar2000/?changes=foo_skip (http://www.saunalahti.fi/cse/foobar2000/?changes=foo_skip)

many thanks to the developer for the good work!
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 03 July, 2010, 05:45:40 PM
I was only somewhat recently made aware of this thread and hadn't read it from the beginning until now...

This is sort-of related, but I thought a plug-in that would skip a predefined section of a song would be cool.  Like, the annoying intro to a good song, or a 20 minute outtro.


I just uploaded version 1.1 of Skip Track (http://www.foobar2000.org/components/view/foo_skip). It allows you to skip parts of tracks if you use tag field 'skip'. For example: to skip the first minute of a track create tag field 'SKIP' and give it value '-1:00'. To skip from the end after 4 minutes and 30 seconds, use value '4:30-'.

Hope you will add querying the active playlist. =)

Also added. Use %playlist_name% to query it.
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 03 July, 2010, 05:48:37 PM
Thank you so much for your work!

Short feedback: It works 

Code: [Select]
(%rating% IS 1) AND (NOT %playlist_name% IS "Windows Explorer")
Title: foo_skip: skip tracks that match a specified search query
Post by: nameless on 04 August, 2010, 04:37:36 PM
I've been using this component for a long time.  It always worked fine, but the new versions don't work at all for me.

I've always had a "skip" field and would set it to "1" for tracks I wanted to skip entirely.  Now I have "Skip Track" added as a DSP, "Skip Tracks" is selected in the Playback menu (these options confuse me--a DSP?), yet tracks aren't skipped.

All other settings are at their default.

Please, can someone tell me how to simply use foo_skip to skip tracks completely?

Edit: I think I am beginning to see...  I went to Preferences > Advanced > Playback > Skip Tracks > "Skip track query" and set it to "%skip% is 1".  This seems to work.  I wish there were a few more places that needed setup.

Can someone tell me how to make it so tracks are skipped if either %skip% or %preference% is 1?  I know this is a moron-level question.
Title: foo_skip: skip tracks that match a specified search query
Post by: Yirkha on 04 August, 2010, 04:53:37 PM
%skip% IS 1 OR %preference% IS 1
(Library > Search > [?] brings you to the query language help.)
Title: foo_skip: skip tracks that match a specified search query
Post by: watercolor on 08 August, 2010, 02:22:55 AM
I was only somewhat recently made aware of this thread and hadn't read it from the beginning until now...

This is sort-of related, but I thought a plug-in that would skip a predefined section of a song would be cool.  Like, the annoying intro to a good song, or a 20 minute outtro.


I just uploaded version 1.1 of Skip Track (http://www.foobar2000.org/components/view/foo_skip). It allows you to skip parts of tracks if you use tag field 'skip'. For example: to skip the first minute of a track create tag field 'SKIP' and give it value '-1:00'. To skip from the end after 4 minutes and 30 seconds, use value '4:30-'.

Hope you will add querying the active playlist. =)

Also added. Use %playlist_name% to query it.


Can I use '-1:00' and '4:30-' same time?
skip field: -1:00;4:30-
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 08 August, 2010, 03:16:43 AM
Current version only supports one time skip range. Perhaps I should mention that time skipping isn't used at all when you explicitly choose a track by double clicking it. It's only enabled when playback advances naturally from previous track. Might be good to know if you test the feature.
Title: foo_skip: skip tracks that match a specified search query
Post by: watercolor on 08 August, 2010, 03:35:06 AM
Current version only supports one time skip range. Perhaps I should mention that time skipping isn't used at all when you explicitly choose a track by double clicking it. It's only enabled when playback advances naturally from previous track. Might be good to know if you test the feature.


Thank you.
Can I set start time and end time on one track skip tag field on the future?

For example:
'A' track length is 4:00.
'A' track skip tag is -1:00;3:00-
'A' track start at 1:00, and end 3:00.
Title: foo_skip: skip tracks that match a specified search query
Post by: Unno on 19 August, 2010, 10:38:41 PM
Thank you.
Can I set start time and end time on one track skip tag field on the future?

For example:
'A' track length is 4:00.
'A' track skip tag is -1:00;3:00-
'A' track start at 1:00, and end 3:00.


I agree.  This would be awesome.  I've got a lot of live music, and I'd love to be able to crop the crowd noise from the beginning and end for playlist shuffling.
Title: foo_skip: skip tracks that match a specified search query
Post by: herojoker on 20 August, 2010, 07:12:45 AM
Quote
I've got a lot of live music, and I'd love to be able to crop the crowd noise from the beginning and end for playlist shuffling.

That's possible with cue sheets (.cue files, may be embedded).
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 23 August, 2010, 03:36:11 PM
Version 1.3 (http://www.foobar2000.org/components/view/foo_skip) uploaded with support for watercolor's feature request.
Title: foo_skip: skip tracks that match a specified search query
Post by: Anakunda on 04 September, 2010, 02:19:14 PM
I don't know if this is a bug but had recently some problems with this plugin, one of my albums didnot play correctly even if I didnot tag any tacks of it to be skipped. It simply played clicked track but didnot advance to next track. Instead that it restarted playback and immediately stopped in fast cycles, after while foobar given up and stopped playback. In case I could reproduce the problem by readding this plugin. What tags exactly should be present to plugin take action? I checked tracks' properties and saw no suspicious tags.
I came to Skip Track component by selective removal method.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 05 September, 2010, 02:47:39 AM
Default behavior is to skip tracks where you have Rating tag field with value 1 or use foo_playcount to set rating to 1. This can be fully customized in preferences though. Time based skipping is hardcoded to use field Skip. I remember some old version behaving strangely but new one shouldn't act up. If you can reproduce the issue with version 1.3 I'd like to hear how.
Title: foo_skip: skip tracks that match a specified search query
Post by: Anakunda on 05 September, 2010, 05:16:56 AM
yeah the problem persists even on another rip of the same album

here are all tags copied:

Code: [Select]
Artist Name : PINK FLOYD
Track Title : «multiple values» Shine On You Crazy Diamonds; Astronomy Domine; What Do You Want From Me; Learning To Fly; Keep Talking; Coming Back To Life; Hey You; A Great Day For Freedom; Sorrow; High Hopes; Another Brick In The Wall (Part Two) ...
Album Title : Pulse
Date : 1995
Genre : Progressive rock
Composer : «multiple values» Roger Waters; Rick Wright; David Gilmour; Syd Barrett; Polly Samson; Ricky "Reagan" Wright; Anthony Moore; Bob Ezrin; Jon Carin; Nick Mason
Performer : PINK FLOYD
Album Artist :
Track Number : «multiple values» 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24
Total Tracks : «multiple values» 11; 13
Disc Number : «multiple values» 1; 2
Total Discs : 2
Comment :
ISRC :
Disc ID :
Catalog :
URL :
Copyright :
Ripped By :
<RELEASEDATE> : 1995 06 06
<STYLE> : Prog-Rock/Art Rock; Album Rock; Hard Rock


If I dblclick on the album name in album list, the playback won't start (many attempts to start but instantly stopping in loop).
If I dblclick on track 1 in playlist, playback starts but only till track end, starting playback track 2 the same messy behaviour, stop

The foo_skip version is 1.1 which doesnot update

/edit
Updated manually to foo_skip 1.3 now and the no playback issue persists...
I have problem with this album only
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 05 September, 2010, 08:49:07 AM
Could you check the configured skip string in advanced preferences under Playback -> Skip Tracks? Also if you have Skip Track DSP enabled could you tell which other DSPs you use and in which order? And if the string is the default (%rating% IS 1), could you check the bottom of Properties tab of track properties to see if the files have rating set?

I can sort of simulate what you describe if I give all files in a playlist rating 1 (to mark them as skippable) and enable Playback follows cursor option and disable Cursor follows playback option and change playback order to Default. The player simply skips all tracks with this configuration without advancing the cursor to inform me about it. When all files in the playlist are skipped the playback stops.
Title: foo_skip: skip tracks that match a specified search query
Post by: Anakunda on 05 September, 2010, 01:21:46 PM
Culprit found now, the rating was 1 for the tracks. But it wasnot in standard tagset.
OK, issue fixed.
Title: foo_skip: skip tracks that match a specified search query
Post by: someth on 25 October, 2010, 02:59:02 AM
I want to skip songs that are played out less than a week ago and more than once.
How to do it?
Thank you.
Title: foo_skip: skip tracks that match a specified search query
Post by: ojdo on 25 October, 2010, 10:47:34 AM
I want to skip songs that are played less than a week ago and more than once.


Create an autoplaylist by entering the following string into the Library Seach field (Library > Search):
NOT (%play_count% GREATER 1 AND %last_played% DURING LAST 1 WEEK)
Then select "Create autoplaylist" in the button menu next to the search field.
Title: foo_skip: skip tracks that match a specified search query
Post by: someth on 27 October, 2010, 12:12:48 PM
I want to skip songs that are played less than a week ago and more than once.


Create an autoplaylist by entering the following string into the Library Seach field (Library > Search):
NOT (%play_count% GREATER 1 AND %last_played% DURING LAST 1 WEEK)
Then select "Create autoplaylist" in the button menu next to the search field.


Thanks, but I would like to do this with "skip track"
Title: foo_skip: skip tracks that match a specified search query
Post by: ojdo on 27 October, 2010, 04:13:25 PM
Thanks, but I would like to do this with "skip track"

Sorry, then I can't help. The alternative way works, but it would use the playlist in an extraordinary way: it would only contain the items you want to play. I can't see the reason to have tracks in your playlist for the sole purpose of skipping them.
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 31 October, 2010, 06:21:54 AM
Oh, I recently discovered that foo_skip doesn't work with mp4 files. They aren't skipped.

(I often  download youtube music as mp4 videos and play them with foobar. Of course without video, only with audio)




Maybe my config helps you to fix it:
- foobar core 1.1.1 beta 2
- foo_skip 1.3
- foo_playcount 3.0.1 

- if rating is 1 its skipped
- rating is stored in playcount database
I hope that it isn't the combination of mp4, foo_playcount and foo_skip which causes problems


Title: foo_skip: skip tracks that match a specified search query
Post by: herojoker on 18 November, 2010, 07:56:12 AM
I would like to have a little dropdown menu (like the one for the playback order) to choose the pattern to use for skipping, addable to the main interface.
Title: foo_skip: skip tracks that match a specified search query
Post by: ojdo on 18 November, 2010, 08:19:53 AM
Different approach: use an autoplaylist query that excludes tracks you want to skip from your playlist. So "%rating% GREATER 1 OR %rating% MISSING" effectively skips tracks with a bad rating (and includes unrated tracks).
Title: foo_skip: skip tracks that match a specified search query
Post by: herojoker on 18 November, 2010, 09:26:21 AM
I know that approach, nevertheless it would be nice to choose which tracks should be skipped for an existing playlist. It may even be that that playlist is not (in a reasonable way) retrievable by a query from the media library.
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 18 November, 2010, 12:03:20 PM
ojdo,

does it have any special reason because of you again and again tell people to use autoplaylists? This skip component is not by far just a replacement for what you can do with autoplaylists. So there is no reason to let people feel like fools.


I want to skip songs that are played less than a week ago and more than once.


Create an autoplaylist by entering the following string into the Library Seach field (Library > Search):
NOT (%play_count% GREATER 1 AND %last_played% DURING LAST 1 WEEK)
Then select "Create autoplaylist" in the button menu next to the search field.
Or type the exactly same search query in skip field!?

@herojoker
Nice request to have multiple search fields applyable by dropdownbox or mainmenu or whatever.
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 20 November, 2010, 04:34:41 PM
Could you implement a variable like %will_be_skipped% that will show you wich track is going to be skipped in dependence of the string you use.
Another try! 
Title: foo_skip: skip tracks that match a specified search query
Post by: ojdo on 21 November, 2010, 04:59:12 AM
does it have any special reason because of you again and again tell people to use autoplaylists? This skip component is not by far just a replacement for what you can do with autoplaylists.

I'll give this answer as long as people request features that are already there, but probably are just not aware of them. Which difference are talking of, other than still seeing tracks in a playlist without foobar actually playing them?

Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 02 December, 2010, 09:04:56 PM
Found two bugs:
- dont skips mp4 files
- if I manually select files, they should be played even with skip tag (see option for that).
  That works in a normal playlist, also in playlist search - but not in media library search

Hope that helps
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 03 December, 2010, 12:49:54 AM
Media Library Search issue reproduced but there is no difference for the component what format files are in. MP4 skipping works just fine for me. In theory there could be an issue with skip string parsing as support for playlist name is a bit of a hack. Post your skipstring and double check your file for tags and other metadata you use to determine skipping.
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 03 December, 2010, 05:44:11 AM
Here are some screenshots for you with some mp3tag infos and foobar meta tag infos

(https://hydrogenaud.io/imgcache.php?id=4195ae02da0cb016e970b82eb30e9823" rel="cached" data-warn="External image, click to view at original size" data-url="http://img221.imageshack.us/img221/5967/bild000a.th.jpg) (http://img221.imageshack.us/i/bild000a.jpg/)(https://hydrogenaud.io/imgcache.php?id=b5f95fb1c94259fa03a8e8a85ce7f374" rel="cached" data-warn="External image, click to view at original size" data-url="http://img834.imageshack.us/img834/7020/bild001k0.th.jpg) (http://img834.imageshack.us/i/bild001k0.jpg/)(https://hydrogenaud.io/imgcache.php?id=d5fae004b05231bae52010be3920e652" rel="cached" data-warn="External image, click to view at original size" data-url="http://img408.imageshack.us/img408/1851/bild002p.th.jpg) (http://img408.imageshack.us/i/bild002p.jpg/)


my skip string is:
(%rating% IS 1) AND (NOT %playlist_name% IS "Windows Explorer")

it works normal with all file types except MPEG-4 AAC
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 03 December, 2010, 12:27:18 PM
Which difference are talking of, other than still seeing tracks in a playlist without foobar actually playing them?

Well, an autoplaylist filters the library by a query and creates a playlist, on the contrary the skip component applies the query on an already existing playlist. Actually nothing more would be left to say but i will repeat extra for you what already herojoker said to you so that you don't have to ask a second time for the difference: there are different playlists than autoplaylists and users of foo_skip are not in the mood to carry about single tracks attributes when creating a static playlist. Furthermore it makes sense to use foo_skip inside an autoplaylist when you are like me and hates to repeat the same part of a query again and again or to bloat foobar2000 with hundreds of autoplaylists just because they became everybodies darling. Enough examples?


Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 03 December, 2010, 12:41:12 PM
my skip string is:
(%rating% IS 1) AND (NOT %playlist_name% IS "Windows Explorer")

Titleformat string %rating% will return nothing for your file - playback statistics component doesn't check file for tags and only returns data from its database. You can fix the skipping by changing skip string to (%rating% IS 1 OR "$meta(rating)" IS 1) AND (NOT %playlist_name% IS "Windows Explorer").
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 03 December, 2010, 01:15:33 PM
Since foo_playcount tracks played, added, last_played and first_played even for mp4 (not only mp3) I thought I'm all fine with %rating%. But its not.
I now use ("$meta(rating)" IS 1) AND (NOT %playlist_name% IS "Windows Explorer")

Thank you very much

PS: woOt. Works only with  that quotation marks. O.o
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 04 December, 2010, 10:56:25 AM
I uploaded experimental version here (http://www.saunalahti.fi/~cse/foobar2000/foo_skip_test.zip). It fixes the Media Library Search window playback and adds titleformat field %skip_track% that returns 1 for files that will be skipped based on the current string. I didn't make it able to refresh the value on runtime so it will use the skip string that was configured when foobar was started. I'm not sure I'll keep this feature as it is incompatible with playlist name checking and possible future time evaluation.
Title: foo_skip: skip tracks that match a specified search query
Post by: FumbleFinger on 04 December, 2010, 12:00:29 PM
This is already quite a long topic, so apologies if I've missed some previous suggestion along the lines of what I do.

I used to use the foo_skip plugin, but now I use a simpler method that works better for me.

I actually store my star ratings in a field called %steve%, explicitly updated in the mp3 headers. Saves losing rating settings if my foobar database gets trashed, and distinguishes my values from anyone else's if (god forbid) files get copied to/from other people's libraries. But the principle should work whatever you call the ratings field.

The key point is that in addition to setting %steve% = 1,2,...5, on the tracks I do like, I explicitly set it to 0 for tracks that I'd rather not have played in normal circumstances. Those tracks can then be distinguished from those that I haven't rated at all, either positively or negatively.

The playlist view pattern for my "Stars" column is...
$if(%steve%,  $if( $greater(%steve%,0),$repeat($char(9679),%steve%),$char(164)),  $char(32))
...which gives me a (relatively) intuitive "bullethole in glass" character for tracks that I've blown out

My primary auto playlist has contents NOT (%steve% PRESENT AND %steve% EQUAL 0), which does it for me.

Usefully, foobar's column sort algorithm also distinguishes an explicit value 0 from the field not being present at all, so you get a sensible sequence if you sort by stars on unfiltered playlists.
Title: foo_skip: skip tracks that match a specified search query
Post by: Marsu42 on 12 December, 2010, 06:15:52 AM
Could you implement a variable like %will_be_skipped% that will show you wich track is going to be skipped in dependence of the string you use.
Another try!


Here's the solution: http://www.hydrogenaudio.org/forums/index....showtopic=85508 (http://www.hydrogenaudio.org/forums/index.php?showtopic=85508)
Title: foo_skip: skip tracks that match a specified search query
Post by: tytan on 05 March, 2011, 05:37:40 PM
Hello. In changelog i can read this:
1.3 (2010-08-23): Allows skipping both the beginning and the end of a track.

How do I set which part I want to skip?
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 06 March, 2011, 03:43:48 AM
Add a tag field named SKIP and give it timecodes to inform what part to skip. For example to not hear first 30 seconds of a track use value -0:30. To skip the last minute of a 5 minute track use value 4:00-. To only hear the first 30 seconds and the last minute of the above 5 minute track use value 0:30-4:00. To skip both the beginning and the end separate the timecodes with a semicolon (-0:30;4:00-).
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 16 March, 2011, 02:24:28 PM
Hello case,

setting the range to be skipped by manually writing the tag is somehow inconvenient. What do you think about a simple but intuitive window/ui (f.e. slider)that let's you set the ranges and gives you the opportunity to prehear the results?
Title: foo_skip: skip tracks that match a specified search query
Post by: Schnapsbrenner on 04 May, 2011, 05:08:05 PM
Add a tag field named SKIP and give it timecodes to inform what part to skip. For example to not hear first 30 seconds of a track use value -0:30. To skip the last minute of a 5 minute track use value 4:00-. To only hear the first 30 seconds and the last minute of the above 5 minute track use value 0:30-4:00. To skip both the beginning and the end separate the timecodes with a semicolon (-0:30;4:00-).

now its working, without the "="

Thank you soooo much for this component.  Now there's only one thing left to make me completely forget hell (itunes). (just need to find a component to sync playlists with my mp3-player)
You've made foobar a lot better for me...thanks again!

Grertings,
Schnaps
Title: foo_skip: skip tracks that match a specified search query
Post by: xfactor99 on 07 May, 2011, 09:03:20 AM
Hey guys, it seems most people here want to skip tracks that have been played already, but I want to skip tracks that I haven't played yet, say under a certain threshold (5 plays). Is there a way to do this?
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 07 May, 2011, 09:18:52 AM
Quote
but I want to skip tracks that I haven't played yet, say under a certain threshold (5 plays)


eh? 

anyway: http://wiki.hydrogenaudio.org/index.php?ti...00:Query_syntax (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax)
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 24 June, 2011, 01:52:12 PM
Hello case,

i would like to wish a simple bookmark functionality for foo_skip. The skip tag is good for cutting out long intros or outros out of tracks.

On the contrary a boomark tag would store the current playback position in <BOOKMARK> of currently playing track by applying a command (context or main menu) during playback. An autoplaylist could then list all bookmarked tracks. The bookmark tag should have higher priority than the skip tag for the case that both tags are existent. Useful would be also a command to remove bookmark tag. Actually very simple but for me sufficient since i want to get rid of not only the overcomplexity of foo_boomarks but mainly also of the problems it is making in my installations.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 24 June, 2011, 07:38:26 PM
Uploaded version 1.7 that hopefully implements bookmarking in a satisfying way. If you enable automatic bookmarking you get BOOKMARK tag if you manually change track. Automatically added bookmark tag is removed when track ends naturally. Manual bookmarking works from Playback menu and bookmark tags can be removed for current track from Playback menu and for selected tracks from context menu.
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 24 June, 2011, 07:43:26 PM
Wow, Thanks!

Edit: Did a quick test and it works! There is one senseful option: when a track which is not bookmarked automatically is stopped either by manually changing track or by normal stopping the last playback position is stored and at end the bookmark is removed. I ask for that option because i am not sure if i like the automatic bookmarking as it could result in endlesss bookmarked tracks so i prefer manual bookmarking.

Edit2: to say it clearer and more understandable, the automatically bookmarked tracks doesn't need to have the update of playback position  necessarily included in itself. IMO an option "autoupdate playback position and remove bookmark at end of track" which is related to manually as well as automatically bookmarked track is more flexible. Whereas automatic bookmarking makes sense only when manually changing track, the autoupdate of playbacvkposition makes also sense at stop button.

Sorry, i am so tired that i am not able to express myself clearly in english.
Good night, you all!

Edit: Before going to bed here a report of an inconsistency. when automatic bookmarking is enabled and a bookmarked is stopped by stop button then the properties window shows the old bookmark position like described in presentation of the update. But doubleclicking the track starts it from position where it was stopped and bookmark tag is changed to it.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 25 June, 2011, 05:46:27 AM
I tried to improve bookmarking features for version 1.7.1.
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 25 June, 2011, 08:01:17 AM
Thank you case, all what i need is possible now. 

The bug (?) i mentioned still exists in latest version: an automatically bookmarked is also autoupdated on stop button, solely the bookmark tag is updated not on stop but not till then starting playback again. Another point: while playing around with autobookmarking that causes many tracks bookmarking and removing bookmaks  i noticed that context menu command "remove bookmark" doesn't check in multiple selections if a bookmark tag exists at all: the command is available even if no tag exists. So the presence of the command doesn't give a useful information about the presence of bookmarks.


Edit
Here a screenshot how a bookmark panel created with facets could look like:
(https://hydrogenaud.io/imgcache.php?id=ee21f2008fdfc315b8bd0d28ce13338e" rel="cached" data-warn="External image, click to view at original size" data-url="http://img41.imageshack.us/img41/8377/facetsbookmark.jpg) (http://img41.imageshack.us/i/facetsbookmark.jpg/)
You even don't need to add bookmarked tracks to a playlist for playing: you can use the "play" command in context menu to play outside a playlist.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 25 June, 2011, 11:30:09 AM
Hopefully there are no more issues in 1.7.2.
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 25 June, 2011, 12:23:36 PM
Everything is fine, thank you once again!
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 28 June, 2011, 12:08:51 PM
Hello case,

there is a very hard conflict between the new bookmark function and the preview function of foo_seek (http://www.hydrogenaudio.org/forums/index.php?showtopic=88654&view=findpost&p=758085) that ends with deleted bookmark tag. I already asked grimes in german foobar2000 forum for a way to override bookmark functionality by automaticall deactivating toggle-option "skip tracks & use bookmarks" in main-menu if enabled. To describe the conflicht: If you are previewing some tracks and the preview reaches a song with bookmark track then the preview begins from the timepoint defined in seek controls advanced preferences and the bookmark tag gets deleted. No idea what is going on.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 29 June, 2011, 03:53:19 PM
Nasty bug, fixed in 1.7.3.
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 29 June, 2011, 04:26:53 PM
Thanks case,

the removal of the bookmark track is fixed. To my surprise the foo_seek-preview begins from its position and overrides the bookmark tag. That i consider as desireable behaviour. Now one conflict remains: if autoupdate of bookmark position is enabled then selfevident the bookmark tag gets updated to the position where the preview ended. That may not be desireable. Since in case of preview the playback doesn't begin from bookmark position there seems to be something that tells foobar to start from preview beginning position. Isn't then also possible in that case not to update bookmark tag?


Edit
I assume that "remove bookmark" in main menu should remove all bookmark tags existing in library. That is at least what it did when i tried it. To avoid speculations for new users i would call it "Remove all bookmarks" and make it hidden [edit] to make accidental removal more difficult [/edit]. Apart from that this command doesn't appear sometimes even if a bookmark exists (the bookmarked track is in library!).
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 30 June, 2011, 02:40:27 PM
Another little bug:

if a) skip tag exists to cut beginning and end of track and b) playbackorder is "repeat track" then playback nevertheless advances to next track.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 02 July, 2011, 09:39:54 AM
To my surprise the foo_seek-preview begins from its position and overrides the bookmark tag. That i consider as desireable behaviour. Now one conflict remains: if autoupdate of bookmark position is enabled then selfevident the bookmark tag gets updated to the position where the preview ended.

It seems to depend on luck which component does the seeking. I changed Skip Track to only update bookmark if seek seems to originate from user or a component seeked to bookmark position.

I assume that "remove bookmark" in main menu should remove all bookmark tags existing in library.

No, it works on the track that is currently playing (just like the 'Bookmark current position' entry in the same menu). If playback is stopped it works on the track that was last playing. I have not seen it misbehave. Context menu entries work on the selected tracks.

if a) skip tag exists to cut beginning and end of track and b) playbackorder is "repeat track" then playback nevertheless advances to next track.

Fixed.
Title: foo_skip: skip tracks that match a specified search query
Post by: Wolfilius on 17 July, 2011, 09:59:22 AM
Hello
For few hours now, I'm trying to make foo_skip working with all possibilities but nothing...
All my files have a tag named "skip" containing 1 if I want it skipped instead of "rating"=1 because sometimes I wish good songs (rated 4,5) skipped. Here are my various tests:
- %skip% IS 1
- $meta(%skip%) IS 1
- %skip_track% IS 1
- if(%skip%, 1, skip, )
...
case %skip% doesn't exist (after rating 1 the test track) :
- %rating% IS 1
- $meta(%skip%) IS 1
...
all that with double-click on the test track, double-click on the precedent track then "next", activate/desactivate "even manually selected" option, ...
I've no more idea so I'm asking for help here, after reading the topic.
PS: Sorry for my lame english...
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 17 July, 2011, 11:25:22 AM
Setting a tag field 'skip' with value '1' definitely works when your skip query is '%skip% IS 1'. Only thing I can suggest is to check that the component isn't accidentally disabled. There should be a checkmark in its Playback menu entry when it's enabled.
Title: foo_skip: skip tracks that match a specified search query
Post by: Wolfilius on 17 July, 2011, 12:30:26 PM
Setting a tag field 'skip' with value '1' definitely works when your skip query is '%skip% IS 1'. Only thing I can suggest is to check that the component isn't accidentally disabled. There should be a checkmark in its Playback menu entry when it's enabled.

I've downloaded again the foo_skip.dll file.
After reboot, no changes: Skip Tracks is in the "keyboard shortcut" menu, the "avanced" menu, but nothing in the "playback" menu or "playback" context menu...
Can it be a conflict with some other plugin ?
Title: foo_skip: skip tracks that match a specified search query
Post by: tpijag on 17 July, 2011, 01:03:21 PM
Think it rare to conflict with other plugin, though it would not hurt to say what you have loaded. There is a copy button in preferences>components and you can paste into a codebox. To be clear, here is the menu entry.

(https://hydrogenaud.io/imgcache.php?id=84dae249cafd0b7e095c4ce837eefc34" rel="cached" data-warn="External image, click to view at original size" data-url="http://dl.dropbox.com/u/35526849/skip.jpg)
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 17 July, 2011, 05:11:08 PM
I changed Skip Track to only update bookmark if seek seems to originate from user or a component seeked to bookmark position.
I am not sure what you mean with this and what has been changed. Using seek controls preview feature still ends with update of bookmark position. However, that is not a big issue.
Title: foo_skip: skip tracks that match a specified search query
Post by: Wolfilius on 17 July, 2011, 06:46:02 PM
Think it rare to conflict with other plugin, though it would not hurt to say what you have loaded. There is a copy button in preferences>components and you can paste into a codebox. To be clear, here is the menu entry.

I've found the hidden menu (by Columns UI): the entry was already checked.
Uncheck then check again and... IT WORKS  !!!
Obviously a bug since the last update of foobar...
Thanks for the help, after hours I would never paid attention to an already checked option.
Title: foo_skip: skip tracks that match a specified search query
Post by: -AdZero- on 09 August, 2011, 03:44:13 PM
Hi.

I'm trying to use Skip Tracks in a very specific way but I can't reach my goal.
Let me explain what I'm trying to do.
I want to play a specific part of a track (for example start after 30 seconds and play during 1 minute) and then insert silence before playing the next track excerpt.
I know how to skip the beginning and te end of the track but I can't insert silence because the "Post-track silence" plugin doesn't work in combination with Skip track.

Has anyone an idea how to do it ? It would be interisting to have such an option in the Skip Tracks plugin.

Thanks.

Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 10 August, 2011, 10:15:11 AM
Pregap DSP (http://www.saunalahti.fi/~cse/foobar2000/?changes=foo_dsp_pregap) component can be used to achieve what you want. It has a downside of having a pause before the first played track too though.
Title: foo_skip: skip tracks that match a specified search query
Post by: -AdZero- on 13 August, 2011, 10:47:49 AM
Pregap DSP (http://www.saunalahti.fi/~cse/foobar2000/?changes=foo_dsp_pregap) component can be used to achieve what you want. It has a downside of having a pause before the first played track too though.


I tried the Pregap component but it doesn't work in combination with Skip Tracks.
All my tracks have a Skip tag with the value -00:30;01:30- and there's no silence between each track.

Thanks for the suggestion anyway.
Title: foo_skip: skip tracks that match a specified search query
Post by: Shinsou on 24 August, 2011, 08:58:36 AM
This component has become invaluable for me with bookmarking features added. Any possibility to skip now playing track when rating is set to 1 ?
Title: foo_skip: skip tracks that match a specified search query
Post by: Nixdagibts on 24 August, 2011, 09:01:58 AM
Have you already tried this?
Preferences > Advanced > Playback > Skip Tracks > Skip Track Query
Code: [Select]
%rating% IS 1
Title: foo_skip: skip tracks that match a specified search query
Post by: Chaser on 12 September, 2011, 03:27:00 PM
Works great, though I am experiencing something not so nice: When tracks are skipped, they are not truly skipped but rather start playing for a couple of hundres milliseconds. This is due to the option "Fade out (ms)" in the Advanced-Tab. To try it out, just set it to for example 1000ms and let there be a couple of skipped tracks. You will always hear the first couple of tones.

Secondly the skipping is not instant. By that I mean that there is a considerable pause between Song A and Song B, when there are for example 10 skipped tracks inbetween. Is there anything you can do to improve this behaviour?

Thank you very much!
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 13 September, 2011, 11:57:19 AM
Sounds like you haven't enabled Skip Track DSP part. The DSP will eat the beginning of a track so you won't hear it. Unfortunately there isn't anything I can do to make track skipping faster. If DSP discards the samples from a skipped track playback counters will think it was played. And if DSP component asks core to skip to next track as soon as skippable track starts decoding you will miss samples from the end of currently playing track.
Title: foo_skip: skip tracks that match a specified search query
Post by: Chaser on 14 September, 2011, 02:17:51 AM
Thank you. I indeed missed that part!
Title: foo_skip: skip tracks that match a specified search query
Post by: Shinsou on 03 October, 2011, 02:01:43 PM
Have you already tried this?
Preferences > Advanced > Playback > Skip Tracks > Skip Track Query
Code: [Select]
%rating% IS 1

Looks like I missed that thread.
"%rating% IS 1" in "Skip Track Query" works as it should: it skips tracks with rating "1". I need a currently playing track to be skipped as soon as I rate it *1.
Title: foo_skip: skip tracks that match a specified search query
Post by: delusion on 03 November, 2011, 06:49:29 PM
can anyone please tell me the correct order for DSPs to avoid playing a few millisecs of a skipped track.

this is how i set the order atm.
Advanced Limiter => Acro Skip Silence => Skip Track => Gapless Crossfader

afaik i tried every possibility and didnot  get a satisfying result.
i set "fade in" in "prefernces" "advanced" "playback" to "0". but it always plays skipped tracks for a few millisecs.
when tracks are not skipped, the tracks are crossfaded as expected...

hope, anyone can help out. thx in advance, and thx for this great plugin!!!

fg, dls
Title: foo_skip: skip tracks that match a specified search query
Post by: Shinsou on 04 November, 2011, 04:18:13 AM
I couldn't get 100% complete skipping using any DSP setup but for gapless playback put "skip track" to the top of DSP chain.
Title: foo_skip: skip tracks that match a specified search query
Post by: delusion on 04 November, 2011, 10:28:18 AM
thx4thequickanswer
i there&then read it should possible, so i didnt stop trying ;-)
even if thinking about it logically, i couldnt imagine it could work.

i try to add the dsp foo_dsp_pregap.dll to avoid the first X millisecs played to be heard.
think it could work like that. gonna try it out in the evening.
i use overlap instead of fade-in/fade-out, so i cannot use the fade-functions for this...
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 08 December, 2011, 05:09:48 PM
I have a small request and a bigger one:

The check option "skip tracks and use bookmarks" in main menu activates all three features of the skip component: bookmark tag, skip tag and skipping track by matching a query. Generally i would like to keep this option always enabled because off bookmark and skip tag but would like to use the skipping by matching a query only when i consider it as useful/necessary. Would like to have two check options: on one side the skip/bookmark tag (f.e. "Use skip & bookmark track") and on the other side "Skip tracks".

It might seem to be a an over-the-top feature but there is one important reason (how i/we have experienced) to write at least the bookmark tag in a simple database rather than in the file: multi-user enviroment. Maybe something that works similar to foo_playcount: using the same tag sheme (artist, title, album,...) to map the bookmarkposition to a file.
Title: foo_skip: skip tracks that match a specified search query
Post by: ZhuGeLiang on 22 December, 2011, 08:38:01 AM
Is it possible to use foo_skip in combination with the converter to create tracks that have the "skipped" parts removed?

For example, I have a track that is 2:30 long and would like to chop off the first 30 seconds based on the skip tag value of -30.
Title: foo_skip: skip tracks that match a specified search query
Post by: db1989 on 22 December, 2011, 09:06:35 AM
Is it possible to use foo_skip in combination with the converter to create tracks that have the "skipped" parts removed?

For example, I have a track that is 2:30 long and would like to chop off the first 30 seconds based on the skip tag value of -30.
Yes, it should be as simple as loading foo_skip as a DSP and choosing to include DSPs when converting.
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 22 December, 2011, 09:10:14 AM
I've never tested that - but i am sceptical. Parts of the track aren't removed automatically (edit: while being played) just by loading the dsp but by activating the toggle option in main menu. ZhuGeLiang, let us know if you have success.
Title: foo_skip: skip tracks that match a specified search query
Post by: db1989 on 22 December, 2011, 09:13:51 AM
Oh, then you’re probably right. My apologies to ZhuGeLiang and yourself if that’s the case. My knowledge of foo_skip is vague, and I assumed that the DSP would always process normally as long as it was enabled in the menu/Preferences.
Title: foo_skip: skip tracks that match a specified search query
Post by: thibris on 28 January, 2012, 10:41:56 AM
Is there any way to use globals under the Advanced -> Playback -> Skip Tracks -> Skip Track Query ?
I wanted to use something like:
Code: [Select]
%play_count% GREATER $get_global(max)
Title: foo_skip: skip tracks that match a specified search query
Post by: groveller on 01 May, 2012, 03:58:53 PM
Does anyone have foo_skip 1.6 (2011-06-20)?
Title: foo_skip: skip tracks that match a specified search query
Post by: Falstaff on 01 May, 2012, 04:06:54 PM
is v1.6.0 better that v1.7.4 ?

EDIT: just curious...
Title: foo_skip: skip tracks that match a specified search query
Post by: groveller on 01 May, 2012, 04:30:36 PM
“Bookmark” feature makes me cry. I use foo_customdb for bookmarking and often have troubles with track skipping.
That’s why v1.6 better than 1.7.4 for me (and better than buggy 1.4, that I use :\)
Title: foo_skip: skip tracks that match a specified search query
Post by: q-stankovic on 03 May, 2012, 05:38:50 PM
Can you describe what your trouble is?
Title: foo_skip: skip tracks that match a specified search query
Post by: r0k on 07 May, 2012, 01:11:15 PM
Hmm. Maybe i'm blind but where's the download link?
It's not in the first post. The Wiki page is for foobar0.9 and the only file there is named up261.dll. Not really the typical foobar component.
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 07 May, 2012, 01:18:24 PM
http://www.foobar2000.org/components/view/foo_skip (http://www.foobar2000.org/components/view/foo_skip)
Title: foo_skip: skip tracks that match a specified search query
Post by: r0k on 07 May, 2012, 02:06:37 PM
Doh 
I'm so used to look at the wiki because there are more components there that i forgot to check the official components page.

Thanks

EDIT : i wanted to update the link in the wiki so i could feel less stupid for asking but i can't edit even after i registered in the wiki.
Title: foo_skip: skip tracks that match a specified search query
Post by: groveller on 11 May, 2012, 06:28:39 PM
Well, q-stankovic, sit and listen, sit and listen.

I use “foo_customdb” for local bookmarking and track skippnig (but not only for this).

Look at my pic my pic is amazing.
(https://hydrogenaud.io/imgcache.php?id=90d17410592fc3b076a92c225143a72e" rel="cached" data-warn="External image, click to view at original size" data-url="http://cs11140.userapi.com/v11140718/8a5/4Ed0WL3JfDk.jpg)
1, 2) “foo_customdb” settings
3) playlist view
4) “foo_skip” settings. I have tried several others queries (e.g. “%skip% IS 0-”) but nothing has changed.
5) Appearance of the playlist. New version of “foo_skip” skips ALL the underlined tracks, not only “Outside” as it should.

I’m sure it’s not my mistake, because before updating everything was ok. I just want version 1.6.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 12 May, 2012, 05:09:55 AM
Your screenshot shows the files that are skipped have bookmarks. I believe your bookmarks point to a position outside the file's length or at the very end.
PS: foo_customdb seems to have a typo in the word "Properties".
Title: foo_skip: skip tracks that match a specified search query
Post by: groveller on 13 May, 2012, 05:19:55 PM
Case, hmmm, you are right. Yes, foo_customdb BOOKMARK value is %now%, it’s convenient for sorting, etc. But skip query is "%skip% PRESENT", not %bookmark%. It’s very annoying behavior.
Title: foo_skip: skip tracks that match a specified search query
Post by: smallbear on 07 July, 2012, 03:32:28 AM
I was only somewhat recently made aware of this thread and hadn't read it from the beginning until now...

This is sort-of related, but I thought a plug-in that would skip a predefined section of a song would be cool.  Like, the annoying intro to a good song, or a 20 minute outtro.


I just uploaded version 1.1 of Skip Track (http://www.foobar2000.org/components/view/foo_skip). It allows you to skip parts of tracks if you use tag field 'skip'. For example: to skip the first minute of a track create tag field 'SKIP' and give it value '-1:00'. To skip from the end after 4 minutes and 30 seconds, use value '4:30-'.

Hope you will add querying the active playlist. =)

Also added. Use %playlist_name% to query it.



Current version only supports one time skip range. Perhaps I should mention that time skipping isn't used at all when you explicitly choose a track by double clicking it. It's only enabled when playback advances naturally from previous track. Might be good to know if you test the feature.


Thank you.
Can I set start time and end time on one track skip tag field on the future?

For example:
'A' track length is 4:00.
'A' track skip tag is -1:00;3:00-
'A' track start at 1:00, and end 3:00.



Version 1.3 (http://www.foobar2000.org/components/view/foo_skip) uploaded with support for watercolor's feature request.


I have been trying and trying to get this to work to absolutely no avail. Skip Tracks completely ignores anything before the "-" symbol. For example: skip=5:00-12:16, skips to the end of the track (12:16, that is, the whole track). It's infuriating. Please tell me how to skip THE END of a track. I can skip the start fine, but not the end. Nothing posted here or elsewhere works, there must be a reason.
Title: foo_skip: skip tracks that match a specified search query
Post by: ojdo on 07 July, 2012, 04:58:37 AM

For example:
'A' track length is 4:00.
'A' track skip tag is -1:00;3:00-
'A' track start at 1:00, and end 3:00.


For example: skip=5:00-12:16, skips to the end of the track (12:16, that is, the whole track).


What about the following?
Code: [Select]
-5:00;12:16-
Title: foo_skip: skip tracks that match a specified search query
Post by: smallbear on 07 July, 2012, 05:25:07 AM
Using that, it starts at 5: and plays until 12:16
for reference, I'm using the latest stable builds of the plug and foobar. With the only DSP being SOX Resampler.Win7.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 07 July, 2012, 02:58:54 PM
Smallbear, you are using the feature correctly. If you want to skip the ending after five minute marker, you can also simply use SKIP=5:00-. When you open the track where you have configured this skipping, please check what Console reports (View -> Console). Your original line should cause console to show "Skipping from 5:00.000 to 12:16.000".
I hope you haven't accidentally configured the Skip Track query option in Advanced preferences to use SKIP tag incorrectly.
Title: foo_skip: skip tracks that match a specified search query
Post by: smallbear on 07 July, 2012, 11:38:03 PM
Smallbear, you are using the feature correctly. If you want to skip the ending after five minute marker, you can also simply use SKIP=5:00-. When you open the track where you have configured this skipping, please check what Console reports (View -> Console). Your original line should cause console to show "Skipping from 5:00.000 to 12:16.000".
I hope you haven't accidentally configured the Skip Track query option in Advanced preferences to use SKIP tag incorrectly.


Thanks, but I've already tried all the suggestions for syntax, I didn't want to ramble on through everything I tried, but I was at it for a few hours yesterday.

I've taken a few relevant screenshots, to show the exact settings. The filenames are meaningful, so refer to them to get the context, ie: in one instance I did a console shot that shows the effect of moving skip-track to the top of the DSP chain: what that did in playing terms was to play the first second and then skip, rather than just skipping instantly (If I remove SOX there is no change in behaviour).

http://s311.photobucket.com/albums/kk453/enchiladro/ (http://s311.photobucket.com/albums/kk453/enchiladro/)
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 08 July, 2012, 08:19:51 AM
The last screen capture reveals the problem. You only use the word SKIP for tag field name. The value should be nothing but numbers. It interprets the text as zero.
PS: the DSP component should be the last component in the chain if you use it. And if you don't use it, you will hear a glitch on skip if the track doesn't start with silence.
Title: foo_skip: skip tracks that match a specified search query
Post by: smallbear on 08 July, 2012, 09:15:09 AM
The last screen capture reveals the problem. You only use the word SKIP for tag field name. The value should be nothing but numbers. It interprets the text as zero.
PS: the DSP component should be the last component in the chain if you use it. And if you don't use it, you will hear a glitch on skip if the track doesn't start with silence.


Thanks, that's solved it. I had a vague feeling it must be in the syntax, seems obvious now. I do have the DSP second in the chain, I noticed some slight glitches otherwise, as you said.
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 08 August, 2012, 07:46:59 AM
Add a tag field named SKIP and give it timecodes to inform what part to skip. For example to not hear first 30 seconds of a track use value -0:30. To skip the last minute of a 5 minute track use value 4:00-. To only hear the first 30 seconds and the last minute of the above 5 minute track use value 0:30-4:00. To skip both the beginning and the end separate the timecodes with a semicolon (-0:30;4:00-).


Is it possible to skip a part of an audio file, such as the last x seconds? My podcasts contain advertisements at the beginning and at the end, but these files don't have the same length, so I can fix a specific moment when to skip only relative to the audio length minus x seconds.
Title: foo_skip: skip tracks that match a specified search query
Post by: DaRudi on 10 November, 2012, 11:45:44 AM
A useful Tip for users of this component: I often listen to full length DJ Tracks which usually have a long intros and outros for syncing mixing and transitions. When i listen to such tracks i normally want to skip the first and the last Minute of the track.

Setting the Skip Tag for the first Minute is no problem with this component. Setting the last Minute is the trickier Part because you have to calculate the Time one Minute (or whatever you want to skip)

i solved this with the "Automatically fill values..." Tool in the Tag editor Window.

i chose source -> Other: and used this script

Code: [Select]
-1:00;$sub($cut(%length%,$sub($strchr(%length%,:),1)),1):$right(%length%,$strchr(%length%,:))-

Pattern is then the Tag Name

Code: [Select]
%skip%


With this examples foo_skip skips the first and last minute of each chosen (tagged) track
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 12 November, 2012, 05:23:06 PM
i solved this with the "Automatically fill values..." Tool in the Tag editor Window.

i chose source -> Other: and used this script


I'm also interested in this method, but what do you mean by ""Automatically fill values..." Tool in the Tag editor Window"?
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 13 November, 2012, 12:03:30 PM
select file(s) in playlist, right click>properties>right click again and there it is.
Title: foo_skip: skip tracks that match a specified search query
Post by: Lee James on 26 November, 2012, 07:36:37 AM
Hi there,

I was looking for a plugin that would make songs more likely to play based on their rating. Foo_skip seems to be exactly what I was looking for and I was all ready to write the script!

Apart from one thing… how do you generate random numbers?

Without random numbers, it’s impossible to control the probability of songs playing. You can only either make them always play or never play, which is not very helpful for a 0–5 rating system like mine.
Title: foo_skip: skip tracks that match a specified search query
Post by: Lee James on 09 December, 2012, 06:51:01 PM
To be specific. Here’s what I want:

Songs rated 0 = 2% probability of playing
Songs rated 1 = 25% probability of playing
Songs rated 2 = 50% probability of playing
Songs rated 3 = 75% probability of playing
Songs rated 4 = 100% probability of playing

Is this so unusual, wanting songs to play more based on how much I like them?

All I need is random number generation! Please, can anyone help?
Title: foo_skip: skip tracks that match a specified search query
Post by: Sandrine on 27 January, 2013, 11:19:38 AM
May I request something that let's me skip certain tracks when foobar is in random mode, but listen to them when in album mode? There are tracks like prologues/epilogues/reprises which mess up the playlist in random but which still blend in nicely when listening to the complete album.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 28 January, 2013, 11:22:51 AM
It seems you already can. Someone had requested support for querying playback mode earlier in the thread and it seems to be implemented. You can use something like (%playback_order% IS random OR %playback_order% IS "Shuffle (tracks)") AND %skip% IS 1.
Title: foo_skip: skip tracks that match a specified search query
Post by: Sandrine on 28 January, 2013, 01:11:40 PM
Splendid, thanks!
Title: foo_skip: skip tracks that match a specified search query
Post by: Hancoque on 05 February, 2013, 05:05:23 AM
Skipping tracks doesn't work for me (version 1.7.5). The tracks just play normally when their position is reached in the playlist. Here is a screenshot with my settings: http://bayimg.com/lAjaMAaEf (http://bayimg.com/lAjaMAaEf)
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 05 February, 2013, 05:49:55 AM
if you have foo_playcount installed, the rating from that over-rides the tags in your files.

to get around that, you can change the query to....

Code: [Select]
"$meta(rating)" IS 1
Title: foo_skip: skip tracks that match a specified search query
Post by: Hancoque on 05 February, 2013, 06:20:59 AM
Thanks, that solved the problem.
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 21 February, 2013, 05:28:44 PM
Following your example, I adapted it to skip an arbitrary number of seconds at the beginning and at the end of the audio file.

Code: [Select]
-A;$div($add($mul($cut(%length%,$sub($strchr(%length%,:),1)),60),$right(%length%,$strchr(%length%,:)),-B),60):$mod($add($mul($cut(%length%,$sub($strchr(%length%,:),1)),60),$right(%length%,$strchr(%length%,:)),-B),60)-
Now it becomes difficult to follow this code, but, for your understanding, the formula is (min*60+sec-x)/60 : (min*60+sec-x) mod 60
It works for durations shorter than 1 hour, otherwise you have to include the hours in the calculation.

Adapt it to your needs as follows:
A is the duration you want to skip at the beginning. Format in minutes (ex. "0:25" without the quotes).
B is the duration you want to skip at the end. Format in seconds (ex. "29" without the quotes)

A useful Tip for users of this component: I often listen to full length DJ Tracks which usually have a long intros and outros for syncing mixing and transitions. When i listen to such tracks i normally want to skip the first and the last Minute of the track.

Setting the Skip Tag for the first Minute is no problem with this component. Setting the last Minute is the trickier Part because you have to calculate the Time one Minute (or whatever you want to skip)

i solved this with the "Automatically fill values..." Tool in the Tag editor Window.

i chose source -> Other: and used this script

Code: [Select]
-1:00;$sub($cut(%length%,$sub($strchr(%length%,:),1)),1):$right(%length%,$strchr(%length%,:))-

Pattern is then the Tag Name

Code: [Select]
%skip%


With this examples foo_skip skips the first and last minute of each chosen (tagged) track
Title: foo_skip: skip tracks that match a specified search query
Post by: hgodzillay on 24 February, 2013, 10:08:30 AM
Hi,

i installed skiptracks component and so far my query is only:
Code: [Select]
%rating% IS 3 OR %rating% IS 2


i would like to add :
Code: [Select]
OR %tempo% < 110

but i don't know if that's the right way to write it because it doesn't work .. any help please ? (i have BPM analysis and tempo values on all my tracks)

i have 2 another questions maybe you have an idea.

1 - i would like to be able to change the comments of a track simply on clicking on the comment's column and entering text. for the moment i have to rightclic / propreties / enter infos ..

2 - when my foobar is playing a random track from a selection of let say 200 i would like the window to actually scroll to that track so i can see all the datas and edit them. for the moment i have to manually scroll to search for it.
Title: foo_skip: skip tracks that match a specified search query
Post by: Chibicon on 25 February, 2013, 01:34:02 AM
To be specific. Here’s what I want:

Songs rated 0 = 2% probability of playing
Songs rated 1 = 25% probability of playing
Songs rated 2 = 50% probability of playing
Songs rated 3 = 75% probability of playing
Songs rated 4 = 100% probability of playing

Is this so unusual, wanting songs to play more based on how much I like them?

All I need is random number generation! Please, can anyone help?


Is this possible? Because it would be just what I need.
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 25 February, 2013, 04:18:30 AM
@hgodzillay. use LESS. full documentation here: http://wiki.hydrogenaudio.org/index.php?ti...00:Query_syntax (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax)

and you should start a new thread for your other questions.

@Chibicon, i don't think so. what you're asking is beyond the scope of this plugin.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 25 February, 2013, 07:25:28 AM
Actually the probability skipping is possible since January (http://www.hydrogenaudio.org/forums/index.php?showtopic=99068).
Note that with foo_playcount component you can't have rating 0 so this example skip query uses $meta check with it:
("$meta(rating)" IS 0 AND "$mod($rand(),100)" GREATER 1) OR (%rating% IS 1 AND "$mod($rand(),100)" GREATER 24) OR (%rating% IS 2 AND "$mod($rand(),100)" GREATER 49) OR (%rating% IS 3 AND "$mod($rand(),100)" GREATER 74)
Title: foo_skip: skip tracks that match a specified search query
Post by: hgodzillay on 25 February, 2013, 10:16:41 AM
marc2003 thx
Title: foo_skip: skip tracks that match a specified search query
Post by: Chibicon on 26 February, 2013, 11:36:33 PM
Actually the probability skipping is possible since January (http://www.hydrogenaudio.org/forums/index.php?showtopic=99068).
Note that with foo_playcount component you can't have rating 0 so this example skip query uses $meta check with it:
("$meta(rating)" IS 0 AND "$mod($rand(),100)" GREATER 1) OR (%rating% IS 1 AND "$mod($rand(),100)" GREATER 24) OR (%rating% IS 2 AND "$mod($rand(),100)" GREATER 49) OR (%rating% IS 3 AND "$mod($rand(),100)" GREATER 74)


Just place this in the skip track query?
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 27 February, 2013, 10:36:17 AM
Yes. Though if you use Playback Statistics (http://www.foobar2000.org/components/view/foo_playcount) component I suggest removing the "("$meta(rating)" IS 0 AND "$mod($rand(),100)" GREATER 1) OR " part.
Title: foo_skip: skip tracks that match a specified search query
Post by: hgodzillay on 01 March, 2013, 04:03:27 PM
i can get the playback to skip 0 and 2 rating by using

Code: [Select]
%rating% IS 2 OR %rating% IS 0


but when i try to add something to skip tracks below 112 BPM it doesn't work with

Code: [Select]
%rating% IS 2 OR %rating% IS 0 OR %tempo% LESS 112

it skips every thing.

i have a tempo column in foobar that is felt by BPM Analysis is that the right way to do ?

ok my last question that is way beyond my abilities :
i want to play tracks in this order matching these ratings :
ONE 5 rating track then TWO 4 rating track then ONE 3 rating track then back to ONE 5 rating track and so one .. could you give me the code for that  ?

Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 01 March, 2013, 04:15:14 PM
is %tempo% present in every single file? if not, you might want to do something like this.

Code: [Select]
%rating% IS 2 OR %rating% IS 0 OR (%tempo% PRESENT AND %tempo% LESS 112)


i'm not even going to attempt to say anything about your 2nd point. 
Title: foo_skip: skip tracks that match a specified search query
Post by: hgodzillay on 01 March, 2013, 06:02:38 PM
is %tempo% present in every single file? if not, you might want to do something like this.

Code: [Select]
%rating% IS 2 OR %rating% IS 0 OR (%tempo% PRESENT AND %tempo% LESS 112)


i'm not even going to attempt to say anything about your 2nd point. 



haha #1 works fine thx for help ! but caman at least tell me why #2 is not possible ?
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 23 March, 2013, 10:30:33 AM
A useful Tip for users of this component: I often listen to full length DJ Tracks which usually have a long intros and outros for syncing mixing and transitions. When i listen to such tracks i normally want to skip the first and the last Minute of the track.

Setting the Skip Tag for the first Minute is no problem with this component. Setting the last Minute is the trickier Part because you have to calculate the Time one Minute (or whatever you want to skip)

i solved this with the "Automatically fill values..." Tool in the Tag editor Window.

i chose source -> Other: and used this script

Code: [Select]
-1:00;$sub($cut(%length%,$sub($strchr(%length%,:),1)),1):$right(%length%,$strchr(%length%,:))-

Pattern is then the Tag Name

Code: [Select]
%skip%


With this examples foo_skip skips the first and last minute of each chosen (tagged) track

*Bug correction for tracks longer than 10:00 and simplification of my above post*

Following your example, I adapted your code to skip an arbitrary number of seconds at the beginning and at the end of the audio file.

A is the duration you want to skip at the beginning. Format in minutes (example: 2:30)
B is the duration you want to skip at the end. Format in seconds (example: 151)
Code: [Select]
-A;$div($add($mul($cut(%length%,$sub($strchr(%length%,:),1)),60),$right(%length%,2),-B),60):$mod($add($mul($cut(%length%,$sub($strchr(%length%,:),1)),60),$right(%length%,2),-B),60)-
Now it becomes difficult to follow this code, but, for your understanding, the formula is (min*60+sec-B)/60 : (min*60+sec-B) mod 60
It works for durations shorter than 1 hour, otherwise you have to include the hours in the calculation.
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 23 March, 2013, 10:38:16 AM
%length_seconds% might make your life easier.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 23 March, 2013, 02:23:59 PM
I noticed that this component works bit slowly in some scenarios. When foobar is in Shuffle mode and tries to open track referenced by .cue file from mp3, then I can hear less than half of second of sound before it is skipped. This doesn't occur for normal mp3 files (not .cue referenced).

My skip query is simple I think: "%keywords% HAS transcode" . It is used to omit playing of MP3 files when FLAC version of such file exists. Such tracks are manually tagged by me in custom, multipurpose tag field named KEYWORDS. It can contain several words, separated with simple comma.

I recalled other problematic thing - it skips even files from playback queue... Just lets them play for less than half of second and them skips them... I don't like it. Couldn't it be configured?
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 23 March, 2013, 04:13:52 PM
The component works as fast as it can. Playback notifications don't come from the core in real time, but there is the DSP part that should deal with that. Do you have it enabled?
Title: foo_skip: skip tracks that match a specified search query
Post by: sollniss on 23 March, 2013, 10:36:33 PM
To be specific. Here’s what I want:

Songs rated 0 = 2% probability of playing
Songs rated 1 = 25% probability of playing
Songs rated 2 = 50% probability of playing
Songs rated 3 = 75% probability of playing
Songs rated 4 = 100% probability of playing

Is this so unusual, wanting songs to play more based on how much I like them?

All I need is random number generation! Please, can anyone help?


Using the Dynamic fields component you can generate a random number from 0 to 100 that changes on a daily basis like this:
Code: [Select]
$mod($mod(%length_samples%,$date_diff(2010-11-12)),100)


I'm not aware of a tag that changes constantly that doesn't depend on the song. You could take the milisecond part of %current date% if there was such a tag, or the crc32 of %next song in playlist%.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 24 March, 2013, 03:45:05 AM
The component works as fast as it can. Playback notifications don't come from the core in real time, but there is the DSP part that should deal with that. Do you have it enabled?


Yes. I use "Dynamic DSP", "Skip Silence", often "Convert 5.1 to stereo", "Convert mono to stereo", and rarely, but it's present in DSP chain nearly all the time, "Playback Rate Shift" from mudlord's "foo_dsp_effect".
If the speed of skipping can not be "corrected", then it is OK, I can accept it. But it will be nice if skipping tracks from playback queue could be resolved... I mean it could be done like it was with "manually selected tracks" - just one checkbox.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 24 March, 2013, 04:42:59 AM
I'm not aware of a tag that changes constantly that doesn't depend on the song.

For skipping purposes this component has field $rand() that changes every time track is played. I made it get only one value within the query so you can use it with multiple evaluations without requiring $puts and $get.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 24 March, 2013, 04:46:34 AM
Yes. I use "Dynamic DSP", "Skip Silence", often "Convert 5.1 to stereo", "Convert mono to stereo", and rarely, but it's present in DSP chain nearly all the time, "Playback Rate Shift" from mudlord's "foo_dsp_effect".


I think you misunderstood. There is a DSP called "Skip Track" that prevents you from hearing parts of tracks that are about to be skipped. It should be the last DSP in the DSP chain.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 24 March, 2013, 05:10:01 AM
Yeah... I thought you are talking about DSPs that are slowing down foo_skip work... So, "Skip Track DSP" is configured by the same settings in Advanced Preferences as "Playback \ Skip tracks" option?

EDIT:
Yeah, now it works great

EDIT2:
After some longer time I must say not exactly... When I change tracks manually, then yes, everything works OK. Even 6 skips are perfectly quiet. But when tracks are changing automatically I can hear for example 3 "pops" lasting long enough to hear the melody before track is skipped. I am still talking about opening .cue referenced tracks from long MP3 and M4A files.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 24 March, 2013, 05:37:07 AM
I recalled other problematic thing - it skips even files from playback queue...

Fixed. Now it respects the "Skip even manually selected tracks" setting.
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 24 March, 2013, 07:22:05 AM
A useful Tip for users of this component: I often listen to full length DJ Tracks which usually have a long intros and outros for syncing mixing and transitions. When i listen to such tracks i normally want to skip the first and the last Minute of the track.

Setting the Skip Tag for the first Minute is no problem with this component. Setting the last Minute is the trickier Part because you have to calculate the Time one Minute (or whatever you want to skip)

i solved this with the "Automatically fill values..." Tool in the Tag editor Window.

i chose source -> Other: and used this script

Code: [Select]
-1:00;$sub($cut(%length%,$sub($strchr(%length%,:),1)),1):$right(%length%,$strchr(%length%,:))-

Pattern is then the Tag Name

Code: [Select]
%skip%

With this examples foo_skip skips the first and last minute of each chosen (tagged) track

%length_seconds% might make your life easier.

Thank you for your suggestion!
I also noticed that this component accepts positions such as 61:1 or 3661.
With all this new information, now the code is much simpler.

A is the duration you want to skip at the beginning. Format in minutes or in seconds
B is the duration you want to skip at the end. Format in seconds (example: 151). Make sure it's shorter than your track length.
recommended formula:
Code: [Select]
-A;$div($sub(%length_seconds%,B),60):$mod($sub(%length_seconds%,B),60)-
or even (format in seconds):
Code: [Select]
-A;$sub(%length_seconds%,B)-
or the universal formula (if you want to format hours):
Code: [Select]
-A;$ifgreater($sub(%length_seconds%,B),3599,$div($sub(%length_seconds%,B),3600):$div($sub($mod(%length_seconds%,3600),B),60):$mod($sub(%length_seconds%,B),60),$div($sub(%length_seconds%,B),60):$mod($sub(%length_seconds%,B),60))-
Now it becomes a bit more difficult to follow this last code, but, for your understanding, the formula is
if(final position greater than 1 hour)
then (length-B)/3600 : ((length-B) mod 3600)/60 : (length-B) mod 60
else (length-B)/60 : (length-B) mod 60
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 24 March, 2013, 07:41:50 AM
I recalled other problematic thing - it skips even files from playback queue...

Fixed. Now it respects the "Skip even manually selected tracks" setting.


Thanks for fixing it Case.

Just to summarize my experience with cue sheets and Skip Tracks DSP:
I've created playlist where there was only one playable track, and 12 which all were matching skip pattern and all were entries of one cue sheet. Playback mode was set to "Shuffle". When playable track finished playing (automatically, because it has ended) there were multiple skips, one-by-one before playable track was played again. Results are:
1. when file referenced in .cue is .m4a (iTunes AAC/LC) there could be up to 3 glitches, mostly 2, when tracks are skipped multiple times. Next skips are all OK.
2. when refeneced file is .mp3, then only one glitch occurs, at first skip. Rest of skips is perfectly quiet.
3. when referenced file is .flac then everything is perfect, nevermind whether I use DSP in chain or just item from Playback menu (without DSP in chain).

Looks like it is very specific to the encoding of files, and thus maybe this can never be fixed. And this only applies to .cue file referenced tracks, where stream is accessed not from the begining, but somewhere in the middle, and additionally it applies only to first skips in such scenario. Just for the information
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 24 March, 2013, 08:42:07 AM
I seem to have trouble triggering such behavior. Can you try if this test version (http://www.saunalahti.fi/~cse/temp/foo_skip.fb2k-component) works any better?
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 24 March, 2013, 06:05:41 PM
Sorry for the delay. Yes it works better - when I got series of skips, there is always only one glitch (at first skip) with .m4a tracks from .cue, and it doesn't happen with every track referenced from that particular .cue. Additionally it is noticeably shorter. Currently it is hard to determine the pitch of sound and actual content of this glitch (I can't guess what track was shuffled and skipped). Glitch seems to be longer when I play manually one of the .cue referenced tracks, and then next file that is shuffled is also one of .cue tracks - but it can be only my imagination. Situation with .mp3 tracks from .cue files doesn't changed so much. Possibly glitch is shorter, (if it isn't my imagination only), but it occurs.
FLAC tracks from .cue files play as they were playing before - properly
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 13 April, 2013, 06:58:46 AM
I managed to reproduce the glitching with the help of CPU Speed Adjuster (http://adrianboeing.com/tools.html). I tweaked some safety limits in the DSP part and now even with all cores fully stressed with slow.exe I heard no more glitching with cue+m4a. Updated version can be found here (http://www.foobar2000.org/components/view/foo_skip).
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 13 April, 2013, 07:36:35 AM
Thanks, will check/test it within next week
Title: foo_skip: skip tracks that match a specified search query
Post by: Nisto on 07 May, 2013, 11:17:54 AM
Paragraph edit: never mind, I missed the settings in the advanced section of fb2k, "skip even selected tracks"..

Also, am I supposed to have the DSP activated in order to utilize the SKIP tag? It doesn't seem to matter if I have it on or off; it still skips.
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 07 May, 2013, 12:45:19 PM
Quote
Track skipping has a few milliseconds of delay before activating which may allow beginning of gapless tracks to be heard. If you wish to have perfect glitchless skipping please add Skip Track as the last DSP in the DSP chain.
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 25 June, 2013, 09:10:32 AM
Hello Case. I have a request.
Can you split the "skip even manually selected tracks" to 2 :

If you'll split it I will check the first box to FALSE and the second to TRUE.
TIA.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 25 June, 2013, 03:47:50 PM
If you just want to skip silence you could use the Skip Silence DSP. But I might consider adding a new field for defining tracks that are always skipped in place of the "Skip even manually selected tracks" checkbox.
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 25 June, 2013, 06:37:29 PM
===========================================================
PART 1 (request):
Hello Case. I have a request.
Can you split the "skip even manually selected tracks" to 2 :
  • Skip by Query - even manually selected tracks (T/F)
  • Skip Silence - even manually selected tracks (T/F)

If you'll split it I will check the first box to FALSE and the second to TRUE.
TIA.

Oh No !! 
Sorry, I've mistakenly wrote "Skip Silence" instead of "Skip Parts".

So here is the correct request:

Can you split the "skip even manually selected tracks" to 2 :
  ===========================================================

Part 2 (a question):

As of the current foo_skip 1.7.8, if you check the "even manually selected tracks" box and manually click PLAY on a track that its SKIP tag has "skip-timecodes", the track is totally skipped (not just the "marked" parts) !!


Case, Is this the way you intended it to work ?


TIA

===========================================================

Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 25 June, 2013, 07:55:56 PM
Part 2 (a question):
As of the current foo_skip 1.7.8, if you check the "even manually selected tracks" box and manually click PLAY on a track that its SKIP tag has "skip-timecodes", the track is totally skipped (not just the "marked" parts) !!
Case, Is this the way you intended it to work ?

Oh No. Again I made a mistake and I don't know what to say. 
My part-2 question is false.(I've tested on tracks that have both skip-timecodes and are 1-starred...)
I'm deeply sorry...

Part-1 is correct.
Title: foo_skip: skip tracks that match a specified search query
Post by: the in sound from way out on 04 August, 2013, 10:20:05 AM
I've just given your component a try. I must have missed something, because nothing seems to happen, both with manually selected and automatically selected tracks. The Skip track component shows up in my components list though. Additionally I've added the Skip track DSP in the Active DSPs' list. Editing the tag scheme in Advanced options didn't fix anything (I'd rather skip tracks that I rated "-1", but these tracks are still playing normally as they would without the component). Is there anything else I should do? Thx for your help. 
Title: foo_skip: skip tracks that match a specified search query
Post by: tpijag on 04 August, 2013, 10:34:42 AM
Playback>skip tracks

Do you have that ticked?
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 29 August, 2013, 06:38:08 AM
I have a kind of request. Is it possible to let this component have a list of skip patterns so we can switch between them? I think about exactly the same thing as for Media Library exclusions list or files sorting patterns list or excluded file types list. At least 5 entries would be nice. I think it would require moving its config from Advanced Preferences to Tools section - this would be also more convenient for user.

In addition: I have performed many tests against problem that I reported last time (silent played first 16 seconds in manually selected files that are matching skipping pattern) and I can confirm that with v 1.7.8b problem was permanently eliminated.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 31 August, 2013, 05:13:42 PM
Well, in addition to my request I got a bug report. I wanted to try the difference between both ReplayGain modes (track and album). I opened Properties dialog and went to ReplayGain. After changing it the sound just disappeared. I tried it several times and I found the reason. It was tested on track that was tagged to be normally skipped when I listen to my music randomly (custom tag "KEYWORDS" filled with value "skip". After tag value was removed there was no problem... When tag was filled again with value "skip" then problem came back. The funny thing - after 16 seconds (same as previously) the sound just comes back. The question is - is it just side effect of using such option and we should just bear with it or is this a real bug and this should be fixed? In general it isn't frequent situation that someone plays manually tracks that should be skipped and switches RG modes while track is played.

My config:
foobar 1.2.9, my plugins:
Code: [Select]
Core (2013-07-10 12:45:36 UTC)
   foobar2000 core 1.2.9
foo_ac3.dll (2012-08-29 15:57:04 UTC)
   AC3 decoder 0.9.7
foo_adpcm.dll (2013-08-13 03:01:25 UTC)
   kode's ADPCM decoders 1.11
foo_albumlist.dll (2013-02-11 11:28:58 UTC)
   Album List 4.5
foo_amipwrapper.dll (2010-01-29 20:32:26 UTC)
   AMIP Wrapper 1.01
foo_asap.dll (2013-08-16 14:05:50 UTC)
   ASAP 3.1.5
foo_audioscrobbler.dll (2012-11-22 15:41:48 UTC)
   Audioscrobbler 1.4.7
foo_bestversion.dll (2013-03-20 15:00:29 UTC)
   Best Version Picker 0.1
foo_bitcompare.dll (2008-12-05 13:08:02 UTC)
   Binary Comparator 1.2
foo_bpm.dll (2010-04-20 11:35:08 UTC)
   BPM Analyser 0.2.4.1
foo_cdda.dll (2013-03-07 09:48:32 UTC)
   CD Audio Decoder 3.0
foo_converter.dll (2013-07-10 12:25:32 UTC)
   Converter 1.5
foo_convolve.dll (2013-03-27 20:18:27 UTC)
   Convolver 0.3
foo_deemph.dll (2013-02-08 17:43:34 UTC)
   De-emphasis postprocessor 0.0.3
foo_disccache.dll (2013-04-13 19:52:52 UTC)
   Disc cache warmer 0.0
foo_dsp_effect.dll (2013-02-19 18:43:44 UTC)
   Effect DSP 0.11
foo_dsp_eq.dll (2013-02-11 11:28:58 UTC)
   Equalizer 1.0
foo_dsp_eqsplit.dll (2008-07-13 00:49:10 UTC)
   Split equalizer v0.0.1
foo_dsp_fsurround.dll (2012-07-06 21:29:44 UTC)
   FreeSurround 0.9.0
foo_dsp_mm.dll (2008-06-06 04:29:12 UTC)
   Matrix Mixer 0.3
foo_dsp_resampler.dll (2013-03-27 19:01:33 UTC)
   SoX Resampler 0.8.3
foo_dsp_silence.dll (2009-08-09 23:32:54 UTC)
   Post-track silence 0.0.3
foo_dsp_std.dll (2013-07-10 12:25:50 UTC)
   Standard DSP Array 1.3
foo_dsp_vlevel20080302.0.dll (2008-03-02 22:42:06 UTC)
   VLevel 20080302.0
foo_dsp_xfeed.dll (2011-09-19 18:44:30 UTC)
   Crossfeed 0.1.3
foo_dsp_xgeq.dll (2012-02-05 11:11:22 UTC)
   Graphic Equalizer 0.3.7
foo_dsp_yac.dll (2013-03-27 20:02:35 UTC)
   Yet Another Convolver 1.1.0
foo_dumb.dll (2013-08-28 04:15:17 UTC)
   DUMB module decoder 1.0.50
foo_dynamicdsp.dll (2012-07-18 05:56:46 UTC)
   Dynamic DSP 1.0
foo_fileops.dll (2013-02-11 11:28:10 UTC)
   File Operations 2.2
foo_flv.dll (2012-12-29 06:00:00 UTC)
   Flash Video Decoder 0.9.6
foo_freedb2.dll (2013-02-11 11:27:56 UTC)
   Online Tagger 0.7
foo_gep.dll (2013-07-27 23:28:05 UTC)
   Game Emu Player 1.164
foo_hdcd.dll (2012-07-17 18:40:12 UTC)
   HDCD decoder 1.15
foo_input_adplug.dll (2013-05-05 17:57:08 UTC)
   AdPlug 1.44
foo_input_amr.dll (2009-03-05 19:20:06 UTC)
   AMR input 1.1.1
foo_input_celt.dll (2011-05-16 11:21:00 UTC)
   CELT Decoder 0.1.2
foo_input_ds.dll (2013-01-20 18:54:37 UTC)
   DirectShow input 0.1
foo_input_dsdiff.dll (2011-05-18 18:01:22 UTC)
   DSDIFF Decoder 1.4
foo_input_dts.dll (2013-01-30 14:21:04 UTC)
   DTS decoder 0.3.1
foo_input_dtshd.dll (2011-03-19 21:41:12 UTC)
   DTS-HD Decoder 0.1.3
foo_input_dvda.dll (2012-03-16 15:30:28 UTC)
   DVD-Audio Decoder and Watermark Detector 0.4.11
foo_input_exe.dll (2012-10-11 20:56:52 UTC)
   Command-Line Decoder Wrapper 0.4
foo_input_gsf.dll (2013-03-27 17:09:40 UTC)
   Highly Advanced 2.0.2
foo_input_ht.dll (2013-01-19 14:58:54 UTC)
   Highly Theoretical 2.0.37
foo_input_hvl.dll (2013-07-03 12:10:40 UTC)
   Hively Tracker decoder 1.13
foo_input_kdm.dll (2012-02-19 09:52:40 UTC)
   KDM Decoder 1.1
foo_input_monkey.dll (2013-04-13 10:40:08 UTC)
   Monkey's Audio Decoder 2.1.7
foo_input_ncsf.dll (2013-04-26 08:48:42 UTC)
   NCSF Decoder 1.7
foo_input_ofr.dll (2011-03-15 21:43:46 UTC)
   OptimFROG Lossless/DualStream Decoder 1.31
foo_input_org.dll (2012-02-19 09:53:10 UTC)
   Organya decoder 1.9
foo_input_qsf.dll (2012-12-31 16:30:44 UTC)
   Highly Quixotic 2.0.25
foo_input_reverse.dll (2009-01-05 18:47:00 UTC)
   Reverse Playback 0.1.4 (SSE)
foo_input_sacd.dll (2012-08-25 18:03:10 UTC)
   Super Audio CD Decoder 0.5.11
foo_input_shorten.dll (2009-11-15 19:46:36 UTC)
   Shorten decoder 0.4.2.2
foo_input_std.dll (2013-07-10 12:45:38 UTC)
   Standard Input Array 1.0
foo_input_tak.dll (2013-06-21 10:29:42 UTC)
   TAK Decoder 0.4.7
foo_input_tfmx.dll (2012-12-13 14:24:38 UTC)
   TFMX decoder 0.10
foo_input_tta.dll (2010-10-27 10:50:20 UTC)
   TTA Audio Decoder 3.2
foo_input_upse.dll (2012-12-22 09:42:24 UTC)
   UPSE PSF Decoder 1.8
foo_input_usf.dll (2011-06-26 17:16:54 UTC)
   LazyUSF 2.1 (Build Jun 26 2011)
foo_input_vgmstream.dll (2013-07-05 18:49:54 UTC)
   vgmstream plugin r1004-19-g8ebecb4
foo_input_zxtune.dll (2013-02-19 20:20:22 UTC)
   ZX Tune Player 0.0.1
foo_keep_queue.dll (2010-11-12 02:28:46 UTC)
   Keep Queue 0.3.5
foo_lnk.dll (2010-01-07 17:57:56 UTC)
   Shell Link Resolver 1.3.1
foo_lock.dll (2010-01-11 10:18:36 UTC)
   Pause on Lock 0.5
foo_masstag.dll (2013-03-27 20:20:17 UTC)
   Masstagger 1.8.4
foo_midi.dll (2013-08-23 01:15:35 UTC)
   MIDI synthesizer host 1.212
foo_musical_spectrum.dll (2012-11-21 06:00:00 UTC)
   Musical Spectrum 0.9.1
foo_nds.dll (2013-03-22 11:59:18 UTC)
   No Display Standby 1.1
foo_osd.dll (2012-12-17 18:28:20 UTC)
   On-Screen Display 1.73
foo_out_asio.dll (2012-06-06 13:19:14 UTC)
   ASIO support 2.1.2
foo_playcount.dll (2011-07-13 09:47:18 UTC)
   Playback Statistics 3.0.2
foo_psf.dll (2013-01-02 10:22:16 UTC)
   Highly Experimental 2.0.34
foo_queuecontents.dll (2011-12-31 12:30:56 UTC)
   Queue Contents Editor 0.5
foo_rg_trn.dll (2010-01-13 23:01:00 UTC)
   ReplayGain override 0.1.3
foo_rgscan.dll (2013-07-10 12:25:36 UTC)
   ReplayGain Scanner 2.2
foo_run.dll (2009-06-07 13:15:18 UTC)
   Run services 0.3.7
foo_seek.dll (2011-12-20 11:03:06 UTC)
   Seek 1.1
foo_seek_box.dll (2010-04-21 13:03:30 UTC)
   Seek box 0.0.3
foo_sendtodevice.dll (2013-03-11 16:20:22 UTC)
   Send to Device 1.1.2 [Nov 28 2007 - 10:13:31]
foo_sid.dll (2013-04-17 03:49:02 UTC)
   sidplay2 1.31
foo_skip.dll (2013-07-25 08:36:36 UTC)
   Skip Track 1.7.8b
foo_softplaylists.dll (2013-01-25 19:31:19 UTC)
   Soft Playlists 2012-10-10
foo_stop_on_current.dll (2009-06-18 03:54:52 UTC)
   Stop on Current 0.4
foo_timebomb.dll (2009-12-20 20:40:00 UTC)
   Timebomb 0.0.2
foo_ui_std.dll (2013-07-10 12:45:36 UTC)
   Default User Interface 0.9.5
foo_verifier.dll (2013-03-14 10:38:18 UTC)
   File Integrity Verifier 1.1.1
foo_vst.dll (2011-03-05 06:19:04 UTC)
   VST 2.4 adapter 0.9.0.3
foo_wave_seekbar.dll (2013-07-04 06:42:31 UTC)
   Waveform seekbar 0.2.40

My DSP Chain:
Dynamic DSP,
Skip Silence
Downmix multichannel to stereo
Convert mono to stereo
Playback Rate Shift
Skip Track

Dynamic DSP isn't used with 3 tracks that was additionally tested against this bug so shouldn't be blamed. currently I don't use any VST effects (despite I still haven't removed plugin for this)
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 01 September, 2013, 05:06:00 AM
That's definitely a bug. I'll see if I can simplify the logic to eliminate such issues. I wanted to comment so you know I have acknowledged the problem as it will take some time before I'll start working on it.
Title: foo_skip: skip tracks that match a specified search query
Post by: budeny on 01 October, 2013, 09:39:02 PM
I believe I have similar bug with SkipTrack:

When I click on playlist item to play then it often starts to play after 6-30 seconds delay. But if I select same file again, then it plays immediately. It worth to note that all my tracks are separate .flac files.
Looks like some caching issue to me..
Is there any way to get 1.7.4 version? I don't recall such behavior happening last year.

SkipTrack query:
Code: [Select]
(%rating% IS 1 OR %last_played% DURING LAST 240 HOURS) AND (NOT %rating% IS 5)


Thanks!
Title: foo_skip: skip tracks that match a specified search query
Post by: Nisto on 30 October, 2013, 03:20:55 PM
Any chance you can implement skipping parts of tracks by samples (e.g. -44100 instead of -00:00:01)?
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 30 October, 2013, 03:31:21 PM
Nisto - maybe foo_seek is able to fulfill your needs?
Title: foo_skip: skip tracks that match a specified search query
Post by: Nisto on 30 October, 2013, 04:00:02 PM
Not really. But thanks anyway.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 30 November, 2013, 03:38:55 AM
I have to report another unwanted behavior of latest foo_skip version (1.7.8).
My skip pattern is: %keywords% HAS flac OR %keywords% HAS skip OR %rating10% LESS 3 AND NOT %rating10% MISSING
What I did:
I disabled "Skip tracks and use bookmarks" option which is normally turned on. While I listened to the music I enabled it again. Track still played but there was no sound. I am not sure how long it was - I just tried to seek in this track and the sound turned back. I checked tags of this track and it turned out that it has "skip" keyword - which matches my skipping pattern.
So - sound was muted right after I enabled  "Skip tracks and use bookmarks" option while playing track that was matching skipping pattern. This is some glitch similar to the one with muted first 16 seconds of manually selected track, that matches skipping pattern.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 01 February, 2014, 07:30:31 AM
Any news ?
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 02 February, 2014, 07:45:19 AM
Sorry for the delay. The hacky nature of the component has forced some changes to the logic. The component now requires the DSP part and will automatically add it when required. I tried my best to fix the reported bugs for this beta version: removed

Edit: Removed the beta version as stable version (http://www.foobar2000.org/components/view/foo_skip) is released.
Title: foo_skip: skip tracks that match a specified search query
Post by: Jono on 26 February, 2014, 07:12:59 PM
For what it is worth, updating from the immediately previous version of this component to the newest has rendered fb2k (v1.3 and 1.3.1) unable to load it...on Windows XP (yeah, yeah, it's my old computer). The code I get is "Unknown Error Code 3221225501". It appears to be working just fine on my W7 machine, though, latest versions and all. Any idea why this might be?
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 27 February, 2014, 01:59:51 AM
Sorry about that. It was compiled with MSVC 2013, which by default uses SSE2 optimizations unless they are explicitly disabled in the settings. New version uploaded with SSE2 requirements turned off.
Title: foo_skip: skip tracks that match a specified search query
Post by: amiti on 27 February, 2014, 10:34:17 AM
I don't like that this plugin now adds itself to the dsp chain on its own. I liked the plugin but now , if this behavior keeps on I have to stay with the old version.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 27 February, 2014, 12:16:24 PM
Using the DSP was always requested as the component's response was otherwise delayed. Unless skipped tracks started with digital silence you could hear them start to play before anything could be done. This won't change back.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 03 March, 2014, 11:50:17 AM
Seems that something is seriously messed up... I checked my config and I am sure I have DESELECTED checkbox "skip even manually selected tracks" and I have Skip DSP as last (at bottom of list) in my DSP chain. What is happening? 
Lets say I got playlist: 20 tracks, first 10 tracks match current skip query (they contain specific KEYWORD tag value).
What I do: I play track 12 and I manually queue track 7. Track 12 ends. Track 7 is skipped (?!) and track 8 plays (??!!!!!). WTF?
Funny thing: if I queue track 7 and 8 one by one, then 7 is skipped and 8 plays fine...
Other messed behaviours:
If I manually start playing from first track then it plays normally till the end - as expected. Then 2nd track is skipped and 3rd played. Sometimes both 2nd and 3rd track are skipped, and 4th is played. When 4th track ends, then 5th or both 5th and 6th track are skipped and next track (6th or 7th - depending on how many tracks were properly skipped) plays normally. I want to remind: first 10 tracks match current skip query...
If I manually start playing from let's say - 3rd track - and while it is played I press "Next" button (from toolbar of from keyboard shortcut) then next track plays fine (????!!!!).

But silent stream bug seems to be eliminated[/u] in every scenario - manually queued track (but this time first queued track is always just skipped), tagging file while it is played (adding keyword that matches skip query while playing), enabling skipping functionality while playing track that matches skip query - none of them causes silent playing until you seek or wait 16-18 seconds.
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 03 March, 2014, 06:32:08 PM
Hello Case. I'm posting again a suggsstion/request , I've already suggested some months ago (Maybe you forgot about it).
Can you split the "skip even manually selected tracks" to 2 :
If you'll split it I will set the first box to FALSE and the second to TRUE.
  TIA.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 04 March, 2014, 09:51:54 AM
Seems that something is seriously messed up...

Version 1.8.2 uploaded that should fix the queue behavior. It now treats all queued tracks as manually selected. But I couldn't see any random behavior like you described, it always just skipped such tracks incorrectly.

Hello Case. I'm posting again a suggsstion/request , I've already suggested some months ago (Maybe you forgot about it).
Can you split the "skip even manually selected tracks" to 2 :
  • Skip by Query - even manually selected tracks (T/F) - behaves like the current "skip even manually selected tracks"
  • Skip Parts - even manually selected tracks (T/F) - skips timecodes even on manually selectted tracks.
If you'll split it I will set the first box to FALSE and the second to TRUE.
  TIA.

The logic simplifications I did for v1.8 actually already changed the time code skipping behavior. It's now always in effect unless the component is turned off. The old behavior was broken in my opinion.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 04 March, 2014, 10:57:15 AM
Hello,
It seems that it is bit more complicated as we both may think. Below there is detailed description what I did and what happened.
I closed foobar, updated component. I opened it. I used autoplaylist with my own ripped CDs to test. I selected one album and tagged it so now files have met skip query. I doubleclicked on 8th track from album and seek to about 10 sec before end. I queued tracks 3,4,5. Everything was fine - track 3 started after track 8. I seeked to nearly the end again, and again. After 5th track finished, 6 track was skipped and then 7th track started playing. So I noted that reported broken behavior persists. I performed few more tests, including playing "normal", untagged files and then queue those tagged to be skipped, to check if queue works fine (if first queued track is not skipped anymore). After some tests I noticed that program stopped skipping only first file after queue finishes and skips all consecutive files that meet skip query. I tried to check it few more times and everything was OK, so I restarted program. Unfortunately after restart everything is broken again and I can do nothing to make it work again.
I only noticed that now ALWAYS only one track is skipped from a row of tracks that meet skip query. So we got a comb: if I play last track before a list of files to be skipped, then foobar plays every even track that meets skip query. If I manually queue or diublecklick first file from such list, then foobar plays every odd track that meets skip query.

My current plugins:

Code: [Select]
Core (2013-07-10 12:45:36 UTC)
   foobar2000 core 1.2.9
foo_ac3.dll (2012-08-29 16:57:04 UTC)
   AC3 decoder 0.9.7
foo_adpcm.dll (2013-08-13 03:01:25 UTC)
   kode's ADPCM decoders 1.11
foo_albumlist.dll (2013-02-11 11:28:58 UTC)
   Album List 4.5
foo_amipwrapper.dll (2010-01-29 21:32:26 UTC)
   AMIP Wrapper 1.01
foo_asap.dll (2014-01-15 21:50:03 UTC)
   ASAP 3.1.6
foo_audioscrobbler.dll (2012-11-22 15:41:48 UTC)
   Audioscrobbler 1.4.7
foo_beatit.dll (2014-02-19 16:43:02 UTC)
   Beat It 0.2
foo_bestversion.dll (2013-03-20 16:00:29 UTC)
   Best Version Picker 0.1
foo_bitcompare.dll (2008-12-05 14:08:02 UTC)
   Binary Comparator 1.2
foo_cdda.dll (2013-03-07 09:48:32 UTC)
   CD Audio Decoder 3.0
foo_converter.dll (2013-07-10 12:25:32 UTC)
   Converter 1.5
foo_convolve.dll (2013-03-27 21:18:27 UTC)
   Convolver 0.3
foo_deemph.dll (2013-02-08 18:43:34 UTC)
   De-emphasis postprocessor 0.0.3
foo_devconsole.dll (2014-02-09 23:19:27 UTC)
   DevConsole 1.0.4async
foo_dsp_effect.dll (2013-02-19 19:43:44 UTC)
   Effect DSP 0.11
foo_dsp_eq.dll (2013-02-11 11:28:58 UTC)
   Equalizer 1.0
foo_dsp_eqsplit.dll (2008-07-13 01:49:10 UTC)
   Split equalizer v0.0.1
foo_dsp_fsurround.dll (2012-07-06 22:29:44 UTC)
   FreeSurround 0.9.0
foo_dsp_mm.dll (2008-06-06 05:29:12 UTC)
   Matrix Mixer 0.3
foo_dsp_resampler.dll (2013-03-27 20:01:33 UTC)
   SoX Resampler 0.8.3
foo_dsp_silence.dll (2014-01-27 20:34:20 UTC)
   Post-track silence 0.0.4
foo_dsp_std.dll (2013-07-10 12:25:50 UTC)
   Standard DSP Array 1.3
foo_dsp_vlevel20080302.0.dll (2008-03-02 22:42:06 UTC)
   VLevel 20080302.0
foo_dsp_xfeed.dll (2011-09-19 19:44:30 UTC)
   Crossfeed 0.1.3
foo_dsp_xgeq.dll (2012-02-05 12:11:22 UTC)
   Graphic Equalizer 0.3.7
foo_dsp_yac.dll (2013-03-27 21:02:35 UTC)
   Yet Another Convolver 1.1.0
foo_dumb.dll (2014-02-12 12:00:27 UTC)
   DUMB module decoder 1.0.72
foo_dynamicdsp.dll (2012-07-18 06:56:46 UTC)
   Dynamic DSP 1.0
foo_fileops.dll (2013-02-11 11:28:10 UTC)
   File Operations 2.2
foo_flv.dll (2012-12-29 07:00:00 UTC)
   Flash Video Decoder 0.9.6
foo_freedb2.dll (2013-02-11 11:27:56 UTC)
   Online Tagger 0.7
foo_gep.dll (2014-02-25 00:51:14 UTC)
   Game Emu Player 1.179
foo_hdcd.dll (2012-07-17 19:40:12 UTC)
   HDCD decoder 1.15
foo_input_adplug.dll (2013-05-05 17:57:08 UTC)
   AdPlug 1.44
foo_input_amr.dll (2009-03-05 20:20:06 UTC)
   AMR input 1.1.1
foo_input_celt.dll (2011-05-16 12:21:00 UTC)
   CELT Decoder 0.1.2
foo_input_ds.dll (2013-01-20 19:54:37 UTC)
   DirectShow input 0.1
foo_input_dsdiff.dll (2011-05-18 19:01:22 UTC)
   DSDIFF Decoder 1.4
foo_input_dts.dll (2014-02-16 03:56:42 UTC)
   DTS decoder 0.3.3
foo_input_dtshd.dll (2011-03-19 22:41:12 UTC)
   DTS-HD Decoder 0.1.3
foo_input_dvda.dll (2012-03-16 16:30:28 UTC)
   DVD-Audio Decoder and Watermark Detector 0.4.11
foo_input_exe.dll (2012-10-11 21:56:52 UTC)
   Command-Line Decoder Wrapper 0.4
foo_input_gsf.dll (2013-10-21 22:38:43 UTC)
   Highly Advanced 2.0.4
foo_input_ht.dll (2013-01-19 15:58:54 UTC)
   Highly Theoretical 2.0.37
foo_input_hvl.dll (2013-10-29 18:32:02 UTC)
   Hively Tracker decoder 1.14
foo_input_kdm.dll (2012-02-19 10:52:40 UTC)
   KDM Decoder 1.1
foo_input_monkey.dll (2013-04-13 10:40:08 UTC)
   Monkey's Audio Decoder 2.1.7
foo_input_ncsf.dll (2013-04-26 08:48:42 UTC)
   NCSF Decoder 1.7
foo_input_ofr.dll (2011-03-15 22:43:46 UTC)
   OptimFROG Lossless/DualStream Decoder 1.31
foo_input_orch.dll (2012-10-29 20:17:30 UTC)
   Orch-90 decoder 0.1.5
foo_input_org.dll (2012-02-19 10:53:10 UTC)
   Organya decoder 1.9
foo_input_qsf.dll (2012-12-31 17:30:44 UTC)
   Highly Quixotic 2.0.25
foo_input_reverse.dll (2009-01-05 19:47:00 UTC)
   Reverse Playback 0.1.4 (SSE)
foo_input_sacd.dll (2012-08-25 19:03:10 UTC)
   Super Audio CD Decoder 0.5.11
foo_input_shorten.dll (2014-01-03 19:46:18 UTC)
   Shorten decoder 0.4.2.3
foo_input_std.dll (2013-07-10 12:45:38 UTC)
   Standard Input Array 1.0
foo_input_tak.dll (2013-06-21 10:29:42 UTC)
   TAK Decoder 0.4.7
foo_input_tfmx.dll (2012-12-13 15:24:38 UTC)
   TFMX decoder 0.10
foo_input_upse.dll (2012-12-22 10:42:24 UTC)
   UPSE PSF Decoder 1.8
foo_input_usf.dll (2014-03-02 08:40:00 UTC)
   LazyUSF 2.2.8
foo_input_vgmstream.dll (2014-02-26 08:58:55 UTC)
   vgmstream plugin r1020-1-geeab20d
foo_input_vio2sf.dll (2014-02-27 00:31:27 UTC)
   2SF Decoder 0.24.5
foo_input_zxtune.dll (2013-02-19 21:20:22 UTC)
   ZX Tune Player 0.0.1
foo_jesus.dll (2010-09-23 01:34:06 UTC)
   Autosave & Autobackup 10
foo_keep_queue.dll (2010-11-12 03:28:46 UTC)
   Keep Queue 0.3.5
foo_lnk.dll (2010-01-07 18:57:56 UTC)
   Shell Link Resolver 1.3.1
foo_lock.dll (2010-01-11 11:18:36 UTC)
   Pause on Lock 0.5
foo_masstag.dll (2013-03-27 21:20:17 UTC)
   Masstagger 1.8.4
foo_midi.dll (2013-12-15 05:05:39 UTC)
   MIDI synthesizer host 1.229
foo_musical_spectrum.dll (2012-11-21 07:00:00 UTC)
   Musical Spectrum 0.9.1
foo_nds.dll (2013-03-22 12:59:18 UTC)
   No Display Standby 1.1
foo_osd.dll (2012-12-17 19:28:20 UTC)
   On-Screen Display 1.73
foo_out_asio.dll (2012-06-06 13:19:14 UTC)
   ASIO support 2.1.2
foo_playcount.dll (2011-07-13 10:47:18 UTC)
   Playback Statistics 3.0.2
foo_psf.dll (2013-09-14 20:45:52 UTC)
   Highly Experimental 2.0.36
foo_queuecontents.dll (2011-12-31 13:30:56 UTC)
   Queue Contents Editor 0.5
foo_rg_trn.dll (2010-01-14 00:01:00 UTC)
   ReplayGain override 0.1.3
foo_rgscan.dll (2013-07-10 12:25:36 UTC)
   ReplayGain Scanner 2.2
foo_run.dll (2009-06-07 14:15:18 UTC)
   Run services 0.3.7
foo_seek.dll (2011-12-20 12:03:06 UTC)
   Seek 1.1
foo_seek_box.dll (2010-04-21 14:03:30 UTC)
   Seek box 0.0.3
foo_sendtodevice.dll (2013-03-11 17:20:22 UTC)
   Send to Device 1.1.2 [Nov 28 2007 - 10:13:31]
foo_sid.dll (2013-04-17 03:49:02 UTC)
   sidplay2 1.31
foo_skip.dll (2013-04-13 11:35:16 UTC)
   Skip Track 1.7.8        <<<< It's just because I reverted plugin to previous version before I've made a report
foo_snesapu.dll (2013-10-27 07:00:41 UTC)
   SNESAPU input 0.80
foo_softplaylists.dll (2013-01-25 19:31:19 UTC)
   Soft Playlists 2012-10-10
foo_stop_on_current.dll (2009-06-18 04:54:52 UTC)
   Stop on Current 0.4
foo_timebomb.dll (2009-12-20 21:40:00 UTC)
   Timebomb 0.0.2
foo_ui_std.dll (2013-07-10 12:45:36 UTC)
   Default User Interface 0.9.5
foo_verifier.dll (2013-03-14 11:38:18 UTC)
   File Integrity Verifier 1.1.1
foo_vst.dll (2011-03-05 07:19:04 UTC)
   VST 2.4 adapter 0.9.0.3
foo_wave_seekbar.dll (2014-02-08 21:37:10 UTC)
   Waveform seekbar 0.2.45

Currently I don't use any VST plugins and I use normal DS output. My DSP chain is still the same:
Dynamic DSP
Skip Silence
Matrix Mixer
Downmix multichannel to stereo
Convert mono to stereo
Playback Rate Shift
Skip Track
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 04 March, 2014, 11:34:25 AM
Could you test without the Dynamic DSP component? It's the one mysterious element causing possible changes to the DSP chain and I'd like to know if removing it helps.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 05 March, 2014, 07:16:39 AM
OK, I'll try it later but honestly I don't expect change. This component is triggered only when appropiate tags are inside file. I got about 100-120 files that uses this component, and files that I used to test 1.8.1 and 1.8.2 weren't the ones that contain DSP_CHAIN tags.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 06 March, 2014, 07:06:05 AM
EpicForever, I could reproduce similar random functionality with foo_playlist_attributes installed. A fixed version is uploaded.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 06 March, 2014, 07:43:42 AM
Hello again,
Sorry I haven't tested v 1.8.2 without Dynamic DSP... However I already tested v 1.8.3. I noticed only one glitch. Again I have playlist where first 10 tracks matches skipping query. If you disable plugin's functionality from menu, then play track which matches skipping query (let's say 1st) and turn on skipping again, while this track is played back, then 2 situations may happen:
1. next track isn't skipped and plays normally till the end, and after that everything starts working correctly - all tracks from 3 to 10 are skipped
2. next track is skipped, but 3rd track plays normally, and after it ends everything starts working correctly - all tracks from 4 to 10 are skipped
It happens only when track plays normally till the end. If I manually change track (press "Next" button") then everything works fine.

In about 8 testes 2nd scenario happened only once. It is related only to enabling skipping function while track which matches skipping pattern is played. Anyway I think that such situation is so rare that it doesn't need quick fixing if any. Thank you so much for your effort
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 06 March, 2014, 01:23:37 PM
It seems that improper closing of foobar also messes... After closing foobar from taskmanager and restarting it misbehaviour of foo_skip seems to be back...
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 06 March, 2014, 01:47:35 PM
Well, after that forced close everything seems to be working permanently incorrectly - again tracks are not skipped, pressing "Next" button doesn't cause track to be skipped. I even tried to get back to 1.7.8, restart, close, put 1.8.3 again and everything is still broken...
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 07 March, 2014, 06:06:28 AM
I give up. I can not reproduce any problems apart from the slow reaction to being turned on while playing. I have tried adding Dynamic DSP all the other DPSs you use and tested different configurations and as long as the component is enabled skipping works 100% reliably.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 07 March, 2014, 07:47:40 AM
OK, so I will try to perform investigation on my own, but I can't declare any deadline when it will be finished.
Title: foo_skip: skip tracks that match a specified search query
Post by: -AdZero- on 08 March, 2014, 05:17:49 PM
Hi !

foo_skip is not anymore in the official foobar2000 plugin repository ?
I saw an update a few days ago but now it isn't even listed.

Any idea ?

Thanks.
Title: foo_skip: skip tracks that match a specified search query
Post by: Hazey on 09 April, 2014, 12:43:02 PM
I've also noticed that it's gone! I hope it's coming back. I just did a reinstall of foobar and deleted my plugins, thinking I could just download them again. I had no problems with foo_skip fwiw, I really hope it comes back.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 20 April, 2014, 05:54:47 AM
New version uploaded (http://www.foobar2000.org/components/view/foo_skip).
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 22 April, 2014, 11:03:51 AM
Installed the new 1.8.4, released on 2014-04-20The documentation promises 3 more fields but they don't work for me ["Skip  query also offers $rand() field to generate random number from 0 to  2^32-1. %playlist_name% returns the name of the playlist where the  current file is played from. And %playback_order% returns the playback  order name."]
The plugin itself works ok (the skipping part).
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 22 April, 2014, 03:03:48 PM
No one can help you if you don't post the script(s) you attempted to use which utilizes those fields.
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 22 April, 2014, 04:49:45 PM
It seems that my foobar completely doesn't recognize these 3 new fields.
I've added 3 fields to the playlist view (see screenshot) with these patterns:

test1 - %playlist_name%
test2 - $rand()
test3 - %playback_order%
http://i.imgur.com/8j6Talw.png (http://i.imgur.com/8j6Talw.png)

So @BenB, there's no complicated script to post.

Foobar2000 1.2.9 (without Column-UI)
Win 7
Title: foo_skip: skip tracks that match a specified search query
Post by: db1989 on 22 April, 2014, 04:53:10 PM
Quote
Skip query also offers
Which means only in the query. This isn’t extended across the entirety of fb2k. So, no, they aren’t going to work in the playlist view or anywhere else except in the skip query.
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 22 April, 2014, 04:54:33 PM
those fields are only available for use by the component itself.

file>preferences>advanced>playback>skip tracks>skip track query

the script that goes here is what BenB is talking about.

edit: too slow.
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 22 April, 2014, 05:34:12 PM
Ohh sorry  !! ... I thought these 3 fields were like the %SKIP% field...Is there a chance that one day they become recognized outside the skip function ?
Anyway, thank you @BenB, @db1989 and @marc2003.
Title: foo_skip: skip tracks that match a specified search query
Post by: Robertina on 22 April, 2014, 08:12:52 PM
Since I know about the existence of the $rand()-function I fail to imagine how I could make use of it.

For the application/fb2k itself there is this little restriction (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference#.24rand.28.29) to bear in mind:

Quote
Available only in sort-related contexts, such as the Edit → Sort → Sort by ... menu command.

foo_skip may allow to combine any usage combination with $rand() but could someone please give me a concrete example how he utilizes this function?
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 22 April, 2014, 10:47:41 PM
http://www.hydrogenaudio.org/forums/index....st&p=822070 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=99068&view=findpost&p=822070)
http://www.hydrogenaudio.org/forums/index....st&p=825468 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=30361&view=findpost&p=825468)

Title: foo_skip: skip tracks that match a specified search query
Post by: Robertina on 22 April, 2014, 10:55:46 PM
Thank you, BenB.

It's clear now for me.
Title: foo_skip: skip tracks that match a specified search query
Post by: wolterstorff on 23 April, 2014, 03:06:27 PM
hey folks,

i've a little problem with 'foo_skip' (latest version 1.8.4): i've also installed 'foo_playcount' which provides the attribut 'play_count' and my skip query is the following:
Code: [Select]
$ifgreater(%play_count%,0,1,0)
also tried
ifgreater(%play_count%,0,1,0)
for skipping all tracks which where played at least one time. 'skip tracks & use bookmarks' in the 'playback'-menu is enabled, the option 'skip even manually selected tracks' is also enabled. But none of the tracks are skipped.

Don't know if it's important: the tracks in the playlist aren't in the library, the where enqueued via Windows explorer resp. Total Commander. - But the values for the attribute 'play_count' are shown in the playlist. i also use columns ui.

All software / components are in the latest / actual versions, OS is Windows 8.1 64bit.

any ideas?
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 23 April, 2014, 04:05:19 PM
You must use Query Syntax (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax).
Title: foo_skip: skip tracks that match a specified search query
Post by: wolterstorff on 23 April, 2014, 10:19:58 PM
You must use Query Syntax (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Query_syntax).


thanks, this works.


w.
Title: foo_skip: skip tracks that match a specified search query
Post by: ZhuGeLiang on 27 April, 2014, 11:59:23 AM
Skip Track (for Converter) doesn't seem to work with tags that reference the end of the file (e.g. 3:45-).

I converted two tracks, the first file's skip tag = -20, the second file's skip tag = 3:45-. The first was converted and honored the skip tag but the second didn't.

Here is the console output.
Code: [Select]
CLI encoder: flac.exe
Destination file: C:\Download\Convert\Nirvana - Unplugged In New York - 01 - About A Girl.flac
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
one or more bad chunks removed from dsp chunk list
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\Program Files (x86)\Tools\Audio\flac.exe" -s --ignore-chunk-sizes -0 - -o "Nirvana - Unplugged In New York - 01 - About A Girl.flac"
Working folder: C:\Download\Convert\
Encoder process still running, waiting...
Encoder process terminated cleanly.
Track converted successfully.
Total encoding time: 0:00.671, 295.08x realtime
CLI encoder: flac.exe
Destination file: C:\Download\Convert\Nirvana - Unplugged In New York - 02 - Come As You Are.flac
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\Program Files (x86)\Tools\Audio\flac.exe" -s --ignore-chunk-sizes -0 - -o "Nirvana - Unplugged In New York - 02 - Come As You Are.flac"
Working folder: C:\Download\Convert\
Encoder process still running, waiting...
Encoder process terminated cleanly.
Track converted successfully.
Total encoding time: 0:00.811, 313.07x realtime
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 27 April, 2014, 12:50:17 PM
I wanted to ask for something that was said in the past, but I couldn't find it...
DSP part of this component should be:
- last in DSP chain (bottom of the list) or
- first in the DSP chain (top of the list) ?
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 27 April, 2014, 12:57:11 PM
Last
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 27 April, 2014, 03:18:56 PM
Thanks for the bug report, ZhuGeLiang. I have uploaded a fixed version.

EpicForever, indeed placing the DSP part last seemed to work best in my testings. It can still behave a bit badly if other DSPs modify audio chunks behind its back, for example Skip Silence working its magic right before a skipped track. If I remember correctly, having output buffer longer than silence skip duration makes track skip take place while old track is still being played. But this is is all from memory and I may be mistaken.
Title: foo_skip: skip tracks that match a specified search query
Post by: diypig on 28 April, 2014, 06:57:56 AM
anyway to use this, or something similar, so that tracks will be skipped if the title included something like 'instrumental'?
i really appreciate it, thanks!
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 28 April, 2014, 07:00:18 AM
Code: [Select]
title HAS instrumental
Title: foo_skip: skip tracks that match a specified search query
Post by: diypig on 28 April, 2014, 07:39:09 AM
Code: [Select]
title HAS instrumental


i should have worked that out myself, sorry, i don't know why i didn't realize that sooner, but thanks for the help, it works perfectly
Title: foo_skip: skip tracks that match a specified search query
Post by: -AdZero- on 28 April, 2014, 09:12:34 AM
Thanks for the bug report, ZhuGeLiang. I have uploaded a fixed version.


Hi !

I just upgraded to version 1.8.5 and the problem with the skip for end part doesn't seem to be fixed. I've got a lots of files with skip tags to play only a portin in the middle of the track (for instance : -01:32;01:48-) but only the beginning is skipped. The playback continues til the end of the track.

Anyway, thanks for this very useful plugin !
Title: foo_skip: skip tracks that match a specified search query
Post by: ZhuGeLiang on 28 April, 2014, 10:11:15 AM
Thanks for the bug report, ZhuGeLiang. I have uploaded a fixed version.


Hi !

I just upgraded to version 1.8.5 and the problem with the skip for end part doesn't seem to be fixed. I've got a lots of files with skip tags to play only a portin in the middle of the track (for instance : -01:32;01:48-) but only the beginning is skipped. The playback continues til the end of the track.

Anyway, thanks for this very useful plugin !


Case, thanks for the update. I can confirm the same issue. Here are the results of my testing.

SKIP=-30 works in playback and converter mode.
SKIP=30- works in playback and converter mode.
SKIP=-10;30- only honors the beginning tag in playback mode and doesn't honor either in converter mode.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 28 April, 2014, 01:25:53 PM
Multipart skipping was actually also broken during playback. I uploaded version 1.8.6 which should finally solve partial skipping issues.
Title: foo_skip: skip tracks that match a specified search query
Post by: ZhuGeLiang on 28 April, 2014, 02:39:03 PM
Multipart skipping was actually also broken during playback. I uploaded version 1.8.6 which should finally solve partial skipping issues.


Thanks for the quick fix! Everything seems to be working now.
Title: foo_skip: skip tracks that match a specified search query
Post by: TuNk77 on 30 April, 2014, 12:16:32 PM
Multipart skipping was actually also broken during playback. I uploaded version 1.8.6 which should finally solve partial skipping issues.


v1.8.6 occasionally plays tracks marked for skipping. I loaded a playlist with 2620 tracks that is supposed to be skipped, but some of them play, despite having a rating of 1.
I use foobar2000 v1.3.2, the only other DSP loaded is "skip silence". Using windows 7 x64, fresh install last week with all the latest drivers etc.
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 30 April, 2014, 01:02:33 PM
It seems like I remember reading about an issue involving the buffer length and Skip Silence's "Minimum silence duration to activate removal." I want to say that when one is longer than the other the occurrence interferes with foo_skip, but I don't recall which has to be longer and how much longer to trigger it (and tbh I might be confusing foo_skip with another component so hopefully someone more knowledgeable will comment).

Anyhow, did you disable Skip Silence to see if that remedied the situation?

Maybe I'm interpreting this incorrectly:
Quote
I loaded a playlist with 2620 tracks that is supposed to be skipped

but why would you play a playlist with thousands of tracks meant to be skipped?
Title: foo_skip: skip tracks that match a specified search query
Post by: TuNk77 on 30 April, 2014, 01:31:52 PM
It seems like I remember reading about an issue involving the buffer length and Skip Silence's "Minimum silence duration to activate removal." I want to say that when one is longer than the other the occurrence interferes with foo_skip, but I don't recall which has to be longer and how much longer to trigger it (and tbh I might be confusing foo_skip with another component so hopefully someone more knowledgeable will comment).

Anyhow, did you disable Skip Silence to see if that remedied the situation?

Maybe I'm interpreting this incorrectly:
Quote
I loaded a playlist with 2620 tracks that is supposed to be skipped

but why would you play a playlist with thousands of tracks meant to be skipped?


I was just testing the new release of foo_skip (v1.8.6), disabling "skip silence" did not make any difference. "Full file buffering" is set to 0 KB in advance settings. Buffer length is set to 1000 ms, under playback>output.

foo_skip v1.7.4 does skip all tracks that is rated 1
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 30 April, 2014, 03:23:21 PM
Interesting find. After your post I went to test this and reproduced the problem after 1500 skips. Apparently the core occasionally calls playback callbacks before DSPs so the newly moved skip check can't trigger. I'll hack together a fix later.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 01 May, 2014, 05:46:44 AM
Fixed version uploaded. Perhaps this fixes the problem EpicForever experienced.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 01 May, 2014, 06:21:23 AM
Hello. I feel bit ashamed but I haven't time to make any serious tests... I stick to last version that worked OK and had bugs only when I changed ReplayGain mode while track was played (1.7.6 I think?). Sorry but I changed duties in my job and I need to work at home to quickly fit in...
May I ask here - how exactly it was with foo_skip_silence minimum duration of silence to remove and audio buffer length? Which one should be longer to not interfere with foo_skip? Maybe all those things should be added at component's website - that DSP should be added as last in chain and that thing about buffer and silence duration removal limit?
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 01 May, 2014, 03:24:35 PM
Case, could you review my post here:
http://www.hydrogenaudio.org/forums/index....st&p=864706 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=96094&view=findpost&p=864706)  ?

Maybe that was in fact my fault... I don't have time to test it yet. But that's something to think about...

EDIT:
But anyway - all Skip Track related problems that I reported occurred only for tracks that weren't tagged to trigger Dynamic DSP. I just never tried any problematic scenario on any of them - not by accident nor intentionally.
Title: foo_skip: skip tracks that match a specified search query
Post by: TuNk77 on 02 May, 2014, 06:30:41 AM
Fixed version uploaded. Perhaps this fixes the problem EpicForever experienced.


Thank you very much Case, the plugin works as it should now. I loaded the 2620 tracks marked as skip and it skips all tracks, I let foobar2000 skip those 2620 tracks for 5 minutes and it skipped all
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 03 May, 2014, 09:59:52 AM
how exactly it was with foo_skip_silence minimum duration of silence to remove and audio buffer length? Which one should be longer to not interfere with foo_skip? Maybe all those things should be added at component's website - that DSP should be added as last in chain and that thing about buffer and silence duration removal limit?

Note that this buffer length issue is not foo_skip's bug. Real playback and what core reports as being played back seem to go out of sync if a DSP such as Skip Silence alters track lengths behind its back. For some reason there's no problem as long as output buffer is shorter than the removed amount. Here's an example screenshot of what happens when output buffer is 30 seconds long and Skip Silence DSP is set to trim silence after three seconds: (https://hydrogenaud.io/imgcache.php?id=5d1a39e2aedfd952d61cc9ede47ef3c6" rel="cached" data-warn="External image, click to view at original size" data-url="http://i.imgur.com/7MjzHPJ.png)

Tracks 17 to 98 are nothing but silence. Speakers are still playing back ending of track 16 and spectrum visualizer shows signal properly from the playback, but foobar's playback callbacks are reporting that track 95 is already playing.

There is no way for Skip Track to know what really comes out of the speakers and it has to rely on the playback callback to give accurate information. If I had kept Skip Track enabled in this example scenario and it had wanted to skip these silent tracks, about 27 seconds of the 16th track's ending would have gone unheard. Core would have reported too early that track 17 is being played back and the component would have instructed core to jump to the next track.

It seems that the DSP order is no longer relevant actually. At least I didn't notice any effect with that in my testing. The previous differences I had observed must have been from bugs.

Case, could you review my post here:
http://www.hydrogenaudio.org/forums/index....st&p=864706 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=96094&view=findpost&p=864706)

Would be helpful if you could test the latest version and see what happens with it. DSP chain changes during playback or having the DSP in the chain multiple times should have no negative effects anymore.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 03 May, 2014, 10:28:08 AM
Note that this buffer length issue is not foo_skip's bug. Real playback and what core reports as being played back seem to go out of sync if a DSP such as Skip Silence alters track lengths behind its back. For some reason there's no problem as long as output buffer is shorter than the removed amount. Here's an example screenshot of what happens when output buffer is 30 seconds long and Skip Silence DSP is set to trim silence after three seconds: [removed image]

As far as I can remember not so long time ago (Feb/Mar) I changed (lowered) the amount of silence to removed by this DSP to 1,5 sec. And from many many many tears my output buffer is set to 2 sec... Maybe that's a reason why at some moment foo_skip started having problems in my foobar?
And by the way - I didn't mean that there is a bug - I just think that this known interference with silence removal function should be explained in description of Skip Track plugin  . Just to lower the amount of unnecessary bug reports.
Title: foo_skip: skip tracks that match a specified search query
Post by: kheops on 11 June, 2014, 11:52:14 AM
hi gang
i'm using foo_skip 1.8.7
with a previous version, of course i don't remember which one it was, i was use to hear the very beginning of a song even when it was skipped as when you wanted to change the channel with these old machines
(https://hydrogenaud.io/imgcache.php?id=5f00c5949ea7c1235b2cc5b565c7b217" rel="cached" data-warn="External image, click to view at original size" data-url="http://radio-piffret.pagesperso-orange.fr/Transistors_RADIO_CELARD_Microcapte_1959.JPG)

is there a way to get back to this old behavior with the new foo_skip, it let's me know that my foobar is still looking for a song to play, but with no luck till now

thanks a bunch
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 11 June, 2014, 11:57:02 AM
That's something that was carefully cured from foo_skip, something which cause further development - removing this short moment of any track that is not intended to be played.
Something that you want is generally unwanted behavior. You just need to install back older version.
Title: foo_skip: skip tracks that match a specified search query
Post by: kheops on 14 June, 2014, 02:39:39 AM
That's something that was carefully cured from foo_skip, something which cause further development - removing this short moment of any track that is not intended to be played.
Something that you want is generally unwanted behavior. You just need to install back older version.

thanks a lot EpicForever for the answer
"this short moment of any track that is not intended to be played" your words are far better than mine, i might go to an older version as you said
Title: foo_skip: skip tracks that match a specified search query
Post by: jazzthieve on 06 July, 2014, 12:27:20 AM
Can foo_skip be active only on specific playlists? I was thinking since %playlist_name% can be used in a skip query it would perhaps look something like this to exclude rated songs only on named playlist:
Code: [Select]
%Rating% PRESENT AND %playlist_name% IS Rock Music

But that doesn't seem to work, how exactly and under what circumstances would one use %playlist_name%?
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 06 July, 2014, 02:37:56 AM
Try:
Code: [Select]
%playlist_name% IS "Rock Music" AND %rating% PRESENT
Title: foo_skip: skip tracks that match a specified search query
Post by: jazzthieve on 06 July, 2014, 03:54:05 AM
No, that doesn't work either.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 06 July, 2014, 06:43:52 AM
Both of those strings were correct. It was broken a few versions back when all logic was moved to the DSP and playlist functions are invalid in that context. I uploaded a fixed version.
Title: foo_skip: skip tracks that match a specified search query
Post by: jazzthieve on 06 July, 2014, 07:20:54 AM
Yep, works fine now with latest version 1.8.8, thanks.
Title: foo_skip: skip tracks that match a specified search query
Post by: Nisto on 18 July, 2014, 08:36:00 AM
Small bug(?) in foobar 1.3.3 (I just updated foobar2000 from 1.2.9 to 1.3.3 final, and then the Skip Track component from 1.8.7 to 1.8.8 -- no difference in regards to this issue between 1.8.7 and 1.8.8 on foobar2000 1.3.3): if you have the Skip Track query in advanced settings set to nothing (or even "0"), it will continuously skip all tracks. I have had no value in the Skip Track query setting since I started using it..

For now, the temporary fix I found was to set it to 0 IS 1 (I only use the component to skip parts of tracks (via tags))
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 19 July, 2014, 03:35:06 PM
Fixed in just released v1.8.9 (http://www.foobar2000.org/components/view/foo_skip).
Title: foo_skip: skip tracks that match a specified search query
Post by: Nisto on 20 July, 2014, 06:09:19 AM
Coolio, thanks Case!
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 20 July, 2014, 08:18:54 AM
there is a very hard conflict between the new bookmark function and the preview function of foo_seek (http://www.hydrogenaudio.org/forums/index.php?showtopic=88654&view=findpost&p=758085) that ends with deleted bookmark tag. I already asked grimes in german foobar2000 forum for a way to override bookmark functionality by automaticall deactivating toggle-option "skip tracks & use bookmarks" in main-menu if enabled. To describe the conflicht: If you are previewing some tracks and the preview reaches a song with bookmark track then the preview begins from the timepoint defined in seek controls advanced preferences and the bookmark tag gets deleted. No idea what is going on.


I encounter a conflict between the latest foo_skip and foo_bookmarks. If a file has a skip tag and is also bookmarked, when you double-click on the bookmark to start your file from that point, foo_skip takes over and starts the file from the beginning+the skip tag, so the bookmark becomes useless.
Title: foo_skip: skip tracks that match a specified search query
Post by: maxim7191 on 20 July, 2014, 10:52:43 AM
I have problem using this component. It skip tracks only when I press "next track" button, but not automatically when playback moves to next track by itself. I think it may be because I have foo_playlist_attributes installed but I'm not sure.
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 20 July, 2014, 10:59:35 AM
I have problem using this component. It skip tracks only when I press "next track" button, but not automatically when playback moves to next track by itself. I think it may be because I have foo_playlist_attributes installed but I'm not sure.


I have to both of your plug-ins, but don't encounter this bug. So there must be another cause.
Title: foo_skip: skip tracks that match a specified search query
Post by: maxim7191 on 20 July, 2014, 12:01:15 PM
I have problem using this component. It skip tracks only when I press "next track" button, but not automatically when playback moves to next track by itself. I think it may be because I have foo_playlist_attributes installed but I'm not sure.


I have to both of your plug-ins, but don't encounter this bug. So there must be another cause.


thank you for reply. I just deleted playlist attributes and foo_skip works again. So maybe it depends on the settings. Im testing with %rating% IS 1 query
Title: foo_skip: skip tracks that match a specified search query
Post by: dfkt on 21 July, 2014, 03:52:39 PM
I'm skipping tracks based on various keywords found in the %comment% tag field:

Code: [Select]
comment HAS LQ OR comment HAS Incomplete OR comment HAS Noisy OR comment HAS Corrupt OR comment HAS Dropouts


... is it possible to make that query somewhat prettier/slimmer, or do I have to repeat the "comment HAS <blah> OR" all the time, as I do now?
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 04 August, 2014, 12:33:05 PM
I encounter a conflict between the latest foo_skip and foo_bookmarks. If a file has a skip tag and is also bookmarked, when you double-click on the bookmark to start your file from that point, foo_skip takes over and starts the file from the beginning+the skip tag, so the bookmark becomes useless.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 05 August, 2014, 12:52:02 PM
I assume you mean this (http://www.hydrogenaud.io/forums/index.php?s=&showtopic=46612&view=findpost&p=413000) component. Took a while to find since the thread title speaks about foo_uie_bookmarks. I couldn't replicate the seeking problem but hopefully things work okay for you in v1.9 (http://www.foobar2000.org/components/view/foo_skip).
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 06 August, 2014, 11:40:36 AM
Thank you for fixing the this problem so quickly and sorry for the ambiguity. This bug is indeed fixed in v. 1.9.
Title: foo_skip: skip tracks that match a specified search query
Post by: garbanzo.bean on 26 August, 2014, 09:37:35 AM
Great component - very useful!

Would it be possible to implement a flag that can be called with something like %isskip% so we can check whether skip is ON or OFF? It would be useful for creating a visual status indicator. For example, if skip is ON, I would gray-out the title of all tracks that are going to be skipped, so I can instantly see if something won't be played.

Thanks!
Title: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 26 August, 2014, 10:17:31 AM
Would it be possible to implement a flag that can be called with something like %isskip% so we can check whether skip is ON or OFF? It would be useful for creating a visual status indicator. For example, if skip is ON, I would gray-out the title of all tracks that are going to be skipped, so I can instantly see if something won't be played.

Depending on what you are using in 'File/Preferences/Advanced/Playback/Skip tracks' as the query, you might be able to replicate the query syntax with titleformatting syntax, which can be then used to do what you want. For example:
Code: [Select]
%length_seconds% LESS 30

Code: [Select]
$ifgreater(%length_seconds%,30,,SKIPPED)

Some queries might be very painful to replicate so not to say what you propose isn't useful.
Title: foo_skip: skip tracks that match a specified search query
Post by: garbanzo.bean on 26 August, 2014, 11:08:50 AM
Thanks Daeron. You're absolutely right, but that's only half of what I want to accomplish. I want to use $if statements and replicate the skip query to determine if a track will be skipped when skip is turned on, but I need another $if to check if skip is turned on or off under Playback - Skip tracks & use bookmarks. That's where something like %isskip% would come in handy - not to check if a track would be skipped, but to check if the skip function is ON or OFF.

That way, if a track is set to be skipped AND the skip function is turned on, the track will be grey. But if a track is set to be skipped and the skip function is turned off, it will be normal color.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 30 August, 2014, 02:26:55 PM
I have some problem again. Sometimes manual selection of track that should be skipped (because of keyword or rating mathing skipping query) requires doublecklicking on file even 10 times... But when I put such file in queue, then it is played OK. I use v 1.9 of foo_skip
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 30 August, 2014, 04:02:06 PM
Thanks Daeron. You're absolutely right, but that's only half of what I want to accomplish. I want to use $if statements and replicate the skip query to determine if a track will be skipped when skip is turned on, but I need another $if to check if skip is turned on or off under Playback - Skip tracks & use bookmarks. That's where something like %isskip% would come in handy - not to check if a track would be skipped, but to check if the skip function is ON or OFF.

That way, if a track is set to be skipped AND the skip function is turned on, the track will be grey. But if a track is set to be skipped and the skip function is turned off, it will be normal color.

Tracks are not "set to be skipped." Playback must engage on a track before foo_skip can determine if it should be skipped. The developer has designed the component so that you don't hear the split second blurb of each skipped track while the skip query is evaluated.

It's beyond the purpose (and probably the capability) of title formatting to query for the status of a component, at least as far as I've been able to determine.
Title: foo_skip: skip tracks that match a specified search query
Post by: haloeight on 14 September, 2014, 04:03:43 PM
Is anyone finding foo_skip behaving haphazardly lately? I haven't yet identified potential causes, but lately it seems tracks that would previously get skipped with criteria %last_played% DURING LAST 4 WEEKS now play. Sometimes it skips properly, sometimes it doesn't.

Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 14 September, 2014, 04:41:29 PM
Well... I must say you are right haloeight. I haven't enough time to properly investigate it, all I can say is that for sure I found problem with manually selected files. I have some track on autoplaylist, that should be normally skipped. But this time I want to play it. I doubleclick it and foobar skips it. I doubleclick it once, two times three times... and sometimes it's enough and sometimes I need to make 10 tries. While sometimes it works properly at first time. Selecting files into queue works OK - I havem't situation when queued file was skipped. But I found situations when file that should be skipped, wasn't skipped at all. My plugins list haven't changed (maybe some of them were updated), my skipping patterns haven't changed (keywords + low rating) - only foobar was updated from 1.2.9 to 1.3.2 about 2 months ago...
Title: foo_skip: skip tracks that match a specified search query
Post by: haloeight on 14 September, 2014, 04:49:00 PM
Thanks...I also have been thinking the only change to my setup has been upgraded fb2k versions. I can't remember what exact version I started noticing this but it seems a relatively recent development (over the past 3-4 months).

Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 20 September, 2014, 04:14:30 PM
I found some bugs which I fixed in version 1.9.1 (http://www.foobar2000.org/components/view/foo_skip). Hopefully I got all the issues you have seen.
Title: foo_skip: skip tracks that match a specified search query
Post by: Maynor on 27 September, 2014, 01:06:33 AM
Been using this component for years. Became pretty indispensable.

I've got a request, don't know about feasibility though. I usually have 2 different Skip Track queries I use, depending on if I want to discover new stuff or if I want to listen to the best I have. Changing from one to the other is a pain. Would it be possible to implement multiple queries, and a drop down UI element to switch between queries (or just a checkbox to switch in the propreties)?

This might be too much work though, I have no idea. If there's an alternative, I'd like to know.

Thanks
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 27 September, 2014, 05:20:58 PM
@Maynor - exactly my thoughts:
http://www.hydrogenaud.io/forums/index.php...st&p=843279 (http://www.hydrogenaud.io/forums/index.php?s=&showtopic=30361&view=findpost&p=843279)
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 29 September, 2014, 04:23:29 PM
I have no GUI experience and the documentation I found didn't help me in creating a WTL listview I wanted. I would have liked to make a dialog similar to Default UI's custom grouping scheme configuration where you define a short name and the string associated with it. Then one could quickly pick the wanted option from a named entry in main menu.
But since that is beyond my skills I had to settle for a compromise. In the new version (http://www.foobar2000.org/components/view/foo_skip) configuration is now on its own page under main Preferences screen and query is implemented as a drop down list with history. It's still faster to change between values than with the old method. Entries can be removed from the right click context menu of the arrow icon.
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 29 September, 2014, 04:43:36 PM
Thanks, will try it during the weekend I hope
Title: foo_skip: skip tracks that match a specified search query
Post by: Maynor on 30 September, 2014, 01:47:29 AM
Hey thanks a lot! Didn't expect a version so quick!

Just installed it. And I like the fact that it's in the Tools section, quickly accessible. On first impression, there's one thing: if the Skip track query is longer than the drop down dialog entry length, you can't scroll right to edit it. Might be a limitation in the drop down dialog itself though.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 30 September, 2014, 04:57:19 AM
Sorry about that. Fixed version uploaded.
Title: foo_skip: skip tracks that match a specified search query
Post by: Seren on 30 September, 2014, 11:22:30 AM
Sorry if I'm missing some documentation already available but how can I have tracks be skipped if I've recently skipped them (or do they count as recently played?). I have my playlist being played as Shuffle (tracks).
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 30 September, 2014, 03:08:30 PM
This component doesn't track manual skips. If some component keeps track of such behavior and exposes this info through titleformatting then you could utilize it. Though perhaps there's a workaround way if you have Playback Statistics (http://www.foobar2000.org/components/view/foo_playcount) installed. If you for example know that you have played all your good tracks in the last two weeks you could use skip query NOT %last_played% DURING LAST 2 WEEKS. Or if you know you don't have many plays for the tracks you want to skip you could use something like %play_count% LESS 5.
Title: foo_skip: skip tracks that match a specified search query
Post by: Seren on 01 October, 2014, 12:35:36 PM
This component doesn't track manual skips. If some component keeps track of such behavior and exposes this info through titleformatting then you could utilize it. Though perhaps there's a workaround way if you have Playback Statistics (http://www.foobar2000.org/components/view/foo_playcount) installed. If you for example know that you have played all your good tracks in the last two weeks you could use skip query NOT %last_played% DURING LAST 2 WEEKS. Or if you know you don't have many plays for the tracks you want to skip you could use something like %play_count% LESS 5.


Aww... Well thanks for the reply.
I don't want to skip the tracks completely, I like listening to an old song every now and then but depends on my mood. Sometimes I skip a track halfway-through if I'm not in the mood and hence it doesn't count as a play.
I still do need to work out something to play songs that I rarely listen to less often and your suggestion gives me an idea, thanks!
Title: foo_skip: skip tracks that match a specified search query
Post by: D.Sync on 23 October, 2014, 03:28:24 AM
Hi there. Is there anyway to store the BOOKMARK tag in custom database using foo_customdb instead of modifying the music source file? I've tried to create a custom field in foo_customdb but the tag is still written in the source.
Title: foo_skip: skip tracks that match a specified search query
Post by: wir3k on 02 November, 2014, 08:53:53 AM
Can somone explain me point by point how to make SKIP=-<time> work cuz when i simply set SKIP=-0:01:25 in Skip Track Query it doesnt work to any of the songs when i double click song or click play next song.
Just a short guide step by step how to make it work would be appreciate btw. all i care about is to be able to play all songs in playlist from the middle for example or at least from 1 minute.
THANKS
Title: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 02 November, 2014, 09:03:57 AM
you don't put anything in the skip preferences.

you actually need to tag your files with a SKIP tag. right click your file(s) in a playlist and select Properties. now right click a blank area and select Add new field. in the Field name: section, type in SKIP. in Field value:, you can enter the time.
Title: foo_skip: skip tracks that match a specified search query
Post by: wir3k on 02 November, 2014, 12:55:54 PM
works thanks you are a BOSS

is there a way in foobar to add value to all of the songs, not one by one  ?

also i loved the idea to keep skip info not in tags but in separate file looking forward for it .
Title: foo_skip: skip tracks that match a specified search query
Post by: AsVHEn on 06 November, 2014, 08:04:54 AM
Hi, first of all, you did a great plugin man .
I don't know if someone had this problem before but if not I believe is relevant. foo_skip doesn't work properly if Crossfader is activated (actual version 1.3.5, and 1.1.9 too beacuse I tried first without update ).
foobar skips 1 rated songs at start if you had resume activated, with >| |< buttons, but not when is normaly playing (so, is almost useless when crossfader is on ).
Thank you again for do it.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 06 November, 2014, 11:50:10 AM
Should be fixed in the 1.9.5 (http://www.foobar2000.org/components/view/foo_skip) version.
Title: foo_skip: skip tracks that match a specified search query
Post by: AsVHEn on 06 November, 2014, 01:24:02 PM
Should be fixed in the 1.9.5 (http://www.foobar2000.org/components/view/foo_skip) version.

Donwloaded, installed and checked. Good work .
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 03 December, 2014, 12:33:33 PM
This component seems to be living its own life
It isn't very often situation in general, but I think I should report it - so Developer could decide whether to search for problem or not. Honestly I don't feel this as an urgent problem.

What is going on?
I have set play mode to Shuffle (Tracks). It shuffled 5 "wrong" tracks in a row so while 5th was playing I decided to turn on skipping. After ca 1-2 seconds (my buffer is set to 1000ms) music just stopped. Cursor was going forward, but not VU Meter nor Peak Meter showed any animation. Track was played silently. Reproducibility - 100%. After turning skipping of - music got back after the same time 1-2 seconds (I think it is all about buffer length). Skipping was meant to be triggered via specific value in my own KEYWORDS tag (in this case word "skip"). However manual playing of any skipping query-matching track (doubleclick on playlist) or via Queue function works fine. Also skipping many tracks in a row works flawlessly. So all basic functions are OK.

Full skipping query:
%keywords% HAS flac OR %keywords% HAS skip OR %rating10% LESS 3 AND NOT %rating10% MISSING

Components installed:
Code: [Select]
Core (2014-11-29 07:52:32 UTC)
   foobar2000 core 1.3.6
foo_ac3.dll (2012-08-29 16:57:04 UTC)
   AC3 decoder 0.9.7
foo_adpcm.dll (2013-08-13 03:01:25 UTC)
   kode's ADPCM decoders 1.11
foo_albumlist.dll (2014-11-29 07:51:22 UTC)
   Album List 4.5
foo_amipwrapper.dll (2010-01-29 21:32:26 UTC)
   AMIP Wrapper 1.01
foo_asap.dll (2014-06-23 12:43:41 UTC)
   ASAP 3.2.0
foo_audioscrobbler.dll (2012-11-22 15:41:48 UTC)
   Audioscrobbler 1.4.7
foo_beatit.dll (2014-07-10 16:08:18 UTC)
   Beat It 0.3
foo_bestversion.dll (2013-03-20 16:00:29 UTC)
   Best Version Picker 0.1
foo_bitcompare.dll (2008-12-05 14:08:02 UTC)
   Binary Comparator 1.2
foo_bpm.dll (2014-06-24 19:36:49 UTC)
   BPM Analyser 0.2.4.6
foo_cdda.dll (2014-11-29 07:50:28 UTC)
   CD Audio Decoder 3.0
foo_converter.dll (2014-11-29 07:50:48 UTC)
   Converter 1.5
foo_convolve.dll (2013-03-27 21:18:27 UTC)
   Convolver 0.3
foo_deemph.dll (2013-02-08 18:43:34 UTC)
   De-emphasis postprocessor 0.0.3
foo_devconsole.dll (2014-02-09 23:19:27 UTC)
   DevConsole 1.0.4async
foo_dsp_effect.dll (2014-11-01 02:22:14 UTC)
   Effect DSP 0.15
foo_dsp_effect_nodeemph.dll (2014-11-01 11:12:21 UTC)
   Effect DSP 0.15
foo_dsp_eq.dll (2014-11-29 07:51:34 UTC)
   Equalizer 1.0
foo_dsp_eqsplit.dll (2008-07-13 01:49:10 UTC)
   Split equalizer v0.0.1
foo_dsp_fsurround.dll (2012-07-06 22:29:44 UTC)
   FreeSurround 0.9.0
foo_dsp_mm.dll (2008-06-06 05:29:12 UTC)
   Matrix Mixer 0.3
foo_dsp_multiresampler.dll (2014-08-19 08:03:41 UTC)
   MultiResampler 1.0.0
foo_dsp_resampler.dll (2013-03-27 20:01:33 UTC)
   SoX Resampler 0.8.3
foo_dsp_silence.dll (2014-01-27 20:34:20 UTC)
   Post-track silence 0.0.4
foo_dsp_std.dll (2014-11-29 07:51:12 UTC)
   Standard DSP Array 1.3
foo_dsp_vlevel20080302.0.dll (2008-03-02 22:42:06 UTC)
   VLevel 20080302.0
foo_dsp_xfeed.dll (2011-09-19 19:44:30 UTC)
   Crossfeed 0.1.3
foo_dsp_xgeq.dll (2012-02-05 12:11:22 UTC)
   Graphic Equalizer 0.3.7
foo_dsp_yac.dll (2013-03-27 21:02:35 UTC)
   Yet Another Convolver 1.1.0
foo_dumb.dll (2014-11-11 01:16:19 UTC)
   DUMB module decoder 1.0.137
foo_dynamicdsp.dll (2014-04-03 21:01:43 UTC)
   Dynamic DSP 1.0
foo_fileops.dll (2014-11-29 07:50:56 UTC)
   File Operations 2.2.1
foo_flv.dll (2012-12-29 07:00:00 UTC)
   Flash Video Decoder 0.9.6
foo_freedb2.dll (2014-11-29 07:51:00 UTC)
   Online Tagger 0.7
foo_gep.dll (2014-10-30 03:21:58 UTC)
   Game Emu Player 1.180
foo_hdcd.dll (2012-07-17 19:40:12 UTC)
   HDCD decoder 1.15
foo_input_adplug.dll (2014-06-13 22:45:29 UTC)
   AdPlug 1.46
foo_input_amr.dll (2009-03-05 20:20:06 UTC)
   AMR input 1.1.1
foo_input_celt.dll (2011-05-16 12:21:00 UTC)
   CELT Decoder 0.1.2
foo_input_ds.dll (2013-01-20 19:54:37 UTC)
   DirectShow input 0.1
foo_input_dsdiff.dll (2011-05-18 19:01:22 UTC)
   DSDIFF Decoder 1.4
foo_input_dts.dll (2014-02-16 03:56:42 UTC)
   DTS decoder 0.3.3
foo_input_dtshd.dll (2011-03-19 22:41:12 UTC)
   DTS-HD Decoder 0.1.3
foo_input_dvda.dll (2012-03-16 16:30:28 UTC)
   DVD-Audio Decoder and Watermark Detector 0.4.11
foo_input_exe.dll (2012-10-11 21:56:52 UTC)
   Command-Line Decoder Wrapper 0.4
foo_input_gsf.dll (2014-11-26 05:22:06 UTC)
   Highly Advanced 2.0.8
foo_input_ht.dll (2014-11-26 05:22:07 UTC)
   Highly Theoretical 2.0.40
foo_input_hvl.dll (2014-04-12 01:46:52 UTC)
   Hively Tracker decoder 1.16
foo_input_kdm.dll (2012-02-19 10:52:40 UTC)
   KDM Decoder 1.1
foo_input_monkey.dll (2013-04-13 10:40:08 UTC)
   Monkey's Audio Decoder 2.1.7
foo_input_ncsf.dll (2014-11-26 05:22:08 UTC)
   NCSF Decoder 1.11
foo_input_ofr.dll (2011-03-15 22:43:46 UTC)
   OptimFROG Lossless/DualStream Decoder 1.31
foo_input_orch.dll (2012-10-29 20:17:30 UTC)
   Orch-90 decoder 0.1.5
foo_input_org.dll (2012-02-19 10:53:10 UTC)
   Organya decoder 1.9
foo_input_qsf.dll (2014-11-26 05:22:07 UTC)
   Highly Quixotic 2.0.28
foo_input_reverse.dll (2009-01-05 19:47:00 UTC)
   Reverse Playback 0.1.4 (SSE)
foo_input_sacd.dll (2012-08-25 19:03:10 UTC)
   Super Audio CD Decoder 0.5.11
foo_input_shorten.dll (2014-01-03 19:46:18 UTC)
   Shorten decoder 0.4.2.3
foo_input_std.dll (2014-11-29 07:52:32 UTC)
   Standard Input Array 1.0
foo_input_tak.dll (2013-06-21 10:29:42 UTC)
   TAK Decoder 0.4.7
foo_input_tfmx.dll (2012-12-13 15:24:38 UTC)
   TFMX decoder 0.10
foo_input_upse.dll (2012-12-22 10:42:24 UTC)
   UPSE PSF Decoder 1.8
foo_input_usf.dll (2014-11-29 08:15:39 UTC)
   LazyUSF 2.2.23
foo_input_v2m.dll (2014-07-01 19:18:48 UTC)
   V2M Decoder 0.2.1
foo_input_vgmstream.dll (2014-10-19 23:50:58 UTC)
   vgmstream plugin r1039-9-gc96d86b
foo_input_vio2sf.dll (2014-11-26 05:22:10 UTC)
   2SF Decoder 0.24.11
foo_input_zxtune.dll (2013-02-19 21:20:22 UTC)
   ZX Tune Player 0.0.1
foo_jesus.dll (2010-09-23 01:34:06 UTC)
   Autosave & Autobackup 10
foo_keep_queue.dll (2010-11-12 03:28:46 UTC)
   Keep Queue 0.3.5
foo_lnk.dll (2010-01-07 18:57:56 UTC)
   Shell Link Resolver 1.3.1
foo_lock.dll (2010-01-11 11:18:36 UTC)
   Pause on Lock 0.5
foo_masstag.dll (2013-03-27 21:20:17 UTC)
   Masstagger 1.8.4
foo_midi.dll (2014-11-23 09:04:18 UTC)
   MIDI synthesizer host 1.233
foo_musical_spectrum.dll (2012-11-21 07:00:00 UTC)
   Musical Spectrum 0.9.1
foo_nds.dll (2013-03-22 12:59:18 UTC)
   No Display Standby 1.1
foo_osd.dll (2012-12-17 19:28:20 UTC)
   On-Screen Display 1.73
foo_out_asio.dll (2012-06-06 13:19:14 UTC)
   ASIO support 2.1.2
foo_playcount.dll (2011-07-13 10:47:18 UTC)
   Playback Statistics 3.0.2
foo_psf.dll (2014-11-26 05:22:06 UTC)
   Highly Experimental 2.0.40
foo_queuecontents.dll (2011-12-31 13:30:56 UTC)
   Queue Contents Editor 0.5
foo_rg_trn.dll (2010-01-14 00:01:00 UTC)
   ReplayGain override 0.1.3
foo_rgscan.dll (2014-11-29 07:50:28 UTC)
   ReplayGain Scanner 2.2.1
foo_run.dll (2009-06-07 14:15:18 UTC)
   Run services 0.3.7
foo_seek.dll (2014-04-24 04:50:40 UTC)
   Seek 1.2
foo_seek_box.dll (2010-04-21 14:03:30 UTC)
   Seek box 0.0.3
foo_sendtodevice.dll (2013-03-11 17:20:22 UTC)
   Send to Device 1.1.2 [Nov 28 2007 - 10:13:31]
foo_sid.dll (2014-04-01 00:52:11 UTC)
   sidplay2 1.32
foo_skip.dll (2014-11-06 17:42:22 UTC)
   Skip Track 1.9.5
foo_snesapu.dll (2013-10-27 07:00:41 UTC)
   SNESAPU input 0.80
foo_softplaylists.dll (2013-01-25 19:31:19 UTC)
   Soft Playlists 2012-10-10
foo_stop_on_current.dll (2009-06-18 04:54:52 UTC)
   Stop on Current 0.4
foo_timebomb.dll (2009-12-20 21:40:00 UTC)
   Timebomb 0.0.2
foo_ui_std.dll (2014-11-29 07:52:32 UTC)
   Default User Interface 0.9.5
foo_verifier.dll (2014-09-08 11:44:38 UTC)
   File Integrity Verifier 1.1.2
foo_vst.dll (2011-03-05 07:19:04 UTC)
   VST 2.4 adapter 0.9.0.3
foo_wave_seekbar.dll (2014-02-08 21:37:10 UTC)
   Waveform seekbar 0.2.45

DSP chain (in exact order):
Dynamic DSP (please note - it is used by less than 50 tracks in my collection and it uses very easy configuration)
Skip Silence
Matrix Mixer (the truth is that I rarely use it/change its default "diagonal all 1" config)
Downmix channels to stereo
Convert mono to stereo
Playback Rate Shift (mostly unused, but sometimes I play everything on +3%...)
Skip Track


I don't remember - should I use "Skip Track" DSP as lat or as first?
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 03 December, 2014, 02:26:10 PM
Thanks, fixed in 1.9.6 (http://www.foobar2000.org/components/view/foo_skip).
Title: foo_skip: skip tracks that match a specified search query
Post by: EpicForever on 03 December, 2014, 02:38:33 PM
Wow...
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 04 January, 2015, 01:43:58 PM
I encounter a conflict between the latest foo_skip and foo_bookmarks. If a file has a skip tag and is also bookmarked, when you double-click on the bookmark to start your file from that point, foo_skip takes over and starts the file from the beginning+the skip tag, so the bookmark becomes useless.


Hi Case,
in skip v. 1.9.6 this conflict with foo_bookmarks (or foo_bookmarks) seems to have come back again.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 05 January, 2015, 04:36:00 PM
Should be fixed now.
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 07 January, 2015, 02:19:48 AM
Should be fixed now.


Thank you for the fix.
Title: foo_skip: skip tracks that match a specified search query
Post by: HHHHH on 07 January, 2015, 11:23:04 AM
Hello all,
I have gone through all the past posts but I can't seem to figure this out.
I mainly use foo_skip for skipping parts of a track, never to skip entire tracks. Therefore I use the SKIP tag per track.
I have no problem skipping the beginning of a track, however it never works for skipping the end part.
Here is an exemple of a tag: SKIP=-0:02.7; 02:36-  (This very track is 2:58 long)
Do I have a problem with the syntax?

Also, here are all the active DSPs :


I also use a buffer length of 1700ms.

BTW I have updated to the last version 1.9.7 of foo_skip.
Thanks in advance for your pointers!!!
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 07 January, 2015, 11:59:05 AM
Try moving Skip track (AKA foo_skip) to the bottom of the DSP chain.

Also, I suggest formatting your SKIP tags as illustrated in earlier posts, namely -0:00:00;0:00:00-.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 07 January, 2015, 02:20:14 PM
Removing the space after the semicolon makes it see the end part. It seems my parsing is a bit too strict about the syntax.
Title: foo_skip: skip tracks that match a specified search query
Post by: HHHHH on 09 January, 2015, 09:24:28 AM
Thanks for your replies.
I removed all others DSPs and left only Skip Track, as well as formatted the tag to SKIP=-0:00:02.7;00:02:36-, but all to no avail.

It still ignores the end part...

Could it be a conflict with another component?
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 09 January, 2015, 12:55:36 PM
Remove SKIP= from the tag value as it's inclusion is unnecessary. I didn't realize you were formatting your values with it. I just tried foo_skip with it included and foo_skip ignored the second value like you're experiencing.

EDIT:

Forgot to say leading zeroes and colons also proved to be unnecessary in my tests.
Title: foo_skip: skip tracks that match a specified search query
Post by: HHHHH on 09 January, 2015, 04:42:05 PM
Remove SKIP= from the tag value as it's inclusion is unnecessary. I didn't realize you were formatting your values with it. I just tried foo_skip with it included and foo_skip ignored the second value like you're experiencing.

EDIT:

Forgot to say leading zeroes and colons also proved to be unnecessary in my tests.


Wow, thanks BenB! That did it for me indeed! It was a smart thing to try to remove the SKIP= part and I'm glad you did!
Now it works like a charm to skip the end part of a track and indeed, there is no need for the leading zeros. Thanks!

However now that this works, I'm running into a new issue: as mentioned in one of my previous comments, I use the "Skip silence" and "Affix silence" (foo_dsp_silence) DSPs to remove any silence in the beginning and end of a track and affix a 3s silence gap between tracks. I couldn't verify it before making the foo_skip DSP work but now I see that my setup doesn't work for those tracks whose end has been skipped using the SKIP tag: it just continues to the next track without adding the 3s silence...

I tried to put the Skip track DSP at the beginning of the DSPs chain as well as at the end but it made no difference.

Do you have any pointer again? Thanks in advance for your precious help!
Title: foo_skip: skip tracks that match a specified search query
Post by: Everyoneisinsideofme on 16 January, 2015, 01:12:27 PM
Hello, sorry for my stupid question but how can I skip a track that is under 24 bits per sample? I tried: %Bitrate%, %Bits_per_sample%, %Bits per sample%, %Bits%  + IS 16

Hope someone can help me. I couldn't find the answerer by searching this topic either.
Title: foo_skip: skip tracks that match a specified search query
Post by: Case on 16 January, 2015, 04:33:17 PM
"$info(bitspersample)" LESS 24
Title: foo_skip: skip tracks that match a specified search query
Post by: Everyoneisinsideofme on 17 January, 2015, 05:22:40 AM
"$info(bitspersample)" LESS 24


Thank you ! Is there a list with all possible "codes" ?
Title: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 17 January, 2015, 05:28:39 AM
Thank you ! Is there a list with all possible "codes" ?

http://wiki.hydrogenaud.io/index.php?title...tting_Reference (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference)
http://wiki.hydrogenaud.io/index.php?title...00:Query_syntax (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Query_syntax)
Title: foo_skip: skip tracks that match a specified search query
Post by: Everyoneisinsideofme on 18 January, 2015, 07:19:53 PM
Thank you ! Is there a list with all possible "codes" ?

http://wiki.hydrogenaud.io/index.php?title...tting_Reference (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference)
http://wiki.hydrogenaud.io/index.php?title...00:Query_syntax (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Query_syntax)



thank you very much daeron! thanks a lot for the kind help! : ) great forum
Title: foo_skip: skip tracks that match a specified search query
Post by: DaAwesomeP on 29 January, 2015, 08:58:32 PM
Hi I just installed this plugin, but it is not working. I added the SKIP to tag an album, so all the songs have the SKIP tag with a value of 1. My filter:
Code: [Select]
$if2(%SKIP%,0)

However, foo_skip does not skip the songs. I added the following to my status bar, and it is showing that Foobar2000 sees the SKIP tag fine:
Code: [Select]
$if(%SKIP%, '('usually skipped')',)


Any help is greatly appreciated,
DaAwesomeP
Title: foo_skip: skip tracks that match a specified search query
Post by: BenB on 29 January, 2015, 10:09:42 PM
Use query syntax (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Query_syntax):

Code: [Select]
%skip% PRESENT

or
Code: [Select]
%skip% IS 1

etc.
Title: foo_skip: skip tracks that match a specified search query
Post by: DaAwesomeP on 29 January, 2015, 10:42:09 PM
Use query syntax (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Query_syntax):

Code: [Select]
%skip% PRESENT

or
Code: [Select]
%skip% IS 1

etc.

That works perfectly! Thank you!
Title: foo_skip: skip tracks that match a specified search query
Post by: Wolfbane on 27 July, 2015, 12:20:56 PM
How do I want to type if I want to skip the first 20sec of a song and skip the last 20 sec of song but play everything between. ?
And lets say the song is 5:20min long.
Title: foo_skip: skip tracks that match a specified search query
Post by: Speech on 27 July, 2015, 02:32:36 PM
How do I want to type if I want to skip the first 20sec of a song and skip the last 20 sec of song but play everything between. ?
And lets say the song is 5:20min long.

Read this thread and you will find out.
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 27 July, 2015, 04:38:06 PM
How do I want to type if I want to skip the first 20sec of a song and skip the last 20 sec of song but play everything between. ?
And lets say the song is 5:20min long.

track properties > Tools > add new field... > <SKIP>

-00:00:10  starts at  00:00:10 (also a simple -10 works)
00:02:30-  ends at  00:02:30  (also a simple x- to skip the last x seconds)

To start at  00:00:10 and end at 00:02:30 . You have 2 options:

Title: foo_skip: skip tracks that match a specified search query
Post by: Pure_BY on 17 August, 2015, 05:36:27 PM
Hello there! thanks for the great plug-in! I'm trying to set it up so it skips tracks with rating 1 or 2.

The default code is %rating% IS 1 .

Among other I've tried the following:
%rating% IS 1 OR 2 *
%rating% IS $or(1,2)
%rating% OR 1,2
*
[blockquote]* + all kinds of alternative separators[/blockquote]It does not work. What am I doing wrong?
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 17 August, 2015, 05:43:24 PM
(%rating% IS 1) OR (%rating% IS 2)

Title: foo_skip: skip tracks that match a specified search query
Post by: Pure_BY on 17 August, 2015, 05:46:52 PM
(%rating% IS 1) OR (%rating% IS 2)

Thanks for such quick reply! It worked, cool! didn't think if that myself.
Title: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 17 August, 2015, 06:14:09 PM
@Pure_BY, You can use the next pattern to fine-tune the relation between the rating of the track and the chance of it to be played.

Code: [Select]
 (%rating% IS 0 AND "$mod($rand(),100)" GREATER 75) OR (%rating% IS 1 AND "$mod($rand(),100)" GREATER 25) OR (%rating% IS 2 AND "$mod($rand(),100)" GREATER 25) OR (%rating% IS 3 AND "$mod($rand(),100)" GREATER 75) OR (%rating% IS 4 AND "$mod($rand(),100)" GREATER 90)

Explanation : for example (%rating% IS 1 AND "$mod($rand(),100)" GREATER 25) means that if the track's rating is 1 then the chance for it to be played is 25%

If you totally don't want to play the rating 1 tracks replace the "rating 1 part" with (%rating% IS 1)

You can take the pattern and change the "weights" of all the "rating parts" as you personally want.

Title: foo_skip: skip tracks that match a specified search query
Post by: Pure_BY on 22 August, 2015, 07:59:18 PM
Explanation : for example (%rating% IS 1 AND "$mod($rand(),100)" GREATER 25) means that if the track's rating is 1 then the chance for it to be played is 25%
If you totally don't want to play the rating 1 tracks replace the "rating 1 part" with (%rating% IS 1)
You can take the pattern and change the "weights" of all the "rating parts" as you personally want.

Wow, this is amazing! I never knew this was possible. Loved SkipTrack feature, however it was always a very 'hard measure'. I'm really an album listener, so sometimes I'd like to hear even the tracks which I dislike -- for the completeness.

I'll start with simple pattern: 0.2 chance for rating 1, 0.4 chance for rating 2. Will check how that works out, maybe I'll tweak it a little later.
Code: [Select]
(%rating% IS 1 AND "$mod($rand(),100)" GREATER 20) OR (%rating% IS 2 AND "$mod($rand(),100)" GREATER 40)

Any idea where I can find more info on such commands, etc.?

Big thanks for this great tip!
Title: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 22 August, 2015, 08:45:51 PM
http://wiki.hydrogenaud.io/index.php?title...tting_Reference (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference)
http://wiki.hydrogenaud.io/index.php?title...00:Query_syntax (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Query_syntax)
Title: foo_skip: skip tracks that match a specified search query
Post by: Coreda on 07 October, 2015, 08:31:58 PM
Feature suggestion: I'd love to see the ability to use the contents of a playlist for foo skip's exclusion data.

Eg: create a playlist named 'Skip' then in the Skip Track preferences set the 'Skip' playlist as the exclusion list.

That makes it easier for users who use '1' ratings for tracks but don't want them to be skipped, while providing a simple method of excluding single tracks.
Title: foo_skip: skip tracks that match a specified search query
Post by: warbaque on 22 October, 2015, 09:09:54 PM
I'd like to have a quick key that when pressed:
1) marks current song to be skipped in the future
2) goes to next track

How could I achieve this?
Title: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 22 October, 2015, 09:41:47 PM
^ File/Preferences/Keyboard shortcuts. You can only assign one command to one key therefore you will need two of them.

If you really want it on a single button, look into macros (lots of keyboard/mouse drivers provide these) or something like AutoHotkey which can simulate key presses for you.
Title: foo_skip: skip tracks that match a specified search query
Post by: warbaque on 22 October, 2015, 11:14:42 PM
^ File/Preferences/Keyboard shortcuts. You can only assign one command to one key therefore you will need two of them.

If you really want it on a single button, look into macros (lots of keyboard/mouse drivers provide these) or something like AutoHotkey which can simulate key presses for you.

Ok, macro it is then

Do I need to enable ratings to make 'skip track' to work and how do I make keyshortcut for "set rating for current song to 1"
Title: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 23 October, 2015, 06:10:52 AM
Install something like foo_quicktag (and fiddle with its options), which will provide that command to be bindable on the keyboard preferences page.
Title: foo_skip: skip tracks that match a specified search query
Post by: warbaque on 23 October, 2015, 07:47:25 PM
Thanks, works perfectly

Skipping if '%skip% IS TRUE'
Added 'Skip=SKIP' to the standard fields.
Global shortkey for 'set <SKIP> to TRUE'.
And macro that calls shortkey and next track.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Coreda on 16 January, 2016, 03:19:46 PM
Feature suggestion: I'd love to see the ability to use the contents of a playlist for foo skip's exclusion data.

Eg: create a playlist named 'Skip' then in the Skip Track preferences set the 'Skip' playlist as the exclusion list.

That makes it easier for users who use '1' ratings for tracks but don't want them to be skipped, while providing a simple method of excluding single tracks.

Bumping for feedback. @Case ?
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 16 January, 2016, 05:03:29 PM
I think you can use %playlist_name% to do that...

Code: [Select]
NOT %playlist_name% IS Skip AND %rating% IS 1
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Coreda on 16 January, 2016, 08:29:00 PM
I think you can use %playlist_name% to do that...

Code: [Select]
NOT %playlist_name% IS Skip AND %rating% IS 1

Tested but doesn't appear to work. The track I tested was skipped because it was rated 1 star rather than because it was in a playlist named 'Skip'. Tried also:

Code: [Select]
%playlist_name% IS Skip

But this had the effect of not playing any tracks. Really would be useful to just be able to set a playlist of skippable tracks, and without the need to rate them.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 16 January, 2016, 09:00:59 PM
Oh whoops, I read that completely wrong.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 16 January, 2016, 09:14:54 PM
I think there's some confusion here.

From what I understand you want to create a playlist that will essentially serve as a blacklist (or whitelist) for tracks that you want to skip. In other words, you want contents of a specific playlist affect (the same) tracks in OTHER playlists.

The problem is foobar generally works on a track by track basis. %playlist_name% will return the name of the playlist you are playing the current song from. If you play the song directly from your 'Skip' playlist, it will return 'Skip'. But if you play the same song from another playlist, it will return something else and the foo_skip check will fail, even if the same track can also be found in the playlist 'Skip'. %playlist_name% does not list all occurrences the track has in other playlists, only the current one.

Which means what you are looking for can't be done with the tools we currently have.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 16 January, 2016, 09:41:47 PM
I could probably script something to do it but the track changes may not be entirely seamless. I'll test and report back.

edit: I tried it and it was fine for me but YMMV.

Requires WSH panel mod or JScript panel. You can find the latter via the link in my signature.

Code: [Select]
var t = tracks_to_skip();

function on_playback_new_track() {
var handle = fb.GetNowPlaying();
if (!handle)
return;
var p = handle.Path.toLowerCase();
for (var i = 0; i < t.length; i++) {
if (t[i] == p)
return fb.Next();
}
}

function tracks_to_skip() {
var a = [];
for (var i = 0; i < plman.PlaylistCount; i++) {
if (playlist_name_is_skip(i)) {
var items = plman.GetPlaylistItems(i);
for (var j = 0; j < items.Count; j++) {
a.push(items.Item(j).Path.toLowerCase());
}
}
}
return a;
}

function playlist_name_is_skip(idx) {
return plman.GetPlaylistName(idx).toLowerCase() == "skip";
}

function on_playlist_items_added(p) {
if (playlist_name_is_skip(p))
t = tracks_to_skip();
}

function on_playlist_items_removed(p) {
if (playlist_name_is_skip(p))
t = tracks_to_skip();
}
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Coreda on 18 January, 2016, 09:01:56 AM
I could probably script something to do it but the track changes may not be entirely seamless. I'll test and report back.

edit: I tried it and it was fine for me but YMMV.

Requires WSH panel mod or JScript panel. You can find the latter via the link in my signature.

THANK YOU! Really. Like Daeron described this is exactly what I was after, functionality wise.

Tested and seems to be working well. From what I can tell a panel has to be added permanently for the script to function?
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 18 January, 2016, 03:51:45 PM
Yes. If using columns UI, you can hide it on the layout tab in the preferences.

If using default UI, put it a tab or add this bit of code that colours the it the same as a splitter and then resize it as small as you can.

Code: [Select]
function on_paint(gr) {
    gr.FillSolidRect(0, 0, window.Width, window.Height, utils.GetSysColor(15));
}
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: lender1257 on 19 January, 2016, 08:35:10 AM
hi
i've read this topic more than once, but didn't find the answer to my question
i've installed foo_skip and it function manually

can i define a function-key that stores "skip=1" as tag on the now playing track, if i push it
(the next time this track won't be played anymore)
if possible, how to make this

thx
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: carpman on 19 January, 2016, 09:56:52 AM
Use foo_quicktag:
https://www.foobar2000.org/components/view/foo_quicktag

I'd bind a shortcut like so (just an example): 
CTRL+F1 to focus track
CTRL+F2 to set tag SKIP = 1

C.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: lender1257 on 19 January, 2016, 11:42:17 AM
thx carpman for answering

ok, only with foo_skip there's no chance.

would be a nice feature (for now active track):
press funktion key --> if not skip-tag available, or skip-tag = 0, then SKIP=1
                       or   --> if skip-tag available, then delete skip-tag, or set SKIP=0

Title: Re: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 19 January, 2016, 10:50:03 PM
Not possible. You can only bind one action per key combination. Just use 2 keys and have a playlist column showing the current value so you know which button to press.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: fuffi on 11 March, 2016, 05:50:34 PM
Hi,

I just found this useful component and installed it (1.9.7).
Thank you!

Now, after reading the whole 18 pages, I still have some questions...and feeling a bit dizzy... 8-)


1) first question/feature request:
after playing with this component and trying a lot of examples from the thread, I now have a cluttered pulldownmenu, filled with not working stuff.
(https://picload.org/image/wprlgdp/1.png)
(I'm old and I won't remember, which worked and which not...)

How can I delete wrong scripts/queries in the pulldown menu?

I have tried all combinations wtih alt/ctrl/shift+del/backspace, but with no success.

2) second question:
can anymone explain in simple words to me,
WHY
I need to use this string
Code: [Select]
("$meta(rating)" IS 1)
instead of
Code: [Select]
($meta(rating) IS 1)
or
Code: [Select]
"%rating% IS 1"
or
Code: [Select]
$meta(rating) IS 1
or
Code: [Select]
%rating% IS 1
?
I copied all those examples from this thread, and a lot of ppl here posting that one of the aboves are fine working for them, but I don't understand, why only the first one is working for me.


3) third question/feature request:
I have this little Collumns UI Collum Display Script
$if(%SKIP%,'['skip'] ')
(https://picload.org/image/wprlgdc/2.png)
which shows me, if a song has the %SKIP% tag. (Just to visually indicate, WHY that song won't play...)
When I change the skip-track-query from time to time, I need to change that script too (according to the new skip-track-query), which is ...something inconvenient.
Is there a way to kinda automate this?
Also, when the component should skip all songs with rating < 2 there is no way to visually indicate this in the playlist view?

Like, fetching the content of %skip-track-query% and putting it into my script in the Collumns UI Collum Display Script?

Any help would be very appreciated.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 11 March, 2016, 06:25:50 PM
How can I delete wrong scripts/queries in the pulldown menu?
Shift+rightclick on the dropdown arrow/wipe history.

Why I need to use this string
Code: [Select]
("$meta(rating)" IS 1)
instead of
Code: [Select]
($meta(rating) IS 1)
There are two languages that you will commonly meet when using foobar. Titleformatting (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference) and query syntax (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Query_syntax). The former generally uses functions like $this(), the latter usually has capitalized words like %this text% HAS words. Both has pros and cons depending on what you are trying to do and not all parts of foobar may understand both of them.

Sometimes it's beneficial to try to mix the two. Maybe because it's shorter to "say" something in one or the other or only one language supports what you are trying to do in the first place. In the specific case of mixing titleformatting with query syntax, you have to tell foobar somehow that the code you just input should be interpreted as titleformatting as opposed to query syntax. To do so you enclose the code between " " characters.

Example query syntax:
%something% IS 1

Query syntax with titleformatting:
"$meta(rating)" IS 1

In which case foobar first solves the titleformatting part, which presumably returns a number between 1-5 (the rating), then that value is used to evaluate the query.

So halfway through foobar sees something like this (assuming the rating was 1):
1 IS 1

Which will evaluate true.

When I change the skip-track-query from time to time, I need to change that script too (according to the new skip-track-query), which is ...something inconvenient.
You'll have to change it manually.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: fuffi on 12 March, 2016, 08:11:32 PM
This is a big help! Thank you very much! Really.

It took me some minutes to get the correct right-click, but then it worked. Tricky...only intuitive, when you know it :)
(https://picload.org/image/wpdopwr/screenclip.png)
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Pollux88 on 14 March, 2016, 08:54:50 PM
Epic plugin, thank you for a bang-up job. One minor feature request: would it be possible when "skip track" is bound to a toolbar button to make that button show as pressed when it's activated?
"Stop after current" for instance is highlighted when pressed. But only on Columns_UI for some reason.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Musiphilos on 28 March, 2016, 06:53:02 AM
Hi music skipping gang.

I'm looking for a way to forward to the next song after the current track has played for 2min.

I'm playing around with foo_skip on my foobar v.1.3.7 and the component is working because with the query %genre% IS Blues does indeed skip my "Blues" music. But all my attempts to skip after 120seconds have failed
(https://hydrogenaud.io/imgcache.php?id=572aeb899de4ae627828aed0e69ca0c0" rel="cached" data-warn="External image, click to view at original size" data-url="http://healthnmoney.com/david/public_photos/2016-03-28 12_24_26-foobar2000.jpg) (http://healthnmoney.com/david/public_photos/2016-03-28 12_24_26-foobar2000.jpg)

In the image above you can see all the attempts I tried including:  "120-",  "00:02:0-00:00:00" and "-00:00:0;00:02:00-"
The only one that actually did something was the genre query mentioned above.

Any idea why?

I only have skip_track activated in the DSP by the way

Thank you so much
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 28 March, 2016, 07:41:40 AM
To skip specific parts of a track. you actually have to tag your files with a SKIP tag.

Quote
Can also skip parts of tracks. Tag field SKIP specifies the timecodes:
SKIP=-<time>   to skip from the beginning to <time>.
SKIP=<time>-   to skip from <time> to the next track.
SKIP=<a>-<b>   to skip from position <a> to later position <b>.
SKIP=-<a>;<b>-   to skip from start to <a> and from <b> to next track.

(https://i.imgur.com/RVCTDYT.png)
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 29 March, 2016, 02:07:34 AM
I'm looking for a way to forward to the next song after the current track has played for 2min.
foo_preview
http://skipyrich.com/wiki/Foobar2000:Preview
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Musiphilos on 29 March, 2016, 10:23:25 AM
marc2003 and Daeron,

Thank you so much for your awesome help. It worked. Actually both approaches will be very useful indeed. Foobar is just amazing, isn't it!?
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: laddie on 30 March, 2016, 05:16:00 PM
Is there a way to have Skip Track skip so that the same artist doesn't play twice in an hour? Or even a 5 track span?
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: TuNk77 on 16 April, 2016, 05:57:07 PM
foo_skip causes infinite repeat of a song, and it does happen with several songs, but only when foobar2000 advances to the next track automatically. But it does not happen when I advance to the next track manually.

I have tried various options to get rid of the "bug", but I cannot get rid of my problem.
I've tried to change audio output to Direct Sound, I tried WASAPI (event) and WASAPI (push), even tried Null oputput, but that made no difference. So it can't be related to my soundcard.

I made a portable install of foobar2000 v1.3.10, but the same problem appears.
I'm running foobar2000 on Windows 7 x64.

Please see my screen-capture, to visualize my problem:
https://youtu.be/7BygsvWS4Ek
Youtube might take some time to render...
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Daeron on 16 April, 2016, 06:09:42 PM
You most likely set up a bad query in 'File/Preferences/Tools/Skip track/Skip track query'. Or it's the default one which as I remember is something along the lines of 'skip track if RATING is 0' and your files happen to have that. So post the query and the right click/properties window of your problematic files (so we can see the tags).
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: TuNk77 on 16 April, 2016, 06:52:38 PM
Here are the tags for the file in question:
(https://hydrogenaud.io/imgcache.php?id=0d3fa67e2676a48f31741b4ea0241e81" rel="cached" data-warn="External image, click to view at original size" data-url="http://i.imgur.com/6p7bOvE.png) (http://imgur.com/6p7bOvE)

Here are my options for foo_skip (default):
(https://hydrogenaud.io/imgcache.php?id=4e02cd1567aea38000115abe38623680" rel="cached" data-warn="External image, click to view at original size" data-url="http://i.imgur.com/H1EwNKi.png) (http://imgur.com/H1EwNKi)

I do not use rating-tags, but my rating goes to the database (playback statistics).

All my foobar2000 components are up to date:
(https://hydrogenaud.io/imgcache.php?id=ff461d97dfc4ed85752ae83e5fe1b31d" rel="cached" data-warn="External image, click to view at original size" data-url="http://i.imgur.com/bTlZ9W0.png) (http://imgur.com/bTlZ9W0)

Thanks in advance.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Case on 16 April, 2016, 07:03:28 PM
Using Previous command after skipping a track seemed to be buggy in the old version of the component. I uploaded a version with a fix but it's so far only available on my site (http://www.saunalahti.fi/~cse/foobar2000/?changes=foo_skip). I'll put it on the official component repository when I wake up.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: TuNk77 on 16 April, 2016, 08:17:07 PM
Thank you very much, Case. Now it works like intended :)
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: El Kabong on 24 April, 2016, 04:09:05 AM
Is there a way to have Skip Track skip so that the same artist doesn't play twice in an hour? Or even a 5 track span?

I second this!
Longtime wished...  :\
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: lazik on 27 April, 2016, 07:28:27 AM
@Case: excellent plugin. I tested
SKIP=-<a>;<b>-<c>
behavior but this dont work. Its OK to A part but after B ends track playing
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: davideleo on 29 May, 2016, 07:30:54 PM
I would like to add a button that toggles the skip function. Is there a value I can refer to in titleformatting that tells me weather the skip function is on or not?
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: TuNk77 on 29 May, 2016, 11:03:07 PM
I would like to add a button that toggles the skip function. Is there a value I can refer to in titleformatting that tells me weather the skip function is on or not?
Just add a button to your toolbar, right-click the toolbar and select "customize buttons..." browse for the command "skip tracks & use bookmarks" under [main]>playback>skip tracks & use bookmarks
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: davideleo on 30 May, 2016, 09:26:20 AM
I would like to add a button that toggles the skip function. Is there a value I can refer to in titleformatting that tells me weather the skip function is on or not?

Just add a button to your toolbar, right-click the toolbar and select "customize buttons..." browse for the command "skip tracks & use bookmarks" under [main]>playback>skip tracks & use bookmarks

That's fine, I understand the same command enables or disables the component, but I would like the command button to show different icons according to the component status: a brighter one when the skip function is enabled and a darker one when it is not. I'm using the $imagebutton function of the panel stack splitter (http://wiki.hydrogenaud.io/index.php?title=Foobar2000:Components_0.9/Panel_Stack_Splitter_(foo_uie_panel_splitter)), therefore I need a value I can use in an if statement that tells me whether the component is enabled or not, just like I have for the shuffle and repeat mode command buttons.


EDIT:
Actually I just realised that the playing order status is a specific panel stack splitter reference, so I guess what I'm asking for is not possible.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Lee James on 01 October, 2016, 06:01:30 PM
Hello, I have a problem, if anyone could please help?

This plugin used to work fine for me a few years ago. Right now I've just installed the latest version (1.9.8 ) and I can't get it to skip anything.

If I simply enter "1" in the skip track query, it works, skipping everything. But if I enter anything more complicated, it doesn't skip anything at all. For example:

$if(%skip%,1,1)
or
$ifgreater(60,50,1,1)
or
$ifgreater($rand(100),1,1,0)

None of these results in anything being skipped at all. I wonder why?
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: marc2003 on 01 October, 2016, 07:47:41 PM
It takes query syntax so you need to do something like

Code: [Select]
"$ifgreater(%something%,10,1,0)" IS 1
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Lee James on 02 October, 2016, 07:44:26 AM
Wonderful! :) Thank you once again Marc2003 (I recall you've helped me in the past) :)
 
I get it now: Foo Skip will skip the song if the query result is true. I was thinking it skipped if the query returned a value of 1.

I feel that perhaps the documentation (http://www.foobar2000.org/components/view/foo_skip) could make this "must be true" a little more clear, perhaps with a couple of examples, for the sake of dummies like me? It didn't help that when I installed the plugin, the query box was blank, possibly because I was upgrading from a very old version.

To make things even more confusing for me, when I looked through this thread to find examples of queries, They were all like this:
$ifgreater($rand(100),%skip%,1,0).

I guess everyone just missed out the "IS 1" in this thread because it's obvious when you know it should be there. :)
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Lee James on 03 October, 2016, 05:36:40 AM
I just want to thank Case for his help in the past. Looking back through this thread, I can see that 4 years ago I asked for a way of using random numbers to allow higher rated songs to be more likely to play. 3 months after that (by which time I had given up and stopped checking the thread) Case very kindly added the $rand() function and provided the exact code I need, which I am so happy with, thank you! :)
Actually the probability skipping is possible since January (http://www.hydrogenaudio.org/forums/index.php?showtopic=99068).
Note that with foo_playcount component you can't have rating 0 so this example skip query uses $meta check with it:
("$meta(rating)" IS 0 AND "$mod($rand(),100)" GREATER 1) OR (%rating% IS 1 AND "$mod($rand(),100)" GREATER 24) OR (%rating% IS 2 AND "$mod($rand(),100)" GREATER 49) OR (%rating% IS 3 AND "$mod($rand(),100)" GREATER 74)
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Thor on 04 November, 2016, 10:59:53 AM
Hello Case,
I have a question regarding the effect of your component on replaygain scanning; If I add a SKIP tag to a file to skip the beginning of a track (e.g. <SKIP> = -0:08:00), and then (re)run replaygain scanning on said track, will the "skipped" part of the track then be ignored during scanning?
I think this should be the desired behaviour, but is this what happens?

Best,

Thor
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Case on 04 November, 2016, 01:56:21 PM
The component won't affect ReplayGain results. A postprocess decoder could perhaps cheat the scanner and return silence for unwanted parts but I believe postprocessing is only performed for a certain limited number of formats.
If you think the results are way off because of skipping you could use Converter to write a temporary file and run a scan on that file. Then copy the RG numbers manually over.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Thor on 07 November, 2016, 04:39:34 AM
OK, thanks for clarifying that Case!
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: conglomulation on 10 January, 2017, 02:37:28 PM
I've been using this component to play excerpts of long classical tracks for my radio show, and I'm really enjoying it thus far. I did come across a bug, however. Whenever I end a track early through <SKIP>, it doesn't affect the "stop after current" playback option; it just goes on to the next track. I did some testing by playing with automatic fade-outs, and it looks like cutting the track off early counts as a manual track change. Maybe there is some way to make foobar recognize it as an automatic track change?

Also, if anyone else is interested, I made a custom column which shows the length of an excerpted track. I'll paste the pattern below. One caveat: the <SKIP> field must have the format -MM:SS;MM:SS- (a start/end time of 00:00 does nothing, I've found).

What I want to do now is have some way of quickly displaying the actual duration of my playlists. I can't really find any obvious way to do this, so if anyone has tips, they'd be greatly appreciated.

Spoiler (click to show/hide)
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: sho on 15 August, 2017, 11:33:59 AM
I cannot extract desired track sections using information in the skip tag field anymore.
It used to work fine using foobar converter, where I set up a preset that used DSP "Skip track (for Converter)"

Can someone help please?

Thanks in advance.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: LL25255252 on 15 August, 2017, 02:42:28 PM
...What I want to do now is have some way of quickly displaying the actual duration of my playlists. I can't really find any obvious way to do this, so if anyone has tips, they'd be greatly appreciated.
You have that feature built-in foobar2000 Playlist Manager.
View > Playlist Manager > right-click on the column bar > Columns > tick the duration item

You can also have playlists duration if you install the highly recommended Playlist Organizer plugin :
http://www.foobar2000.org/components/view/foo_plorg

Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Case on 15 August, 2017, 04:08:17 PM
Whenever I end a track early through <SKIP>, it doesn't affect the "stop after current" playback option; it just goes on to the next track.
Somehow I had missed this bug report. I just released a version that respects Stop after current setting when skipping the end. Now the Skip Track component calls Stop function from the core when Stop after current is enabled and end skip position is reached. It behaves a bit different from regular stopping as cursor doesn't advance to the next track. Hopefully it's not too big of an issue.

I cannot extract desired track sections using information in the skip tag field anymore.
It used to work fine using foobar converter, where I set up a preset that used DSP "Skip track (for Converter)"
I just tested the functionality and saw no issues. Is your SKIP tag syntax correct? The component isn't very forgiving for syntax errors.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: sho on 15 August, 2017, 05:04:14 PM
I cannot extract desired track sections using information in the skip tag field anymore.
It used to work fine using foobar converter, where I set up a preset that used DSP "Skip track (for Converter)"
I just tested the functionality and saw no issues. Is your SKIP tag syntax correct? The component isn't very forgiving for syntax errors.

Thanks for the response.

SKIP function itself works, which means that the syntax is correct. For example I have "-0:45;0:55-" set as SKIP tag value for a track and if i play it with skip turned on, it will play exactly 0:45-0:55, but if i try to convert the track using a preset with DSP "Skip track (for Converter)", it doesn't generate a file that normally should be a 10 seconds long extracted section from the original track I did the conversion on.

Strangely, converter says it has been done successfully, but the new file has not been generated. Here is what console reported:

Code: [Select]
CLI encoder: lame.exe
Destination file: D:\Music\test.mp3
Track converted successfully.
could not enumerate tracks (Object not found) on:
D:\Music\test.mp3

I tried converter with other presets (conversion to mp3, wav) and it works fine. A converted file is generated etc.

Seems like the problem occurs only if I use  a preset with DSP "Skip track (for Converter)". It worked fine last time i tried it 2,5 months ago... Hope we can solve his. This function used to be my life saver.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Case on 15 August, 2017, 05:32:43 PM
Check your skip string query syntax. It sounds like the track is marked to be entirely skipped and so you don't get any output.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: sho on 16 August, 2017, 02:01:10 PM
Check your skip string query syntax. It sounds like the track is marked to be entirely skipped and so you don't get any output.
It worked out!
I actually modified actual skip string query syntax a few days ago in order to skip tracks with date after 2005 and the track that I tried to convert is from 2017, so it wasn't converted, although skip function (playback) was turned off. Good to know that it works like that.

Many thanks for your help!
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Wolfbane on 13 September, 2017, 05:07:25 PM
Howdy...

Is there any way in foobar, to make all songs I have in playlist get "SKIP" metadata, and also all future songs I Add to my playlist to also get the tag "SKIP" without manually adding them one at the time ?
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Coreda on 13 September, 2017, 10:32:27 PM
Howdy...

Is there any way in foobar, to make all songs I have in playlist get "SKIP" metadata, and also all future songs I Add to my playlist to also get the tag "SKIP" without manually adding them one at the time ?

Not sure if it fulfills your needs but I was after something similar last year and marc2003 was gracious enough to make a WSH/JScript Panel script (https://hydrogenaud.io/index.php/topic,30361.msg914581.html#msg914581) for it. They also made an updated version (https://hydrogenaud.io/index.php/topic,110516.msg938641.html#msg938641) which supports CUE sheets.

What the script does is check for a playlist named 'Skip' and any tracks within it will be skipped from general playback, without the need to add any metadata to the files themselves.

To use it you'll first need JScript Panel (https://github.com/19379/foo-jscript-panel/releases) and then enter the fb2k layout editing mode and add a JScript Panel panel, right-click it>Configure, then paste in the script and save. If you add a panel splitter first you can drag it until the panel is essentially hidden, which is what I do.
Title: Re: foo_skip: skip tracks that match a specified search query
Post by: Wolfbane on 14 September, 2017, 03:40:28 AM
No, sorry this is not what Im looking for. I do not want to skip any tracks on my playlist

I use "Skip" in combo with "you-tube" plugin, and a lot of songs have "intros / outros" so I use skip to jump past the "none music" part of songs.
Now I just want a way to add the tag "SKIP" to all thousands of songs I have in some way without forcing me to add it manually to all thousand songs.
ofc maybe 20% of the songs already have the tag, so do not want to remove there SKIP tag.

But just any way to make the program simply have that extra field always there without forced to "create new metadata"