SAS Functions and CALL Routines under Windows |
Generates a sound with a specific frequency and duration.
Category: |
Special
|
Windows specifics: |
all
|
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.
The following statement produces a tone of frequency 523 cycles per second
(middle C) lasting 2 seconds:
data _null_;
call sound(523,2000);
run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.