Scilab Function
Last update : 23/10/2007

wavwrite - writes .wav sound file

Calling Sequence

wavwrite(y,wavfile)
wavwrite(y,Fs,wavfile)

Parameters

Description

Utility function to save .wav sound file. wavwrite(y,wavfile) writes a sound file specified by the string wavfile. The data should be arranged with one channel per column. Amplitude values outside the range [-1,+1] are ignored.

wavwrite(y,Fs,wavfile) specifies in Fs the sample rate of the data in Hertz.

Examples


  A=matrix(1:6,2,3);
  wavwrite(A/6,TMPDIR+'/foo.wav');
  B=wavread(TMPDIR+'/foo.wav');
  maxi(abs(A- round(B*6)))
 
  

See Also

auread ,   wavread ,   savewave ,   analyze ,   mapsound ,