1
.TH savewave 1 "April 1993" "Scilab Group" "Scilab Function"
4
savewave - save data into a sound <<wav>> file.
7
savewave('file-name',x [, rate ]);
15
: a scalar. 22050 is the default value.
17
save x into a wav sound file. you can transform other sound files
18
into wav file with the \fVsox\fR program.
21
// At first we create 0.5 seconds of sound parameters.
23
// Then we generate the sound.
24
s=sin(440*t)+sin(220*t)/2+sin(880*t)/2;
26
s(nc/2:nc)=sin(330*t(nc/2:nc));
27
savewave(TMPDIR+'/foo.wav',s);
30
loadwave, analyze, mapsound