登录:     


Forum: General Discussion

Topic: auto generate playlist by genre
Is there a way to auto generate a playlist without dragging and then shuffle them. Example, I want a Playlist that play 3 country, 3 pop , 3 dance, ext..... for 5 hours. Maybe have an option button to do this.
 

发表时间 Mon 28 Mar 22 @ 6:22 pm
Sort of what Filter Folders are for.
Auto generates a list of songs by criteria you choose.

Maybe that will do?
 

I think I can script it. it's not too hard but not straight forward.
 

This would be great if we could script it .

 

yeah it can be done, first make a filter for each genre you want in the list

name them like so
PopList
CountryList
etc,
once you've done that send me a pm.
 

demo video

 

is it randomly select from list of filters
 

locodog wrote :
yeah it can be done, first make a filter for each genre you want in the list

name them like so
PopList
CountryList
etc,
once you've done that send me a pm.


ok Thank you for you reply
I have already created them
 

Private messaged.
 

So I made a mk2
it uses the set_var_dialogue [fantastic interface for this kind of thing]
Set the hours
Set how many tracks from a filter each pass
it asks point to a filter and press 1
it asks point at the next filter [press 1] or press 2 to make list with the previous pointed filters
and it will do upto 10 filters

 

locodog wrote :
So I made a mk2
it uses the set_var_dialogue [fantastic interface for this kind of thing]
Set the hours
Set how many tracks from a filter each pass
it asks point to a filter and press 1
it asks point at the next filter [press 1] or press 2 to make list with the previous pointed filters
and it will do upto 10 filters



Great!
 

Can you give us step-by-step advice?
I like this kind of stuff ;o)
 

it's a huge script [12k chars 74 queries]
just getting a random number was hard enough, [get_clock 1000 always returns an even number for some reason] [plus not random enough given it was an rsi polling it] [plus I don't turn my machine off that often and get_clock & maths gets sketchy]

I'm kind of pleased with using get_var_dialogue as a multi-input [I argued vdj should have had some "sort of" type in input, and because I'm dumb I didn't realise up till now set_var_dialogue is the command line I'd been wishing for]

It's made to be minimal stress for the user.

on a custom button, press the button
it asks: how many hours [full hours UP TO 99 HOURS] type it in press enter
it asks: how many songs from each filter visit. type in a number press enter
it requests; point at a filter and type 1. do as it asks [MUST ALWAYS BE A FILTER]
it requests; point at a filter and type 1 or to make list type 2. do as it asks
it will do upto 10 filters,
it could do more.

if you mess up at any point, type in
exit
and you can start again

It was quite an undertaking and because of at amount of time it took to write & the time it saves if you need this kind of thing, I'm asking for a few beers for it, I've had a couple of takers.
 

Somebody PM'd me about this again today, so I'll update the capabilities
still 1-99 hours
can now use any folder|filter|list
can now select upto 20 folders