Multiple beeps

Dar Scott dsc at swcp.com
Sat Aug 19 17:34:45 EDT 2006


On Aug 19, 2006, at 1:56 PM, LunchnMeets at aol.com wrote:

> send beep to me in 0 sec;beep;answer
>
> but the beeps are too far apart and there's too much of a delay  
> before the
> first beep.

The second beep in the above will beep first.  The one in the send  
will beep in the answer.

I don't get any delay in hearing the first beep.

The above is equivalent to this:

beep
send "beep" to me in 0 seconds
answer "Huh?"

The first beep returns right away.  It starts a .5 second beep.
The send is delayed until the answer dialog is open.
The answer takes (say) .4 seconds to open.
Once open the pending message can execute and the next beep occurs.

So the length of time between the start of the two beeps is the time  
it takes to open the answer.

One approach is to create a sound and play that.  It can have a pause  
you want at the start.

Or you can try something like this which makes a double-beep on my  
machine right when the answer opens:

on mouseUp
   send "dobeep" to me in 0 seconds
   answer "Huh?"
end mouseUp

on dobeep
   beep
   send beep to me in .15 seconds
end dobeep

On my machine a beep interrupts a beep, it does not wait for any  
queued beeps to finish.  So that comes out as Beebeep.

I was not able to see the delay at the start.

Dar



More information about the use-livecode mailing list