Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Random Folder Advance Weighing
« previous next »
  • Print
Pages: [1]

Author Topic: Random Folder Advance Weighing  (Read 2653 times)

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Random Folder Advance Weighing
« on: June 07, 2014, 06:23:49 PM »
Not sure how the random folder advance feature works - I'm assuming the generated list is looked at before jumping, if I'm wrong just inverse the idea:

So the idea is to be able to weigh the probability that a folder gets played.  On my players with large amounts of storage I have the complete discography of many artists - often times an artist will have more albums (and thus folders) relative to my total collection than I want the artist played back daily.

Example: I have 16 Nick Cave & The Bad Seeds albums and 4 Black Sabbath albums.  If I don't want Nick Cave to play 4 times as often as Black Sabbath yet I don't want to exclude any Nick Cave albums I could have a text file called "weight25" in the Nick Cave folders.

The way I pictured this working is that RFA jumps to a folder, sees the weight, rolls the dice, if the odds hit it stays, if the odds miss it simply jumps again.  No new cache miss as RFA already breaks cache utilization.

I have $47.98 in my paypal account.  A pittance, but will pay to someone who gets this committed before I leave on vacation June 23rd ;)
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Random Folder Advance Weighing
« Reply #1 on: June 07, 2014, 07:51:13 PM »
I believe the reason that this hasn't happened is due to the fact that it is so trivial to create a weighted playlist.

The only obvious downsides to this I can think of are::

A - time and forethought taken to prepare
B - The fact that you would lose the ability to shuffle by album (I gather this is important, else random folder advance probably wouldn't be being used in the first place?)

Edited to add: I'm a little unsure how this would work in the File Browser, as my line of thinking suggests this would involve having to know the weighting of a directory before switching to it.

[Saint]
« Last Edit: June 07, 2014, 09:04:22 PM by [Saint] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: Random Folder Advance Weighing
« Reply #2 on: June 08, 2014, 12:45:23 AM »
Please do elaborate on how to trivially weigh a random-by-album playlist containing all 350 albums in my main directory.

Indeed, how to trivially weigh a playlist of all 3000 tracks in my main directory even.  Do I simply "insert shuffled" each Black Sabbath album four times? (following my above example)

« Last Edit: June 08, 2014, 12:47:17 AM by soap »
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Random Folder Advance Weighing
« Reply #3 on: June 08, 2014, 04:12:21 AM »
Shit, I thought I had elaborated on the fact that this doesn't meet your requirements in regard to "random-by-album".
Apologies.

In regard to the second question "How would I trivially weight random playback of all tracks?", you've got it exactly. Insert the most desirable directories/albums/tracks/artists into the playlist as many times as you would like to to increase the odds of playback to your liking. You wouldn't need to insert shuffled, as you can shuffle/de-shuffle/re-shuffle during playback.

I just had an additional thought, however. On hosted targets (I assume this is the only opportunity available for Rockbox to use a file system other than FAT32), you may be able to do the weighting via symlinks and then make use of random folder advance, but I add this last part as moire of a thought experiment - its not terribly practical.


[Saint]
« Last Edit: June 08, 2014, 04:14:32 AM by [Saint] »
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: Random Folder Advance Weighing
« Reply #4 on: June 08, 2014, 07:45:51 AM »
Quote from: [Saint] on June 08, 2014, 04:12:21 AM
In regard to the second question "How would I trivially weight random playback of all tracks?", you've got it exactly. Insert the most desirable directories/albums/tracks/artists into the playlist as many times as you would like to to increase the odds of playback to your liking. You wouldn't need to insert shuffled, as you can shuffle/de-shuffle/re-shuffle during playback.

That may be trivial but completely impractical.

If I want to weigh one folder out  of 100 at even a modest 50% I need to manually insert one  folder once, and 99 folders twice.
« Last Edit: June 08, 2014, 07:47:48 AM by soap »
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Random Folder Advance Weighing
« Reply #5 on: June 08, 2014, 01:53:16 PM »
So...every single one of your artist directories is its own, top level, directory?

If not, I'm not sure I understand why inserting 99 folders would be problematic, simply insert the root directory which I assume exists.


[Saint]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Random Folder Advance Weighing
« Reply #6 on: June 09, 2014, 10:16:00 PM »
4th reply restart....

Yeah, thinking about it this could definitely be done - unlikely commited by the 23rd but you can build your own :) .

I think what needs to happen is each directory will check for a random_folder_advance.txt file which might have some options... weight: 100, skip: false, whatever.

if weight < 100 do the "roll". if weight > 100 add weight / 100 extra lines (i.e increase the chance). It should also take the weight from the parent folder.

How does that sound?
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Random Folder Advance Weighing
« Reply #7 on: June 11, 2014, 08:20:05 AM »
give http://gerrit.rockbox.org/r/#/c/841/ a shot!

Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline soap

  • Member
  • *
  • Posts: 1678
  • Creature of habit.
Re: Random Folder Advance Weighing
« Reply #8 on: July 04, 2014, 03:58:32 PM »
Just got back from holiday, will try this weekend!
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Random Folder Advance Weighing
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.075 seconds with 15 queries.