8/12/09

Randrandrandom

Once something awesome happened to me, I was downloading an album by torrent and I started listening to it at 50% of the total download. It was just l0L, because torrents download in "random" parts I listened to random parts of random length of random files non-stopping, and I loved it.


So I came up with this:


let R=$RANDOM%12000+1; let T=$RANDOM%2000+100; find "$1" -name "*mp3" -type f -print0 | xargs -0 mpg123 -C -Z -k $R -n $T


This one liner generates a random number between 1 and 12001 to use as the frame from which to start playing the other random number (between 100 and 2100) of frames from a random file in the directory specified by $1 (I use it in a script, to one-line it put the directory name directly there).


I love this shit, mainly because I listen to all kinds of shit: dnb, trance, brakcore, house, techno, minimal, alt-rock, psychedelic, goa, chillout, ambient, 8bit and noise; and randomixing between this stuff creates a fucking awesome effect.

2 comentarios:

Anónimo dijo...

You're a filthy stealing spic who doesn't work for a living and deserves the bottom feeding shit world of your third world country.

You're a linux using monkey.

alvare#ClrnD dijo...

Thanks for your reply, Anon!

Too bad you are the lowest kind of shit, the kind that doesn't even give her/his face when attacking someone, probably because you know for sure (probably subconsciously) that I'm better than you, and are somehow afraid of my magical power to make people crap their pants when they take the bus.

Also, what do you got against monkeys? They don't burn forests for money, nor contaminate the sea for power, nor they destroy the world they live on to masturbate; so far they are more intelligent than humans ...