From e8ffc004bc0fd1cec66629d1c92af8f68fde3249 Mon Sep 17 00:00:00 2001 From: cswiger Date: Tue, 13 May 2008 20:32:56 +0000 Subject: Added interp_fir_filter in place of zero sources, interleaver, filter scheme. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8417 221aa14e-8319-0410-a670-987f0aec2ac5 --- gr-atsc/src/python/interp.py | 13 ++----------- gr-atsc/src/python/interp_short.py | 14 +++----------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/gr-atsc/src/python/interp.py b/gr-atsc/src/python/interp.py index 3a1c92f09..ad69c6b34 100755 --- a/gr-atsc/src/python/interp.py +++ b/gr-atsc/src/python/interp.py @@ -44,25 +44,16 @@ def graph (args): sys.stderr.write('usage: interp.py input_file\n') sys.exit (1) - sampling_freq = 6400000 - tb = gr.top_block () src0 = gr.file_source (gr.sizeof_gr_complex,infile) - src1 = gr.sig_source_c (sampling_freq, gr.GR_CONST_WAVE, 1, 0) - src2 = gr.sig_source_c (sampling_freq, gr.GR_CONST_WAVE, 1, 0) - - interlv = gr.interleave(gr.sizeof_gr_complex) lp_coeffs = gr.firdes.low_pass ( 3, 19.2e6, 3.2e6, .5e6, gr.firdes.WIN_HAMMING ) - lp = gr.fir_filter_ccf ( 1, lp_coeffs ) + lp = gr.interp_fir_filter_ccf ( 1, lp_coeffs ) file = gr.file_sink(gr.sizeof_gr_complex,"/tmp/atsc_pipe_1") - tb.connect( src0, (interlv, 0) ) - tb.connect( src1, (interlv, 1) ) - tb.connect( src2, (interlv, 2) ) - tb.connect( interlv, lp, file ) + tb.connect( src0, lp, file ) tb.start() raw_input ('Head End: Press Enter to stop') diff --git a/gr-atsc/src/python/interp_short.py b/gr-atsc/src/python/interp_short.py index 33172dae3..d6b2ca123 100755 --- a/gr-atsc/src/python/interp_short.py +++ b/gr-atsc/src/python/interp_short.py @@ -27,7 +27,7 @@ # -f