INTERACT FORUM

Please login or register.

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

Author Topic: [Search Language] Randomly generated list that always ends with the same item?  (Read 577 times)

DrKNo

  • World Citizen
  • ***
  • Posts: 201

Title says it all: I'd like to create a randomly generated smartlist of 10 items that always ends with the same item. I'd need a method to concatenate two lists, but I don't know how to do it. Any ideas?
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2362

I'm not sure that's possible, but it's an interesting request.

@JRiver: maybe this is a good idea for a new Playlist Modifier rule: MERGE with another playlist.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71348
  • Where did I put my teeth?

I'm not sure that's possible, but it's an interesting request.

@JRiver: maybe this is a good idea for a new Playlist Modifier rule: MERGE with another playlist.
Cloudplay can make playlists of playlists.  I'm not sure whether a user can do that, but it's a useful concept.  It lets you make a radio station.  In Cloudplay, we can tell it to shuffle playlists or not, and shuffle within each playlist, or not.

Matt and I have talked about building a personal radio station by using Cloudplay playlists you like.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2362

Quote
Cloudplay can make playlists of playlists.  I'm not sure whether a user can do that, but it's a useful concept.
You can already do that in MC - just create a smartlist with rule "playlist - is any - [select all playlists you want]".

What you can't do is select a list of songs (using any criteria/filter), shuffle them, limit to 10, and then add a few more from another playlist at the end. That's what a new Merge modifier would also allow you to do.

Come to think of it, what DrKno requests can currently be done with 3 playlists:
- playlist 1: filter, shuffle, limit to 10
- playlist 2: list of song(s) you want to play after those 10
- playlist 3: playlist + is any + [playlist1, playlist2]

With that Merge modifier, playlist3 would not be needed, is all.
Logged

EnglishTiger

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 954

I managed to do it - but in a very dirty/unacceptable way.
I decided the track I wanted to appear last was "Donna by 10cc" so I added that rack to a playlist called "Last Track"
I then built a smartlist to get 9 random tracks, but not "Donna by 10cc".
Next I built a smartlist which used both playlists as it's Source and tried various ways of getting Donna by 10cc to be the last by sorting on a field that only Donna by 10cc had a value in. That didn't work Donna usually ended up as the 1st entry regardless of the sort order.
But when I took the dirty/unacceptable route - by changing the track name form "Donna" to "zz Donna" and sorting on Name it always ended up being the last track in the list.

I agree with zybex the ability to merge playlists, possibly with the ability to tell it how to Merge them would be extremely useful.
Logged
Win NUC - VENOEN 11Th NUC Mini PC Core i7 1165G7,Dual HDMI 2.0+Mini DP,Windows 11 Mini Desktop Computer,Thunderbolt 4.0,1 Lan, USB-C,Wifi,Bluetooth 5.0,32GB RAM Toshiba MQ04ABF100 ‎500Gb 5400 RPM ‎eSATA HD, Gigabyte GP-GSM2NE3512GNTD 1Tb NVMe SSD, Samsung 870 QVO 8 TB SATA 2.5 Inch SSD (MZ-77Q8T0) in Sabrent Ultra Slim USB 3.0 to 2.5-Inch SATA External Aluminium Hard Drive Enclosure (EC-UK30)

Apple 2020 Mac mini M1 Chip (8GB RAM, 512GB SSD)
Sabrent Thunderbolt 3 to Dual NVMe M.2 SSD Tool-Free Enclosure with Sabrent 2TB Rocket NVMe PCIe M.2 2280 High Performance SSD + Crucial P3 Plus 4TB M.2 PCIe

ET Skins & TrackInfo Plugins - https://englishtiger.uk/index.html

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2362

I see that MC already has a "Combine..." context menu option when right-clicking on a playlist - this is exactly was is needed.
@JRiver: Can this be added as a Smartlist Modifier too? It's a nice feature.

Another way would be to add an option to the ~mix modifier to disable shuffling. Like ~mix -10,90%,{filter1},10%,{filter2} => the -10 meaning 10 files, don't shuffle - the result would be that files matching {filter2} would be at the end.
Logged
Pages: [1]   Go Up