help-octave
[Top][All Lists]
Advanced

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

Re: Wavwrite() issue


From: Børge Strand-Bergesen
Subject: Re: Wavwrite() issue
Date: Fri, 6 May 2011 14:11:55 +0200

Hi Macy,

that did the trick! Thanks. Can someone please append the word
"normalized" to help wavwrite?

Borge

On Fri, May 6, 2011 at 01:01,  <address@hidden> wrote:
> 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]