Code: Select all
on mouseUp
beep 4
end mouseUp
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on mouseUp
beep 4
end mouseUp
Code: Select all
...
repeat 4
beep
wait 500 millisecs with messages
end repeat
...
This was tested on MacOX 10.5.7 Rev 3.0 and it still applies to MacOX 10.6.5 and Livecode 4.5.2.Setting the beepLoudness to 16777472 restores the
maximum loudness of system sound without distortion. Any value between about
6500000 and 16777472 sets the beeploudness to audible.
On a Mac this did produce a horrible sound in MacOX 10.5.7, in MacOX 10.6.5 it makes a "plopp" (loud) subsequent beeps "plopp" but not as loud. setting the beepLoudness to 16777472 restores the system sound. This is just to tell you that you might not want to try to restore the system settings for the system beep on a Mac with -1.Set the beepLoudness to -1 to use the default system setting
... which is handy to know (as Klaus indicated). Something that has caught me out in the past is setting the playLoudness to a low value, to make something in my stack play more softly, and neglecting to reset the playLoudness to the original value. This can inconvenience the user.If no audio clip, video clip, or player is specified, the setting of the playLoudness property applies to all sounds Revolution makes, including those made with the beep and play commands.
... so it plays 1 beep just fine, but seems to “swallow” a beep if you want multiples, i.e. beep 2 gives you 1 beep, beep 3 gives you two beeps, and so on.Cross-platform note:Windows and OS X do not execute the beepcommand if it's issued while a beep is playing. This means that if you specify a numberOfTimes on a Windows or OS X system, the user might hear fewer beeps because not all of them are sent to the speaker. To ensure that the user hears a specific number of beeps, use a loop with a waitcommand (where the wait time is at least as long as the beep sound's duration) after each beep.
Code: Select all
...
repeat 4
play ac "your beep sound here"
wait until the sound is "done" with messages
end repeat
...
Code: Select all
wait until the sound is "done" with messages
Well, we had an inflation in 1923 and those numbers were peanuts. That is the german angle on it I guess16777472 provides better volume than using 6500000. Who knew? Ah, the German mind