INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: proportionate random  (Read 702 times)

trogne

  • Recent member
  • *
  • Posts: 21
proportionate random
« 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 !
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: proportionate random
« Reply #1 on: April 02, 2020, 06:29:37 pm »

Interesting.
Logged
Matt Ashland, JRiver Media Center

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72439
  • Where did I put my teeth?
Re: proportionate random
« Reply #2 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.
Logged

AndrewFG

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3392
Re: proportionate random
« Reply #3 on: April 03, 2020, 07:20:24 am »

Aargh. It sounds like being condemned to listen eternally to Wagner..
Logged
Author of Whitebear Digital Media Renderer Analyser - http://www.whitebear.ch/dmra.htm
Author of Whitebear - http://www.whitebear.ch/mediaserver.htm

Dawgincontrol

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 679
  • We have met the enemy and he is us.
Re: proportionate random
« Reply #4 on: April 03, 2020, 09:25:00 am »

Aargh. It sounds like being condemned to listen eternally to Wagner..

 ;D ;D ;D
Logged

trogne

  • Recent member
  • *
  • Posts: 21
Re: proportionate random
« Reply #5 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.

Logged

trogne

  • Recent member
  • *
  • Posts: 21
Re: proportionate random
« Reply #6 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.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72439
  • Where did I put my teeth?
Re: proportionate random
« Reply #7 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.
Logged

DrKNo

  • World Citizen
  • ***
  • Posts: 201
Re: proportionate random
« Reply #8 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
Logged
Pages: [1]   Go Up