help-octave
[Top][All Lists]
Advanced

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

Re: Wavwrite() issue


From: macy
Subject: Re: Wavwrite() issue
Date: Thu, 5 May 2011 16:01:33 -0700
User-agent: SquirrelMail/1.4.21

from memory, isn't the variable supposed to be less than 1?
-1 < x < 1

try
x=[1:40]/40.1;

> 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
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>




reply via email to

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