Page 1 of 1
What's the beep??
Posted: Mon Mar 07, 2022 3:00 am
by dunbarx
This:
Code: Select all
on mouseUp
beep
beep
beep
beep
end mouseUp
Only beeps once. Why do I never understand how things work?
Craig
Re: What's the beep??
Posted: Mon Mar 07, 2022 9:05 am
by glenn9
Hi Craig,
I get separate bleeps with this:
Code: Select all
on mouseUp
beep
wait 0.5 seconds
beep
wait 0.5 seconds
beep
wait 0.5 seconds
beep
wait 0.5 seconds
end mouseUp
Regards,
Glenn
Re: What's the beep??
Posted: Mon Mar 07, 2022 9:23 am
by richmond62
Yup: when they are close together they fall over each other and get conflated.
Re: What's the beep??
Posted: Mon Mar 07, 2022 2:47 pm
by dunbarx
See? I really don't know how things work. I actually tried inserting "wait" statements in-line, but randomly and lazily simply chose "wait 2".
Not very long, i know. Perhaps I was led astray since I use "wait 0 with messages" a whole lot to give the engine some breathing room. Apparently the "beep" command requires a richer atmosphere.
Craig
Re: What's the beep??
Posted: Mon Mar 07, 2022 2:59 pm
by dunbarx
Ah, I knew there was some playfulness hidden in here somewhere. The following in a button script:
Code: Select all
on mouseUp
beep
wait 6
beep
wait 6
beep
end mouseUp
Is just about the limit on the "beep" command on my machine, an iMac 27, 3.5 GHz quad core Intel I5. More than 6, three beeps. Put a "5" in, and I get a mash of beeps and little staccato sounds. 4 and below, one beep.
Craig