[lug] random album mp3 player
j davis
davis_compz at hotmail.com
Sat Nov 9 23:51:07 MST 2002
>From: Tony Dyson <the_anorak at worldnet.att.net>
>Reply-To: lug at lug.boulder.co.us
>To: lug at lug.boulder.co.us
>Subject: Re: [lug] random album mp3 player
>Date: Sat, 09 Nov 2002 23:11:05 -0700
>MIME-Version: 1.0
>Received: from community.tummy.com ([66.54.152.73]) by
>mc6-f16.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 9 Nov
>2002 22:11:19 -0800
>Received: (qmail 17345 invoked by uid 0); 10 Nov 2002 06:11:09 -0000
>Received: from localhost (HELO community.tummy.com) (127.0.0.1) by
>community.tummy.com with SMTP; 10 Nov 2002 06:11:03 -0000
>Received: (qmail 17191 invoked by alias); 10 Nov 2002 06:10:04 -0000
>Received: (qmail 17189 invoked by uid 0); 10 Nov 2002 06:10:04 -0000
>Received: from mtiwmhc12.worldnet.att.net (204.127.131.116) by
>community.tummy.com with SMTP; 10 Nov 2002 06:10:03 -0000
>Received: from worldnet.att.net ([12.86.5.16]) by
>mtiwmhc12.worldnet.att.net (InterMail vM.5.01.05.12
>201-253-122-126-112-20020820) with ESMTP id
><20021110060944.TXDX13909.mtiwmhc12.worldnet.att.net at worldnet.att.net>
> for <lug at lug.boulder.co.us>; Sun, 10 Nov 2002 06:09:44 +0000
>Return-Path: <alias-blug_dom-lug-owner at lug.boulder.co.us>
>Delivered-To: mailman-lists.lug.boulder.co.us-lug at lists.lug.boulder.co.us
>Delivered-To: alias-blug_dom-lug at lug.boulder.co.us
>Message-ID: <3DCDF879.4040706 at worldnet.att.net>
>Organization: Seldom
>User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1)
>Gecko/20020830
>X-Accept-Language: en-us, en
>References: <Pine.OSF.4.44.0211091820040.419500-100000 at jilau1.Colorado.EDU>
><3DCDF1E6.4050809 at worldnet.att.net>
>Sender: lug-admin at lug.boulder.co.us
>Errors-To: lug-admin at lug.boulder.co.us
>X-BeenThere: lug at lug.boulder.co.us
>X-Mailman-Version: 2.0.13
>Precedence: bulk
>X-Reply-To: the_anorak at worldnet.att.net
>List-Help: <mailto:lug-request at lug.boulder.co.us?subject=help>
>List-Post: <mailto:lug at lug.boulder.co.us>
>List-Subscribe:
><http://lists.lug.boulder.co.us/mailman/listinfo/lug>,<mailto:lug-request at lug.boulder.co.us?subject=subscribe>
>List-Id: Boulder (Colorado) Linux Users Group -- General Mailing List
><lug.lug.boulder.co.us>
>List-Unsubscribe:
><http://lists.lug.boulder.co.us/mailman/listinfo/lug>,<mailto:lug-request at lug.boulder.co.us?subject=unsubscribe>
>List-Archive: <http://lists.lug.boulder.co.us/pipermail/lug/>
>X-OriginalArrivalTime: 10 Nov 2002 06:11:19.0277 (UTC)
>FILETIME=[FC2C21D0:01C2887F]
>
>Scratch that idea. It just seems to create a list of all the tracks in all
>the .m3u files.
>
>Tony Dyson wrote:
>>AFAIR xmms will play from an ".m3u" file. You could try creating one for
>>a selection of albums & see if it will play them randomly.
>>
>>Ben Luey wrote:
>>
>>>This is probably a ridiculously easy question. How do I play a random
>>>album from my mp3 collection? Xmms and Zinf (formerly freeamp) will sort
>>>a
>>>playlist randomly, but I want to randomize by album, not by track /
>>>individual file. Or, if it could select a random playlist, I could make a
>>>play list for each album. This seems like an easy task -- can xmms or
>>>zinf
>>>do this?
>
this might work if you put you playlist in /home/records
HTH :)
jd
#! /usr/bin/perl
@array = `ls /home/records`;
$num = 0;
foreach $i (@array){
$num++;
}
srand; # not needed for 5.004 and
$index = rand @array;
$element = $array[$index];
while( $num > "0"){
`xmms $element`;
$num--;
}
>_______________________________________________
>Web Page: http://lug.boulder.co.us
>Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
More information about the LUG
mailing list