INTERACT FORUM

More => Old Versions => JRiver Media Center 26 for Windows => Topic started by: trogne on April 02, 2020, 05:35:40 pm

Title: proportionate random
Post by: trogne on April 02, 2020, 05:35:40 pm
I dream of a proportionate random, according to the length of the songs.

For instance, a 30 minutes mp3 should have 30 more chances to play than a 1 minute song.

I doubt this exists, but if anyone thinks of a way to do that, in Media Center or not, I'll be glad to try !
Title: Re: proportionate random
Post by: Matt on April 02, 2020, 06:29:37 pm
Interesting.
Title: Re: proportionate random
Post by: JimH on April 02, 2020, 10:00:31 pm
I'm not sure I would be 30x more likely to listen to a 30 minute track.
Title: Re: proportionate random
Post by: AndrewFG on April 03, 2020, 07:20:24 am
Aargh. It sounds like being condemned to listen eternally to Wagner..
Title: Re: proportionate random
Post by: Dawgincontrol on April 03, 2020, 09:25:00 am
Aargh. It sounds like being condemned to listen eternally to Wagner..

 ;D ;D ;D
Title: Re: proportionate random
Post by: trogne on April 03, 2020, 09:28:37 am
It is more for classical music.

For instance, a 30 minutes symphonic poem should have more chance to play than a 30 seconds recitative.

Title: Re: proportionate random
Post by: trogne on April 03, 2020, 09:31:37 am

And to use a Wagner example.
Opera split into 100 tracks, and another opera split into 5 (for each acts).
I'd rather have the same random chance for each opera.
Title: Re: proportionate random
Post by: JimH on April 03, 2020, 11:28:52 am
You can use the "Linked Tracks" feature to keep the opera together.  I'm not sure if that's what you mean.
Title: Re: proportionate random
Post by: DrKNo on April 03, 2020, 12:07:38 pm
I wrote something like that to proportianlly shuffle newer vs older and better rated vs unrated songs. Warning, this is a bit of a monster:

Code: [Select]
[Media Type]=[audio] ~mix=100,26%,{date_archived=>=0y date_archived=<=0.3y rating=4,5 ~sort=random},14%,{date_archived=>=0y date_archived=<=0.3y rating=[] ~sort=random},23%,{date_archived=>=0.3y date_archived=<=0.9y rating=4,5 ~sort=random},7%,{date_archived=>=0.3y date_archived=<=0.9y rating=[] ~sort=random},17%,{date_archived=>=0.9y date_archived=<=1.5y rating=4,5 ~sort=random},3%,{date_archived=>=0.9y date_archived=<=1.5y rating=[] ~sort=random},9%,{date_archived=>=1.5y date_archived=<=100y rating=4,5 ~sort=random},1%,{date_archived=>=1.5y date_archived=<=100y rating=[] ~sort=random} ~sort=Random ~nodup=[Artist],[Name]
you could rename the parameters as necessary to get the effect you want. I wrote an excel sheet to generate the string for me.... now if I just could find it....
It's basically a set of searches that you can replace, that then get weighted against each other. You would need to create classes for this (e.g. 0-5 min; 5-10 min and so on).

Edit: Updated with correct import/export string