To prepare and import your own sounds, see:
Audacity  101

To find sounds on the web:  FindSounds

  Thinkerer Studios (Go there)
   

 

Sound Looper.   This script plays a selected script in a perpetual loop.   
default {
  state_entry()
 
{ llStopSound();
llLoopSound("docksl", 1);}
The only mod here is to insert your own sound in the quotes.
} default close

 

 

Tribble Call.  Plays the call of the tribble at random intervals  
default {
  state_entry()
 

{ llStopSound();
llSetTimerEvent(5.0); }

 

timer()

 
{ llSetTimerEvent( llFrand(70));
string soundname = "Tribbles";
vector pos = llGetPos();
llTriggerSoundLimited(soundname, 1.0, pos + <9,9,9>, pos - <9,9,9>); }
Mod to play your choice of sounds
} default close

 

Sound Runner.  Plays all the sounds in the prim.  5 min. between sounds.  
integer SoundNum;
integer SoundCount;
float wait = 300; //Number of seconds between sounds
Global variables
default {
  state_entry()
 
{ llSetTimerEvent(wait);
SoundCount=llGetInventoryNumber(INVENTORY_SOUND); }
 
timer()
 

{if(0 < SoundCount )

 

{if(SoundNum < SoundCount - 1)
{ SoundNum++; }

Nested if clause

else
{ SoundNum=0;
SoundCount=llGetInventoryNumber(INVENTORY_SOUND);}

Nested else clause
string soundname = llGetInventoryName(INVENTORY_SOUND, SoundNum) ;
vector Pos = llGetPos() ;
llTriggerSoundLimited(soundname, 1.0, Pos + <9,9,9>, Pos - <9,9,9>); }
Close top level if clause
  }
}
timer close
default close
                llTriggerSound( soundname, 1. );   } Mod line to trigger sound without linited range
The Thinkerer 05/09/2008
Copyright (c) D. F. Dansereau & S. H. Evans

Site Map

Where start?

LODScr
Famous fables