discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Modifying vectors


From: Patrick Strasser
Subject: [Discuss-gnuradio] Modifying vectors
Date: Fri, 17 Mar 2006 10:27:45 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050602 Thunderbird/1.0.2 Mnenhy/0.7.2.0

Hello!

I've following working code:

        src = audio.source (sample_rate, options.audio_input)
        dst = audio.sink (sample_rate, options.audio_output)

        fft_size = 1024

        s2p = gr.serial_to_parallel(gr.sizeof_float, fft_size)

        fft = gr.fft_vfc(fft_size, True, window.hanning(fft_size))
        ifft = gr.fft_vcc(fft_size, False, window.hanning(fft_size))

        abs = gr.complex_to_mag()
        p2s = gr.parallel_to_serial(gr.sizeof_gr_complex, fft_size)

        self.connect((src, 0), s2p )
        self.connect(s2p, fft      )
        self.connect(fft, ifft     )
        self.connect(ifft, p2s     )
        self.connect(p2s, abs, (dst, 0))
        self.connect((src, 1), (dst, 1))

now I want to modify data between fft and ifft.
Do I have to make a custom block in python (I'd like to do this anyway...)?

Patrick
--
Engineers motto: cheap, good, fast: choose any two
Patrick Strasser <patrick dot strasser at  tugraz dot at>
Student of Telematik, Techn. University Graz, Austria




reply via email to

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