.Play Method

Top  Previous  Next

 

Function:

Loads new beeper pattern to play.

Syntax:

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

Returns:

---

See Also:

Beep Object

 


Part

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_pat event is generated once the pattern finishes playing (looped patterns never finish playing).