discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Write WAV file in integer format?


From: John Ackermann N8UR
Subject: Re: [Discuss-gnuradio] Write WAV file in integer format?
Date: Mon, 8 Jan 2018 10:17:01 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Thanks, Andy. I had been doing that but found that while Gnuradio could play back the resulting WAV file, my target program couldn't. I thought the problem was the data type, but I think instead it was scaling.

When I did a "mult const" by 8192 on the data, I got results that worked just fine. Without the multiplication, I think the very low level (-100 dB range) stuff was lost in the conversion.

John
----

On 01/07/2018 06:19 PM, Andy Walls wrote:
From:   John Ackermann N8UR
Date:   Sun, 7 Jan 2018 16:59:32 -0500

I need to output IQ data from a Gnuradio script in 2-channel WAV
format using integer rather than floating point, as required by the
target program.


Starting with a complex stream, is there a trick in GRC to output
integer WAV data? I think I recall a reference to doing a "mult
const" but Google isn't helping me find it.


Ensure your I & Q components are scaled down to +/-1.0 max, then just
use a "Complex to Float" block feeding a 2 channel "Wav File Sink"
block set for 16 bits per sample.

-Andy




reply via email to

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