[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: Guiu Rocafort
Subject: [Octave-bug-tracker] [bug #37540] wavwrite doesn't produce a valid wav file
Date: Mon, 15 Oct 2012 10:19:50 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1

Follow-up Comment #4, bug #37540 (project octave):

I've tried the code and wavwrite generates a 8001 tracks wav with one sample
each track when passing a 2xN matrix.

I've taken a look at the /usr/share/octave/3.2.4/m/audio/wavwrite.m file and I
managed to fix the code so it behaves like matlab. I added a conditional that
transposes the variable if it happens to be a row vector. I'm not sure if
that's the best way of fixing it but it does the work ;)

I checked the modifications with 1x1, 1xn , nx1 and nxm cases and it seems i
didn't broke anything.

Maybe should the documentation be modified to explicitily mention this
behaviour ?

(file #26768, file #26769)

Additional Item Attachment:

File name: wavwrite.m                     Size:4 KB
File name: wavwrite.diff                  Size:0 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]