Chapter Contents

Previous

Next
CALL SOUND

CALL SOUND



Generates a sound with a specific frequency and duration

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 1/80ths of a second.


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,160);
run;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.