[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-octave-devel] Bug#408268: marked as done (octave2.9-forge: wavwrite writes invalid WAV files)



Your message dated Sun, 4 Feb 2007 19:43:46 +0100
with message-id <20070204184346.GD13328@laboissiere.net>
and subject line [Pkg-octave-devel] Bug#408268: octave2.9-forge: wavwrite writes invalid WAV files
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: octave2.9-forge
Version: 2006.07.09+dfsg1-4
Severity: normal

The following small script:

clear
x = randn(1, 65536);
x = x / max(abs(x));
wavwrite('noise.wav', x)

seems unfailingly to write a WAV file which claims to have 32767
channels. It works fine with octave2.1-forge (with the parameters to
wavwrite reordered appropriately for the older API).

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages octave2.9-forge depends on:
ii  fftw3                    3.1.2-1         library for computing Fast Fourier
ii  lapack3 [liblapack.so.3] 3.0.20000531a-6 library of linear algebra routines
ii  libc6                    2.3.6.ds1-8     GNU C Library: Shared libraries
ii  libcln4                  1.1.13-2        Class Library for Numbers (C++)
ii  libgcc1                  1:4.1.1-21      GCC support library
ii  libgfortran1             4.1.1-21        Runtime library for GNU Fortran ap
ii  libginac1.3c2a           1.3.5-3         The GiNaC symbolic framework (runt
ii  libgmp3c2                2:4.2.1+dfsg-4  Multiprecision arithmetic library
ii  libgraphicsmagick++1     1.1.7-10        format-independent image processin
ii  libgraphicsmagick1       1.1.7-10        format-independent image processin
ii  libgsl0                  1.8-2           GNU Scientific Library (GSL) -- li
ii  libhdf5-serial-1.6.5-0 [ 1.6.5-3         Hierarchical Data Format 5 (HDF5) 
ii  libice6                  1:1.0.1-2       X11 Inter-Client Exchange library
ii  libjpeg62                6b-13           The Independent JPEG Group's JPEG 
ii  libncurses5              5.5-5           Shared libraries for terminal hand
ii  libnetcdf3               3.6.1-1         An interface for scientific data a
ii  libpcre3                 6.7-1           Perl 5 Compatible Regular Expressi
ii  libpng12-0               1.2.15~beta5-1  PNG library - runtime
ii  libqhull5                2003.1-2        Calculate convex hulls and related
ii  libreadline5             5.2-2           GNU readline and history libraries
ii  libsm6                   1:1.0.1-3       X11 Session Management library
ii  libstdc++6               4.1.1-21        The GNU Standard C++ Library v3
ii  libx11-6                 2:1.0.3-4       X11 client-side library
ii  octave2.9                2.9.9-6         GNU Octave language for numerical 
ii  refblas3 [libblas.so.3]  1.2-8           Basic Linear Algebra Subroutines 3
ii  zlib1g                   1:1.2.3-13      compression library - runtime

octave2.9-forge recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
* Reuben Thomas <rrt@sc3d.org> [2007-01-24 14:51]:

> Package: octave2.9-forge
> Version: 2006.07.09+dfsg1-4
> Severity: normal
> 
> The following small script:
> 
> clear
> x = randn(1, 65536);
> x = x / max(abs(x));
> wavwrite('noise.wav', x)
> 
> seems unfailingly to write a WAV file which claims to have 32767
> channels. It works fine with octave2.1-forge (with the parameters to
> wavwrite reordered appropriately for the older API).

According to the documentation:

octave2.9:1> help wavwrite
 -- Function File:  wavwrite(FILENAME, Y)
     Write Y to the canonical RIFF/WAVE sound file FILENAME. A sample
     rate of 8000 Hz and 16-bit samples are assumed. Each column of the
     data represents a separate channel.

your input matrix must be organized in columns.  The following code should
do what you want:

x = randn(65536, 1);
wavwrite('noise.wav', x)

I am therefore closing this bug report.

-- 
Rafael

--- End Message ---

Reply to: