.play Method

Function:

Loads new beeper pattern to play.

Syntax:

beep.play(byref pattern as string, patint as pl_beep_int)

Returns:

---

See Also:

beep. object


Parameter

Description

pattern

Pattern string, can include the following characters:

  • '-': the buzzer is off
  • 'B' or 'b': the buzzer is on
  • '~': looped pattern (can reside anywhere in the pattern string)
  • '*': double-speed pattern (can reside anywhere in the pattern string)
    • New in V1.1: You can use this symbol twice and, thus, obtain x4 speed if necessary!

patint

Defines whether the beep.play method is allowed to interrupt another pattern that is already playing:

0 — PL_BEEP_NOINT: cannot interrupt

1 — PL_BEEP_CANINT: can interrupt)


Details

Maximum pattern length is 16 "steps." The on_beep event is generated once the pattern finishes playing (looped patterns never finish playing).


.play Method

Details