Previous Page | Next Page

SAS Functions and CALL Routines under Windows

CALL SOUND Routine: Windows



Generates a sound with a specific frequency and duration.
Category: Special
Windows specifics: all

Syntax
Example
Producing a Tone

Syntax

CALL SOUND(frequency,duration);

frequency

specifies the sound frequency in terms of cycles per second. The frequency must be at least 20 and no greater than 20,000.

duration

specifies the sound duration in milliseconds. The default is -1.


Example


Example 1: Producing a Tone

The following statement produces a tone of frequency 523 cycles per second (middle C) lasting 2 seconds:

data _null_;
   call sound(523,2000);
run;

Previous Page | Next Page | Top of Page