home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Education Sampler 1992 [NeXTSTEP]
/
Education_1992_Sampler.iso
/
SoundAndMusic
/
resample
/
sweep.score
< prev
next >
Wrap
Text File
|
1991-06-26
|
759b
|
27 lines
/* Play glissando to test hearing. If the sound moves to one side, it means
one ear hears better than the other. If sound level dips and comes back,
it means there is a loss in both ears. Use headphones for best results. */
/* Usage: Place this in "gliss.score" and type "playscore gliss" */
double srate=22050.00;
double dur=1; /* duration of test */
info samplingRate:srate, tempo:60;
part glisser;
glisser synthPatch:"DBWave1vi" synthPatchCount:1;
envelope ampFun = [(0,0)(0.2,1)(dur-0.2,1)(dur,0)];
envelope freqFun = [(0,1000/4,4)(dur,1000,4)];
BEGIN;
glisser (noteUpdate) waveform:"" /* sine wave */ amp:.9;
glisser (noteUpdate) ampEnv:ampFun freqEnv:freqFun bearing:0;
t +1;
glisser (dur) freq:srate/2000; /* Play the note */
END;