What's the beep??

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

What's the beep??

Post by dunbarx » Mon Mar 07, 2022 3:00 am

This:

Code: Select all

on mouseUp
   beep
   beep
   beep
   beep
end mouseUp
Only beeps once. Why do I never understand how things work?

Craig

glenn9
Posts: 223
Joined: Wed Jan 15, 2020 10:45 pm
Location: Europe

Re: What's the beep??

Post by glenn9 » Mon Mar 07, 2022 9:05 am

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9383
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: What's the beep??

Post by richmond62 » Mon Mar 07, 2022 9:23 am

Yup: when they are close together they fall over each other and get conflated.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: What's the beep??

Post by dunbarx » Mon Mar 07, 2022 2:47 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: What's the beep??

Post by dunbarx » Mon Mar 07, 2022 2:59 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”