[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37540] wavwrite doesn't produce a valid wav f
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #37540] wavwrite doesn't produce a valid wav file |
Date: |
Wed, 10 Oct 2012 19:30:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1 |
Update of bug #37540 (project octave):
Status: None => Need Info
_______________________________________________________
Follow-up Comment #1:
Look at the help for wavwrite again. It requires that the first argument
contain column vectors only, where each column is a channel. You are using row
vectors, so your snippet here is attempting to create a WAVE file with 8001
channels of 1 sample each. Compare:
dur = 1;
fs = 8000;
tt = 0 : (1/fs) : dur;
xx = sin (2 * pi * 2000 * tt);
wavwrite (xx, fs, "temp.wav"); % Will not work
wavwrite (xx(:), fs, "temp.wav"); % OK
I don't see a bug here, unless you or someone else can demonstrate that Matlab
behaves differently when given a row vector.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37540>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/