Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Cd script?

Quila Dryke
Registered User
Join date: 28 Jul 2008
Posts: 3
10-10-2008 12:51
there is most likely a topic about this already, I couldn't find anything in search. Though well I wanna know where to get a script at to make cds in sl I remember one being called something like Zsound or something like that. Can anyone help me find such a script?
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
10-10-2008 12:58
you mean like a script that plays sound files in sequence? well sounds are limited to 10 seconds so you would have to cut the song into 10 second pieces. there are actually several freebies around second life that does that. the problem with that is, with lag, the sounds may not load in sequence. you could probably modify the script to preload the sounds before it's played IE: while sound 1 plays, sound 2 is preloaded, while sound 2 plays, sound 3 is preloaded etc
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Quila Dryke
Registered User
Join date: 28 Jul 2008
Posts: 3
10-10-2008 13:04
Yes, thats what I'm taking about .. Though I have to real scripting ability myself and I have no dang idea where to start looking (IE .. I know no free script places)
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
10-10-2008 13:34
i'm not in world to check it out right now. try searching in world for the scripting library or for free scripts. also on XstreetSl http://www.xstreetsl.com/ also look for some freebie places in world, several of them have "records" that use that use the scripts i'm talking about
_____________________
Dark Heart Emporium

http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020

want more layers for tattoos, specifically for the head? vote here
http://jira.secondlife.com/browse/VWR-1449?

llDetectedCollision* Functions similar to touch
http://jira.secondlife.com/browse/SVC-3369
Quila Dryke
Registered User
Join date: 28 Jul 2008
Posts: 3
10-10-2008 14:25
Thanks I'll see what I can find
Briana Dawson
Attach to Mouth
Join date: 23 Sep 2003
Posts: 5,855
10-10-2008 14:50
From: Ruthven Willenov
you could probably modify the script to preload the sounds before it's played IE: while sound 1 plays, sound 2 is preloaded, while sound 2 plays, sound 3 is preloaded etc


This is how the main sound player scripts have worked since 2003.
_____________________
WooT
------------------------------

http://www.secondcitizen.net/Forum/
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
10-10-2008 17:40
freebie music sequence script ive had forever since teen grid

CODE

//Archanox Underthorn
//-----------------------------------

string stringnum(integer number, integer digits)
{
string curstring = (string)number;

while(llStringLength(curstring) < digits)
{
curstring = "0" + curstring;
}

return curstring;
}


default
{
touch_start(integer total_number)
{


//----------------------------
//You only need to setup these 7 variables

//------------
//firstsongname is the text that comes before the file number and secondsongname is what comes after it
//put "" if either of them need to be blank
//REMEMBER to include .wav if its there
//i.e.- in Gorillaz001.wav:
//firstsongname is "Gorillaz" - secondsongname is ".wav"
//-------------
string firstsongname = "";
string secondsongname = " - Nine Inch Nails - Closer.wav";

//only change curfile if you want the song to start off on a specific file
integer curfile = 1;

//digits tells the script how many digit places the file numbering is
//i.e.- Gorillaz001.wav : there are 3 digits
integer digits = 2;

integer totalfiles = 38;
float volume = 2;

//---------------------------


llSetSoundQueueing(TRUE);
llPreloadSound(firstsongname + stringnum(1,digits) + secondsongname);
llPreloadSound(firstsongname + stringnum(2,digits) + secondsongname);
llSleep(10);

integer preloadfile = 3;

while(curfile <= totalfiles)
{
llPlaySound(firstsongname + stringnum(curfile,digits) + secondsongname, volume);
if(preloadfile <= totalfiles)
{
llPreloadSound(firstsongname + stringnum(preloadfile,digits) + secondsongname);
}
llSleep(9.7);
curfile += 1;
preloadfile += 1;
}
}

on_rez(integer param)
{
llResetScript();
}
}
Billy Islander
Registered User
Join date: 3 Nov 2006
Posts: 35
02-22-2009 08:55
Hi Quila , heres a very handy freebie tool that splits your mp3,s into segments for you and also encodes the mp3 to .wav ready to upload to sl.

http://www.sldepo.com/MP3Nibbler/[url]
Jaye Jeffries
Jaye Jeffries
Join date: 21 Oct 2006
Posts: 23
04-14-2009 06:35
That's an awesome script, and I've found it very useful - thanks to the person who posted it! (also Nibbler was useful). Does anybody know how to modify the above script so that it loops? I'm trying to have 3 sound files played in sequence, and loop over - for a bar background sound effect.

Cheers,
J