Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Make foobar playback order options mimick Poweramp  (Read 1152 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Make foobar playback order options mimick Poweramp

I’ve been struggling to get Foobar to play shuffle in the right way. Like after selecting a track, having it return to previous position in the playlist and stuff like that. I hear repetitions even though I’m not using the random but the shuffle (track) option after restarting. I don’t like using the Randomize option either.

In Poweramp (the Android app) the playback options are just perfect. Is there any plug-in that can get me that functionality the way it’s implemented in Poweramp on Foobar? Or an approximate version of it?



Re: Make foobar playback order options mimick Poweramp

Reply #3
I start by playing (for example) an album.
While listening, I browse through the library and find a few songs that I want to interrupt normal playback and listen to, which I add to the temporary 'Queue'.
After the currently playing song from my album has finished, the Queue commences playback and it continues until the last enqueued song has been played.
When the Queue has finished, playback returns to normal album mode (playing the next song in the album that I was originally listening to).
If I want to enqueue any more songs to again interrupt my normal album listening, I go back and repeat step 2. The new songs again start playing after the current album song is done.

Re: Make foobar playback order options mimick Poweramp

Reply #4
So no one can help with any brilliant suggestions?

Re: Make foobar playback order options mimick Poweramp

Reply #5
Anyone, is there a way to add to top of playlist?
If so, then with a Queue playlist using https://www.foobar2000.org/components/view/foo_queuecontents , you would have it.

There is a way to do that by a single song, if you go to advanced preferences and uncheck the flush queue. (Search for "queue" and that is the only thing that shows up.) But the "Play" function works only with a single track.
High Voltage socket-nose-avatar

Re: Make foobar playback order options mimick Poweramp

Reply #6
Sorry for the very late response - I had a lot of trouble logging in the last few weeks.

I use foo_skip to automatically skip any tracks that have been played in the last 8 hours. You need to also use a statistics plugin for it to work. I use foo_playcount. Here's my script:
Code: [Select]
%last_played% DURING LAST 8 HOURS

With these plugins, I find foobar's shuffle to be perfect, except that it reshuffles when you restart the app. I wish there were an option to keep the same shuffle between restarts.

Lastly, Porcus - I love your avatar. I call it a "snoutlet".
Think millionaire, but with cannons.

Re: Make foobar playback order options mimick Poweramp

Reply #7
That foobar skip component is very helpful indeed and thanks for recommending that to me.
But there's still a functional case of that Poweramp options that I couldn't replicate.
Let me describe a scenario:
In my database, you have Artist Arthur (having 1 song), Artist Barry (having 35 songs) and Artist Cherry (having 120 songs)
If I set Shuffle (Artists) in Poweramp, it will treat Artist Arthur the same as Artist Barry and Artist Cherry; meaning that all 3 artists have a 1 in 3 chance of having that artist played. And then it moves on to the other two. SO if it plays 1 song from Artist Cherry, it will move on to say Artist Barry even though there are 119 songs still left by Cherry. etc. etc.
But in Foobar, Artist Arthur has a 1 in 156 chance of being played. In otherwords, it is not really shuffling the "Artists" category, but shuffling the "songs" in the said category.
So what I'm asking is, can this kind of "Category" shuffle be done in Foobar? (and I mean, shuffling the "artist" category only, as I don't have songs in "album" form. I just have some songs from some albums that I love, and they are all in one big "Music" folder)
I know that Foobar already has the ability to shuffle albums, tracks, and folders, but in my case, it's just one big Folder, and most of them are picked individual tracks from albums.


Re: Make foobar playback order options mimick Poweramp

Reply #9
Might be a job for foo_random_pools? I have not used it though. Discussion thread at https://hydrogenaud.io/index.php?topic=77460.0
I've had that component since day 1. I have never used it though and I can't tell how to structure the query to put into the plugin to get it to shuffle artist categories as I wish to do.

Re: Make foobar playback order options mimick Poweramp

Reply #10
Not exactly... since what you want to do is intercalate artists, thus shuffling tracks only. Pools is out of equation for that.

This has been requested before here:
https://hydrogenaud.io/index.php?topic=121432.msg1002053#msg1002053
Not exactly the same, but if you consider you may have 3 playlists, with 1 playlist per artist.. then both problems are equivalent.

Check Playlist-Tools-SMP on my sig. You can create a pool with 3 queries 'ARTIST IS X', set the #tracks per artist and then the sorting method to intercalate. The first 3 items will be 3 random tracks by the 3 artists, then 2 tracks by the 2 remaining artists and so on.

Attached the pool file, is trivial to do it with Playlist-Tools-SMP (download from the repo -green code button-, not the latest release).

Re: Make foobar playback order options mimick Poweramp

Reply #11
Not exactly... since what you want to do is intercalate artists, thus shuffling tracks only. Pools is out of equation for that.

I've setup Playlist Tools SMP like you described, and then I already had Spider Monkey Panel ...
I've copied the .json file to the script folder but I don't know where to go from there... How do I run the script? / Or add the panel?

Re: Make foobar playback order options mimick Poweramp

Reply #12
Ok, disregard that. I figured out how to load the script up to an SMP panel.
But it's crashing, as the filetype is showing as .js and not .json
Also, I don't really know if I'm doing it well...

Re: Make foobar playback order options mimick Poweramp

Reply #13
This is how the screen looks for me..
What do I do next?

Re: Make foobar playback order options mimick Poweramp

Reply #14
Sorry about that other smaller screenshot. This should be better
That is the way to add the panel, isn't it?
The only files available to be added after that process are .js files
If I add any .json file (by editing "all files" on extension search on the bottom right), the panel just crashes.

Re: Make foobar playback order options mimick Poweramp

Reply #15
You don't have to load the json file... that's a preset! I would recommend you to read the readme and installation notes of Playlist-Tools.... since that's the thing you have to install first.

After you have installed the scripts, then you can load the json file as a preset within the script.
At that point you will have a new panel with a buttons bar. Pressing Playlist tools opens a menu, at config you can load a presets file (the json file).
After all it's done, you will have a new entry at the pools submenu.

The thing I have posted is just the preset, it does nothing without the rest and has nothing to do with SMP panels.
If you are not able to do it, wait for a gif in some hours ;)

 

Re: Make foobar playback order options mimick Poweramp

Reply #16
You don't have to load the json file... that's a preset! I would recommend you to read the readme and installation notes of Playlist-Tools.... since that's the thing you have to install first.

Haven't I done it correctly then?
After putting it in its correct location, it doesn't show up in Foobar after I restarted the application either.
I must be installing it wrongly or something

Re: Make foobar playback order options mimick Poweramp

Reply #17
You have to load the scripts on a panel, just copying it to a location does nothing. It works the same than any other SMP script and it's clearly stated on the readme and instructions (?)
Spoiler (click to show/hide)

Then go to config and load the preset (use the path to the attached file):
Spoiler (click to show/hide)

Alternatively (*), just put all your tracks on a playlist. Select all, and use "selection manipulation\Scatter by tags\Scatter by same artist". It will intercalate tracks by artists.
Spoiler (click to show/hide)

First method creates a new playlist using queries by specific artists and intercalates tracks chosen; second method works on current selection (for any artist). Hope the gifs help you ;)

(*) I need to update a file on the repo first for this 2nd method to work. Will do it today (a re-download from github will be needed then).
(**) update json file with new one, since I missed a comma the last time.

Re: Make foobar playback order options mimick Poweramp

Reply #18
(*) I need to update a file on the repo first for this 2nd method to work. Will do it today (a re-download from github will be needed then).
Done, just updated it.
https://github.com/regorxxx/Playlist-Tools-SMP
Last files on repo now also allows the 2nd method. The pool preset is also fixed on the repo. Download using the green button (code) and follow previous instructions and readme.