[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wavwrite() issue
From: |
Børge Strand-Bergesen |
Subject: |
Wavwrite() issue |
Date: |
Thu, 5 May 2011 22:12:31 +0200 |
Hi guys,
I'm having trouble with wavwrite(). The generated file doesn't seem to
contain my data. I'm using Octave 3.2.4 on Windows.
x=[1:40];
wavwrite([x' x'], 44100, 16, 'test2.wav');
produces this hex content:
52 49 46 46 c4 00 00 00 57 41 56 45 66 6d 74 20 10 00 00 00 01 00 02
00 44 ac 00 00 10 b1 02 00 04 00 10 00 64 61 74 61 a0 00 00 00 ff 7f
ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff
7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f
ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff
7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f
ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff
7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f
ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f ff 7f 00 00 00
00
The amount of data seems right, 80 16-bit words. But their contents are so-so.
Am I using the wrong sequence of parameters? I've consulted help
wavwrite which differs from the function referred to here:
http://newsgroups.derkeiler.com/Archive/Comp/comp.dsp/2007-05/msg01010.html
Thanks,
Borge
- Wavwrite() issue,
Børge Strand-Bergesen <=