OS/2 Procedures Language 2/REXX


Inf-HTML [About][Toc][Index] 0.9b (c) 1995 Peter Childs


BEEP




 >>--BEEP(frequency,duration)-------><

BEEP sounds the speaker at frequency (Hertz) for duration milliseconds. 
The frequency can be any number in the range 37 to 32767 Hertz. The 
duration can be any number in the range 1 to 60000 milliseconds. 
This routine is most useful when called as a subroutine. A null string is 
returned if the routine is successful. 
Here is an example: 

/* C scale */
note.1 = 262    /* middle C */
note.2 = 294    /*    D     */
note.3 = 330    /*    E     */
note.4 = 349    /*    F     */
note.5 = 392    /*    G     */
note.6 = 440    /*    A     */
note.7 = 494    /*    B     */
note.8 = 524    /*    C     */

do i=1 to 8
  call beep note.i,250    /* hold each note for */
                          /* one-quarter second */
end
  

Inf-HTML End Run - Successful