~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/sound/savewave.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH savewave 1 "April 1993" "Scilab Group" "Scilab Function"
2
 
.so ../sci.an
3
 
.SH NAME
4
 
savewave - save data into a sound <<wav>> file.
5
 
.SH CALLING SEQUENCE
6
 
.nf
7
 
savewave('file-name',x [, rate ]);
8
 
.fi
9
 
.SH PARAMETERS
10
 
.TP
11
 
x
12
 
: vector 
13
 
.TP
14
 
rate
15
 
: a scalar. 22050 is the default value.
16
 
.SH DESCRIPTION 
17
 
save x into a  wav sound file. you can transform other sound files
18
 
into wav file with the \fVsox\fR program.
19
 
.SH EXAMPLE
20
 
.nf
21
 
// At first we create 0.5 seconds of sound parameters.
22
 
t=soundsec(0.5);
23
 
// Then we generate the sound.
24
 
s=sin(440*t)+sin(220*t)/2+sin(880*t)/2;
25
 
[nr,nc]=size(t);
26
 
s(nc/2:nc)=sin(330*t(nc/2:nc));
27
 
savewave(TMPDIR+'/foo.wav',s);
28
 
.fi
29
 
.SH SEE ALSO
30
 
loadwave,  analyze, mapsound
31
 
 
32
 
 
33