13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="savewave" xml:lang="en">
15
<refname>savewave</refname>
16
<refpurpose>save data into a sound wav file.</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>savewave(filename,x [, rate , nbits]);</synopsis>
23
<title>Arguments</title>
28
<para>a string. The path of the output wav file</para>
34
<para>a mxn matrix where m is the number of channels and n the
35
number of samples for each channel
42
<para>a scalar giving the sampling rate (number of sample per
43
second) 22050 is the default value.
50
<title>Description</title>
51
<para>save x into a wav sound file. you can transform other sound files
52
into wav file with the <literal>sox</literal> program.
56
<title>Examples</title>
57
<programlisting role="example"><![CDATA[
15
<refname>savewave</refname>
16
<refpurpose>save data into a sound wav file.</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>savewave(filename,x [, rate , nbits]);</synopsis>
23
<title>Arguments</title>
28
<para>a string. The path of the output wav file</para>
34
<para>a mxn matrix where m is the number of channels and n the
35
number of samples for each channel
42
<para>a scalar giving the sampling rate (number of sample per
43
second) 22050 is the default value.
50
<title>Description</title>
51
<para>save x into a wav sound file. you can transform other sound files
52
into wav file with the <literal>sox</literal> program.
56
<title>Examples</title>
57
<programlisting role="example"><![CDATA[
58
58
// At first we create 0.5 seconds of sound parameters.
64
64
s(nc/2:nc)=sin(2*%pi*330*t(nc/2:nc));
65
65
savewave(TMPDIR+'/foo.wav',s);
66
66
]]></programlisting>
68
<refsection role="see also">
69
<title>See Also</title>
70
<simplelist type="inline">
72
<link linkend="loadwave">loadwave</link>
75
<link linkend="analyze">analyze</link>
78
<link linkend="mapsound">mapsound</link>
68
<refsection role="see also">
69
<title>See Also</title>
70
<simplelist type="inline">
72
<link linkend="loadwave">loadwave</link>
75
<link linkend="analyze">analyze</link>
78
<link linkend="mapsound">mapsound</link>