Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Clock chimes

Yingzi Xue
Registered User
Join date: 11 Jun 2008
Posts: 144
09-05-2008 21:10
I have a clock I needed to work out sound timing for. I wanted to add chimes, so what I did was chop it into 10 second pieces and then use llSleep for the appropriate pause. I've had the clock running for a few months now and I've noticed that it will play the chime correctly about 65 percent of the time, but lag causes the chime to not complete sometimes and other times it causes the chime to be slightly off. I haven't tried Mono yet, but I'm hoping it chimes better. We'll see.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-06-2008 22:16
*splits thread and retitles*
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
09-06-2008 22:23
From: Yingzi Xue
I have a clock I needed to work out sound timing for. I wanted to add chimes, so what I did was chop it into 10 second pieces and then use llSleep for the appropriate pause. I've had the clock running for a few months now and I've noticed that it will play the chime correctly about 65 percent of the time, but lag causes the chime to not complete sometimes and other times it causes the chime to be slightly off. I haven't tried Mono yet, but I'm hoping it chimes better. We'll see.


have you checked out the library clock script? it preloads the sounds a minute before the time it's supposed to go off, so as long as you are in the area when it preloads the sound, you should hear it correctly at the correct time
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
09-06-2008 22:29
Unfortunately, your problem isn't script speed. The issue is download speed. longer clips take longer to download than shorter clips.

When each sound is triggered, your client starts to download that clip. If it's playing poorly, it's probably because it's finishing downloading the smaller section before the starting section is done. And of course.. after an hour has gone by, the sounds tend to get unloaded bby the cache, and have to be redownloaded.

There's a function called "llPreloadSound".. but I'm not sure that's really your problem.

Honestly, to me, all multi-part sound applications end up sounding bad. I would suggest either

1. making shorter chimes that don't take longer than 10 seconds, or

2. make a single chime for each tone, and then SCRIPT the chime playing by trigering 4, 2, 3, 1, 1, 3, 4, 3...(http://en.wikipedia.org/wiki/Westminster_Quarters), or

3. ditching the westminster-style chiming, and go with a single-tone chime. I'd add a second script whose job it was, to preload the chime sound about 15-30 seconds before it's going to be used.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Wyatt Weatherwax
Registered User
Join date: 23 Oct 2007
Posts: 59
Just tolling the hour script
09-20-2008 06:11
Along these lines, I just want a script that tolls the hour. I've tried to modify the Library script located here by either removing the ChimeA and ChimeB or five 0.0 as the sound volume. In all cases the Bonging part never plays by itself. So, does anyone have a script that just will chime the hours?

Thanks so much