venta: (Default)
[personal profile] venta
Right, let's see if anyone's daft enough to play this game :)

At work, I listen to music. I almost always listen to my own mp3s (in complete albums), with occasional diversification into various streaming audio sources (last.fm, Xfm, 6Music, launchcast, etc).

However, I reckon now's my chance to get down with the cool kids, and have a random play list. I could just bung Winamp on shuffle, but where's the fun in that ? You're invited to choose my tracks. But, obviously, you don't know what music I have to hand (about 20Gb of mp3s).

So, you are invited to choose a number, of the form x-y-z.

The x chooses the artist, and should be a number between 1 and 262 inclusive, where 1 is the alphabetically first artist in my collection.

The y chooses the album. So, in general, it should be quite a low number, as I often have only one or two albums per artist. Albums are numbered in ripping order. If you choose a number greater than the number of albums I have by the chosen artist, I'll just take that to be the highest numbered album I've got.

The z chooses the track. So, in general, it should be a number between 1 and about 12 or so. I do have albums with over 20 tracks, though. If you choose a number greater than the number of tracks on the chosen album, I'll just play the last track.

So, as an example, 262-1-10 would be Remember Me, which is the tenth track off the first Zutons' album (The Zutons are the alphabetically last artist I own).

I'll do it as a poll to make life easier, but feel free to comment your number instead. Or feel free to tell me to stop being so damn lazy and make my own playlist. If anyone's interested, I'll post the resulting playlist later this afternoon.

[Poll #442090]

Date: 2005-02-22 02:13 pm (UTC)
From: [identity profile] venta.livejournal.com
Yes, I'm rapidly reaching the conclusion that you and Onebyone are right about the modular arithmetic.

However, it's actually surprising how few cases it's making any difference - often it doesn't matter, because I only have one album to choose from, but quite often (for track numbers) it turns out that modular arithmetic and arbitrarily-choose-last provide the same answer :)

Think I'll go modular from now on, though.

Date: 2005-02-22 02:47 pm (UTC)
From: [identity profile] broadmeadow.livejournal.com
In which case, to avoid any [mathematical] bias we should submit album and track numbers in a very large range. In the case of track numbers, for example, if I submit values in the range 1 to 20 and you modulo that value with the actual number of tracks, I will end up chosing lower numbered tracks more often than higher ones. But if I chose tracks in the range 1 to 1000000 that bias will almost completely disappear.

Date: 2005-02-22 02:56 pm (UTC)
From: [identity profile] venta.livejournal.com
Yeah, I don't really like that approach, though. Which was another reason why I was trying to steer clear of modular stuff in the first place - I wanted to encourage people to aim for a "likely" track number. But that just meant that I was going to end up with more last tracks than I ought.

I haven't yet thought of a nice, elegant solution to this. Maybe I should hone my collection down to contain only CDs with, say, exactly twelve tracks.

Date: 2005-02-22 03:03 pm (UTC)
From: [identity profile] wimble.livejournal.com
If they pick too large a number (either for the CD or for the track), you simply carry on counting into the next group?

Of course, in that case, you're effectively combining everything into a single list of several thousand tracks, and a single index number into that list would suffice.

Date: 2005-02-22 03:09 pm (UTC)
From: [identity profile] venta.livejournal.com
Of course, in that case, you're effectively combining everything into a single list of several thousand tracks, and a single index number into that list would suffice.

Aaaargh!

<cower>

Look, my entire concept of the music I own is (primarily) artist-based, and secondarily album-based. I'm trying to break myself gently into this random playlist idea. Stop trying to scare me!

Date: 2005-02-22 03:23 pm (UTC)
From: [identity profile] broadmeadow.livejournal.com
find . -name "*.mp3" | cat -n

will give you a nice numbered list of all your mp3 files. Then all we have to do is chose a number from that list.

Date: 2005-02-22 03:26 pm (UTC)
From: [identity profile] venta.livejournal.com
I know. I use find as well :)

I just don't want to think of my mp3s as a big floppity linear list. Their album structure is important, dammit :)

Date: 2005-02-22 03:29 pm (UTC)
From: [identity profile] broadmeadow.livejournal.com
<splutter> but surely not if we're putting together a playlist of random tracks from random albums?!

Date: 2005-02-22 03:38 pm (UTC)
From: [identity profile] wimble.livejournal.com
I think what she's doing is the same thing my Dension does for generating random play lists: at each point in the directory structure, pick a random entry. If it's a file, play it. If it's a directory, repeat the random selection. After each play, start again at the top of the structure.

Of course, this produces effect unfairly biasing towards directories which are under-represented.

(Consider two directories. There's an even choice between them. But one contains only one track, and the other contains 10 tracks. So 50% of the choices will turn out to be that first track, and the other ten only get an expectation of 5%)

Date: 2005-02-22 03:41 pm (UTC)
From: [identity profile] broadmeadow.livejournal.com
find . -type t, unlike dir /s only generates a list of files. So using this method will produce no bias.

Date: 2005-02-22 03:57 pm (UTC)
From: [identity profile] wimble.livejournal.com
no bias

Yes, where the original selection method does include bias: each of [livejournal.com profile] venta's artists only have 1 chance in 262 of being selected to supply a track, even if one of those artists has produced half of her actual mp3 collection.

Date: 2005-02-22 04:02 pm (UTC)
From: [identity profile] venta.livejournal.com
the original selection method does include bias

It was meant to. I have, for example, five directories of New Model Army mp3s, and only one directory of Baader Meinhof.

This does not mean I want Baader Meinhof to appear in the playlist only one fifth as often as NMA does.

Date: 2005-02-22 04:07 pm (UTC)
From: [identity profile] broadmeadow.livejournal.com
Ah yes, good point.

Which _may_ have been a desirable attribute of her original method, of course. Venta may wish to have her "random" playlist contain an even mix of artists and not be biased towards an artist she has a lot of. Although usually the most represented "artist" in a collection is "VARIOUS ARTISTS" (ie compilations) and so this probably isn't the case.

Which, er, I think leads me to conclude that the big floppity list is well suited to producing this random selection.

I wonder if Venta ever wonders why she bothers starting these threads. ;-)

Date: 2005-02-22 04:10 pm (UTC)
From: [identity profile] wimble.livejournal.com
I think I know why she starts them.
I wonder whether she ever wonders how to stop them. :)

Date: 2005-02-22 04:16 pm (UTC)
From: [identity profile] venta.livejournal.com
I wonder if Venta ever wonders why she bothers starting these threads. ;-)

Hey, I only start them, you don't think I read them, do you ?

Date: 2005-02-22 04:56 pm (UTC)
From: [identity profile] wimble.livejournal.com
Would "No" be the right answer?

Date: 2005-02-22 03:34 pm (UTC)
From: [identity profile] wimble.livejournal.com
It had occured to me that you probably didn't want to flatten the list, and this might be classed as an unfortunate side effect to a "reasonable" workaround.

The find is, in fact, even worse, as it doesn't traverse the file structure in alphabetical order, but in inode order(*). So traverses each directory in approximately chronological order(*). And therefore even more floppity than you'd expect.

(*) I think.

Date: 2005-02-22 03:45 pm (UTC)
From: [identity profile] broadmeadow.livejournal.com
Well, it would only be a list produced for the purpose of randomly selecting tracks. The directory structure itself would be untouched. With the list Venta could then simply ask "pick a number between 1 and n", and go an look up the track that the chosen number represented.

Date: 2005-02-22 03:56 pm (UTC)
From: [identity profile] wimble.livejournal.com
I know, but you'd kind of expect there to be some logical connection between track N and track N+1. Which there would be, as long as they're within the same directory (due to find being depth first). But you'd get great discontinuities as you crossed directory boundaries: my machine starts with U2, and then jumps to ABC (thus disproving my chronological theory, anyway).

On the other hand, given that it's the musical style that's important, the jump from "Peter Skellern" to "Suede" and then to "Percy Sledge", whilst being gradual in a lexicographical sense (note, I store them surname first!) is somewhat more disturbing when you actually listen to them.

Which proves that my point is still bobbins :)

Date: 2005-02-22 04:10 pm (UTC)
From: [identity profile] broadmeadow.livejournal.com
> you'd kind of expect there to be some logical connection between track N and track N+1

For the purpose of making a random selection from the collection, I don't think you would. You would not be listening to the tracks in the order in the list, rather in the order of randomly-selected entries from that list.

Profile

venta: (Default)
venta

December 2025

S M T W T F S
 123456
78910111213
14151617181920
212223 24252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 27th, 2025 04:34 am
Powered by Dreamwidth Studios