-
Notifications
You must be signed in to change notification settings - Fork 0
/
RadioShifterPitchShiftHeadless.py
executable file
·852 lines (743 loc) · 45 KB
/
RadioShifterPitchShiftHeadless.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
#!/usr/bin/env python2
##################################################
# GNU Radio Python Flow Graph
# Title: FM radio FFT example
# Author: David Haworth, Abram Hindle
# Generated: Wed Jan 20 23:20:17 2016
##################################################
from gnuradio import analog
from gnuradio import audio
from gnuradio import blocks
from gnuradio import eng_notation
from gnuradio import filter
from gnuradio import gr
from gnuradio.eng_option import eng_option
from gnuradio.filter import firdes
from optparse import OptionParser
import osmosdr
import time
class RadioShifterPitchShiftHeadless(gr.top_block):
def __init__(self):
gr.top_block.__init__(self, "FM radio FFT example")
##################################################
# Variables
##################################################
self.variable_sample_rate_0 = variable_sample_rate_0 = 1e6
self.samp_rate = samp_rate = 44100
self.xlatecenter_8 = xlatecenter_8 = 0
self.xlatecenter_7 = xlatecenter_7 = 0
self.xlatecenter_6 = xlatecenter_6 = 0
self.xlatecenter_5 = xlatecenter_5 = 0
self.xlatecenter_4 = xlatecenter_4 = 0
self.xlatecenter_3 = xlatecenter_3 = 0
self.xlatecenter_2 = xlatecenter_2 = 0
self.xlatecenter = xlatecenter = 0
self.xlate_filter2 = xlate_filter2 = firdes.low_pass(1, samp_rate, 4000, 1000, firdes.WIN_HAMMING, 6.76)
self.xlate_filter = xlate_filter = firdes.low_pass(1, variable_sample_rate_0, 125000, 25000, firdes.WIN_HAMMING, 6.76)
self.variable_1 = variable_1 = 0
self.transition = transition = 1e6
self.rri = rri = 441
self.rrd = rrd = 500
self.quadrature = quadrature = 500000
self.pscfshift = pscfshift = 0
self.pscf8 = pscf8 = 0
self.pscf7 = pscf7 = 0
self.pscf6 = pscf6 = 0
self.pscf5 = pscf5 = 0
self.pscf4 = pscf4 = 0
self.pscf3 = pscf3 = 0
self.pscf2 = pscf2 = 0
self.pscf1 = pscf1 = 0
self.globaltune = globaltune = 0
self.cutoff = cutoff = 1e5
self.bptrans = bptrans = 100
self.bpsr = bpsr = 200000
self.bplow_4 = bplow_4 = 100
self.bplow_3 = bplow_3 = 100
self.bplow_2 = bplow_2 = 100
self.bplow_1 = bplow_1 = 100
self.bphi_4 = bphi_4 = 2.8e3
self.bphi_3 = bphi_3 = 2.8e3
self.bphi_2 = bphi_2 = 2.8e3
self.bphi_1 = bphi_1 = 2.8e3
self.audio_interp = audio_interp = 4
self.amp_8 = amp_8 = 0
self.amp_7 = amp_7 = 0
self.amp_6 = amp_6 = 0
self.amp_5 = amp_5 = 0
self.amp_4 = amp_4 = 0
self.amp_3 = amp_3 = 0
self.amp_2 = amp_2 = 0
self.amp_1 = amp_1 = 0
self.RF_Gain = RF_Gain = 35
self.CF = CF = 125.6e6
##################################################
# Blocks
##################################################
self.rational_resampler_xxx_1_0_1_0_0_2 = filter.rational_resampler_fff(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_1_0_0_1 = filter.rational_resampler_fff(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_1_0_0_0 = filter.rational_resampler_fff(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_1_0_0 = filter.rational_resampler_fff(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_1_0 = filter.rational_resampler_fff(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_1 = filter.rational_resampler_fff(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_0_1 = filter.rational_resampler_ccc(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_0_0_0_0_2 = filter.rational_resampler_ccc(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_0_0_0_0_1 = filter.rational_resampler_ccc(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_0_0_0_0_0 = filter.rational_resampler_ccc(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_0_0_0_0 = filter.rational_resampler_ccc(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_0_0_0 = filter.rational_resampler_ccc(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_0_0 = filter.rational_resampler_ccc(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0_0 = filter.rational_resampler_ccc(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_1_0 = filter.rational_resampler_fff(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.rational_resampler_xxx_0 = filter.rational_resampler_fff(
interpolation=rri,
decimation=rrd,
taps=None,
fractional_bw=None,
)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_2 = filter.freq_xlating_fir_filter_ccc(1, (1, ), pscf8+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_1 = filter.freq_xlating_fir_filter_ccc(1, (1, ), pscf7+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_0 = filter.freq_xlating_fir_filter_ccc(1, (1, ), pscf6+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0 = filter.freq_xlating_fir_filter_ccc(1, (1, ), pscf5+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_1_0_0 = filter.freq_xlating_fir_filter_ccc(1, (1, ), pscf4+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_1_0 = filter.freq_xlating_fir_filter_ccc(1, (1, ), pscf3+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_1 = filter.freq_xlating_fir_filter_ccc(1, (1, ), pscf2+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_2 = filter.freq_xlating_fir_filter_fcc(1, (1, ), pscf8+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_1 = filter.freq_xlating_fir_filter_fcc(1, (1, ), pscf7+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_0 = filter.freq_xlating_fir_filter_fcc(1, (1, ), pscf6+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0 = filter.freq_xlating_fir_filter_fcc(1, (1, ), pscf5+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0 = filter.freq_xlating_fir_filter_fcc(1, (1, ), pscf4+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_0_0_0 = filter.freq_xlating_fir_filter_fcc(1, (1, ), pscf3+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_0_0 = filter.freq_xlating_fir_filter_fcc(1, (1, ), pscf2+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1_0 = filter.freq_xlating_fir_filter_fcc(1, (1, ), pscf1+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_1 = filter.freq_xlating_fir_filter_ccc(1, (1, ), pscf1+pscfshift, samp_rate)
self.freq_xlating_fir_filter_xxx_0_1 = filter.freq_xlating_fir_filter_ccc(5, (xlate_filter), xlatecenter_3+globaltune, variable_sample_rate_0)
self.freq_xlating_fir_filter_xxx_0_0_0_0_2 = filter.freq_xlating_fir_filter_ccc(5, (xlate_filter), xlatecenter_8+globaltune, variable_sample_rate_0)
self.freq_xlating_fir_filter_xxx_0_0_0_0_1 = filter.freq_xlating_fir_filter_ccc(5, (xlate_filter), xlatecenter_7+globaltune, variable_sample_rate_0)
self.freq_xlating_fir_filter_xxx_0_0_0_0_0 = filter.freq_xlating_fir_filter_ccc(5, (xlate_filter), xlatecenter_6+globaltune, variable_sample_rate_0)
self.freq_xlating_fir_filter_xxx_0_0_0_0 = filter.freq_xlating_fir_filter_ccc(5, (xlate_filter), xlatecenter_5+globaltune, variable_sample_rate_0)
self.freq_xlating_fir_filter_xxx_0_0_0 = filter.freq_xlating_fir_filter_ccc(5, (xlate_filter), xlatecenter_4+globaltune, variable_sample_rate_0)
self.freq_xlating_fir_filter_xxx_0_0 = filter.freq_xlating_fir_filter_ccc(5, (xlate_filter), xlatecenter_2+globaltune, variable_sample_rate_0)
self.freq_xlating_fir_filter_xxx_0 = filter.freq_xlating_fir_filter_ccc(5, (xlate_filter), xlatecenter+globaltune, variable_sample_rate_0)
self.blocks_multiply_const_vxx_0_1 = blocks.multiply_const_vff((amp_1, ))
self.blocks_multiply_const_vxx_0_0_2 = blocks.multiply_const_vff((amp_2, ))
self.blocks_multiply_const_vxx_0_0_1_1_2 = blocks.multiply_const_vff((amp_8, ))
self.blocks_multiply_const_vxx_0_0_1_1_1 = blocks.multiply_const_vff((amp_7, ))
self.blocks_multiply_const_vxx_0_0_1_1_0 = blocks.multiply_const_vff((amp_6, ))
self.blocks_multiply_const_vxx_0_0_1_1 = blocks.multiply_const_vff((amp_5, ))
self.blocks_multiply_const_vxx_0_0_1_0_0_2 = blocks.multiply_const_vff((amp_8, ))
self.blocks_multiply_const_vxx_0_0_1_0_0_1 = blocks.multiply_const_vff((amp_7, ))
self.blocks_multiply_const_vxx_0_0_1_0_0_0 = blocks.multiply_const_vff((amp_6, ))
self.blocks_multiply_const_vxx_0_0_1_0_0 = blocks.multiply_const_vff((amp_5, ))
self.blocks_multiply_const_vxx_0_0_1_0 = blocks.multiply_const_vff((amp_4, ))
self.blocks_multiply_const_vxx_0_0_1 = blocks.multiply_const_vff((amp_4, ))
self.blocks_multiply_const_vxx_0_0_0_0 = blocks.multiply_const_vff((amp_3, ))
self.blocks_multiply_const_vxx_0_0_0 = blocks.multiply_const_vff((amp_3, ))
self.blocks_multiply_const_vxx_0_0 = blocks.multiply_const_vff((amp_2, ))
self.blocks_multiply_const_vxx_0 = blocks.multiply_const_vff((amp_1, ))
self.blocks_complex_to_float_7 = blocks.complex_to_float(1)
self.blocks_complex_to_float_6_0_2 = blocks.complex_to_float(1)
self.blocks_complex_to_float_6_0_1 = blocks.complex_to_float(1)
self.blocks_complex_to_float_6_0_0 = blocks.complex_to_float(1)
self.blocks_complex_to_float_6_0 = blocks.complex_to_float(1)
self.blocks_complex_to_float_6 = blocks.complex_to_float(1)
self.blocks_complex_to_float_5_0_2 = blocks.complex_to_float(1)
self.blocks_complex_to_float_5_0_1 = blocks.complex_to_float(1)
self.blocks_complex_to_float_5_0_0 = blocks.complex_to_float(1)
self.blocks_complex_to_float_5_0 = blocks.complex_to_float(1)
self.blocks_complex_to_float_5 = blocks.complex_to_float(1)
self.blocks_complex_to_float_4 = blocks.complex_to_float(1)
self.blocks_complex_to_float_3 = blocks.complex_to_float(1)
self.blocks_complex_to_float_2 = blocks.complex_to_float(1)
self.blocks_complex_to_float_1 = blocks.complex_to_float(1)
self.blocks_complex_to_float_0 = blocks.complex_to_float(1)
self.blocks_add_xx_1_1_0_0_0 = blocks.add_vff(1)
self.blocks_add_xx_1_1_0_0 = blocks.add_vff(1)
self.blocks_add_xx_1_1_0 = blocks.add_vff(1)
self.blocks_add_xx_1_1 = blocks.add_vff(1)
self.blocks_add_xx_1_0 = blocks.add_vff(1)
self.blocks_add_xx_1 = blocks.add_vff(1)
self.band_pass_filter_0_0_0_0_1 = filter.fir_filter_ccf(4, firdes.band_pass(
1, bpsr, bplow_3, bphi_3, bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_2 = filter.fir_filter_ccf(4, firdes.band_pass(
1, bpsr, bplow_4, bphi_4, bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_1 = filter.fir_filter_ccf(4, firdes.band_pass(
1, bpsr, bplow_4, bphi_4, bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_0 = filter.fir_filter_ccf(4, firdes.band_pass(
1, bpsr, bplow_4, bphi_4, bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0 = filter.fir_filter_ccf(4, firdes.band_pass(
1, bpsr, bplow_4, bphi_4, bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0 = filter.fir_filter_ccf(4, firdes.band_pass(
1, bpsr, bplow_4, bphi_4, bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0 = filter.fir_filter_ccf(4, firdes.band_pass(
1, bpsr, bplow_2, bphi_2, bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0 = filter.fir_filter_ccf(4, firdes.band_pass(
1, bpsr, bplow_1, bphi_1, bptrans, firdes.WIN_HAMMING, 6.76))
self.audio_sink_4 = audio.sink(44100, "Radio:AM2", True)
self.audio_sink_3 = audio.sink(44100, "Radio:NFM2", True)
self.audio_sink_2 = audio.sink(44100, "Radio:AM1", True)
self.audio_sink_1 = audio.sink(44100, "Radio:NFM1", True)
self.analog_nbfm_rx_0_0_1 = analog.nbfm_rx(
audio_rate=50000,
quad_rate=int(variable_sample_rate_0/5),
tau=75e-6,
max_dev=12500,
)
self.analog_nbfm_rx_0_0_0_0_0_2 = analog.nbfm_rx(
audio_rate=50000,
quad_rate=int(variable_sample_rate_0/5),
tau=75e-6,
max_dev=12500,
)
self.analog_nbfm_rx_0_0_0_0_0_1 = analog.nbfm_rx(
audio_rate=50000,
quad_rate=int(variable_sample_rate_0/5),
tau=75e-6,
max_dev=12500,
)
self.analog_nbfm_rx_0_0_0_0_0_0 = analog.nbfm_rx(
audio_rate=50000,
quad_rate=int(variable_sample_rate_0/5),
tau=75e-6,
max_dev=12500,
)
self.analog_nbfm_rx_0_0_0_0_0 = analog.nbfm_rx(
audio_rate=50000,
quad_rate=int(variable_sample_rate_0/5),
tau=75e-6,
max_dev=12500,
)
self.analog_nbfm_rx_0_0_0_0 = analog.nbfm_rx(
audio_rate=50000,
quad_rate=int(variable_sample_rate_0/5),
tau=75e-6,
max_dev=12500,
)
self.analog_nbfm_rx_0_0_0 = analog.nbfm_rx(
audio_rate=50000,
quad_rate=int(variable_sample_rate_0/5),
tau=75e-6,
max_dev=12500,
)
self.analog_nbfm_rx_0_0 = analog.nbfm_rx(
audio_rate=50000,
quad_rate=int(variable_sample_rate_0/5),
tau=75e-6,
max_dev=12500,
)
self.RTL820T = osmosdr.source( args="numchan=" + str(1) + " " + "" )
self.RTL820T.set_sample_rate(variable_sample_rate_0)
self.RTL820T.set_center_freq(CF, 0)
self.RTL820T.set_freq_corr(0, 0)
self.RTL820T.set_dc_offset_mode(2, 0)
self.RTL820T.set_iq_balance_mode(0, 0)
self.RTL820T.set_gain_mode(False, 0)
self.RTL820T.set_gain(RF_Gain, 0)
self.RTL820T.set_if_gain(20, 0)
self.RTL820T.set_bb_gain(20, 0)
self.RTL820T.set_antenna("", 0)
self.RTL820T.set_bandwidth(1e6, 0)
##################################################
# Connections
##################################################
self.connect((self.RTL820T, 0), (self.freq_xlating_fir_filter_xxx_0, 0))
self.connect((self.RTL820T, 0), (self.freq_xlating_fir_filter_xxx_0_0, 0))
self.connect((self.RTL820T, 0), (self.freq_xlating_fir_filter_xxx_0_0_0, 0))
self.connect((self.RTL820T, 0), (self.freq_xlating_fir_filter_xxx_0_0_0_0, 0))
self.connect((self.RTL820T, 0), (self.freq_xlating_fir_filter_xxx_0_0_0_0_0, 0))
self.connect((self.RTL820T, 0), (self.freq_xlating_fir_filter_xxx_0_0_0_0_1, 0))
self.connect((self.RTL820T, 0), (self.freq_xlating_fir_filter_xxx_0_0_0_0_2, 0))
self.connect((self.RTL820T, 0), (self.freq_xlating_fir_filter_xxx_0_1, 0))
self.connect((self.analog_nbfm_rx_0_0, 0), (self.rational_resampler_xxx_1_0, 0))
self.connect((self.analog_nbfm_rx_0_0_0, 0), (self.rational_resampler_xxx_1_0_1, 0))
self.connect((self.analog_nbfm_rx_0_0_0_0, 0), (self.rational_resampler_xxx_1_0_1_0, 0))
self.connect((self.analog_nbfm_rx_0_0_0_0_0, 0), (self.rational_resampler_xxx_1_0_1_0_0, 0))
self.connect((self.analog_nbfm_rx_0_0_0_0_0_0, 0), (self.rational_resampler_xxx_1_0_1_0_0_0, 0))
self.connect((self.analog_nbfm_rx_0_0_0_0_0_1, 0), (self.rational_resampler_xxx_1_0_1_0_0_1, 0))
self.connect((self.analog_nbfm_rx_0_0_0_0_0_2, 0), (self.rational_resampler_xxx_1_0_1_0_0_2, 0))
self.connect((self.analog_nbfm_rx_0_0_1, 0), (self.rational_resampler_xxx_0, 0))
self.connect((self.band_pass_filter_0_0_0_0, 0), (self.rational_resampler_xxx_1_0_0, 0))
self.connect((self.band_pass_filter_0_0_0_0_0, 0), (self.rational_resampler_xxx_1_0_0_0, 0))
self.connect((self.band_pass_filter_0_0_0_0_0_0, 0), (self.rational_resampler_xxx_1_0_0_0_0, 0))
self.connect((self.band_pass_filter_0_0_0_0_0_0_0, 0), (self.rational_resampler_xxx_1_0_0_0_0_0, 0))
self.connect((self.band_pass_filter_0_0_0_0_0_0_0_0, 0), (self.rational_resampler_xxx_1_0_0_0_0_0_0, 0))
self.connect((self.band_pass_filter_0_0_0_0_0_0_0_1, 0), (self.rational_resampler_xxx_1_0_0_0_0_0_1, 0))
self.connect((self.band_pass_filter_0_0_0_0_0_0_0_2, 0), (self.rational_resampler_xxx_1_0_0_0_0_0_2, 0))
self.connect((self.band_pass_filter_0_0_0_0_1, 0), (self.rational_resampler_xxx_1_0_0_1, 0))
self.connect((self.blocks_add_xx_1, 0), (self.audio_sink_1, 0))
self.connect((self.blocks_add_xx_1_0, 0), (self.audio_sink_2, 0))
self.connect((self.blocks_add_xx_1_1, 0), (self.audio_sink_3, 0))
self.connect((self.blocks_add_xx_1_1_0, 0), (self.audio_sink_4, 0))
self.connect((self.blocks_add_xx_1_1_0_0, 0), (self.blocks_add_xx_1_1, 2))
self.connect((self.blocks_add_xx_1_1_0_0_0, 0), (self.blocks_add_xx_1_1_0, 2))
self.connect((self.blocks_complex_to_float_0, 0), (self.blocks_multiply_const_vxx_0, 0))
self.connect((self.blocks_complex_to_float_1, 0), (self.blocks_multiply_const_vxx_0_1, 0))
self.connect((self.blocks_complex_to_float_2, 0), (self.blocks_multiply_const_vxx_0_0, 0))
self.connect((self.blocks_complex_to_float_3, 0), (self.blocks_multiply_const_vxx_0_0_2, 0))
self.connect((self.blocks_complex_to_float_4, 0), (self.blocks_multiply_const_vxx_0_0_0_0, 0))
self.connect((self.blocks_complex_to_float_5, 0), (self.blocks_multiply_const_vxx_0_0_1_0, 0))
self.connect((self.blocks_complex_to_float_5_0, 0), (self.blocks_multiply_const_vxx_0_0_1_0_0, 0))
self.connect((self.blocks_complex_to_float_5_0_0, 0), (self.blocks_multiply_const_vxx_0_0_1_0_0_0, 0))
self.connect((self.blocks_complex_to_float_5_0_1, 0), (self.blocks_multiply_const_vxx_0_0_1_0_0_1, 0))
self.connect((self.blocks_complex_to_float_5_0_2, 0), (self.blocks_multiply_const_vxx_0_0_1_0_0_2, 0))
self.connect((self.blocks_complex_to_float_6, 0), (self.blocks_multiply_const_vxx_0_0_1, 0))
self.connect((self.blocks_complex_to_float_6_0, 0), (self.blocks_multiply_const_vxx_0_0_1_1, 0))
self.connect((self.blocks_complex_to_float_6_0_0, 0), (self.blocks_multiply_const_vxx_0_0_1_1_0, 0))
self.connect((self.blocks_complex_to_float_6_0_1, 0), (self.blocks_multiply_const_vxx_0_0_1_1_1, 0))
self.connect((self.blocks_complex_to_float_6_0_2, 0), (self.blocks_multiply_const_vxx_0_0_1_1_2, 0))
self.connect((self.blocks_complex_to_float_7, 0), (self.blocks_multiply_const_vxx_0_0_0, 0))
self.connect((self.blocks_multiply_const_vxx_0, 0), (self.blocks_add_xx_1, 0))
self.connect((self.blocks_multiply_const_vxx_0_0, 0), (self.blocks_add_xx_1, 1))
self.connect((self.blocks_multiply_const_vxx_0_0_0, 0), (self.blocks_add_xx_1_1, 0))
self.connect((self.blocks_multiply_const_vxx_0_0_0_0, 0), (self.blocks_add_xx_1_1_0, 0))
self.connect((self.blocks_multiply_const_vxx_0_0_1, 0), (self.blocks_add_xx_1_1, 1))
self.connect((self.blocks_multiply_const_vxx_0_0_1_0, 0), (self.blocks_add_xx_1_1_0, 1))
self.connect((self.blocks_multiply_const_vxx_0_0_1_0_0, 0), (self.blocks_add_xx_1_1_0_0_0, 0))
self.connect((self.blocks_multiply_const_vxx_0_0_1_0_0_0, 0), (self.blocks_add_xx_1_1_0_0_0, 1))
self.connect((self.blocks_multiply_const_vxx_0_0_1_0_0_1, 0), (self.blocks_add_xx_1_1_0_0_0, 2))
self.connect((self.blocks_multiply_const_vxx_0_0_1_0_0_2, 0), (self.blocks_add_xx_1_1_0_0_0, 3))
self.connect((self.blocks_multiply_const_vxx_0_0_1_1, 0), (self.blocks_add_xx_1_1_0_0, 0))
self.connect((self.blocks_multiply_const_vxx_0_0_1_1_0, 0), (self.blocks_add_xx_1_1_0_0, 1))
self.connect((self.blocks_multiply_const_vxx_0_0_1_1_1, 0), (self.blocks_add_xx_1_1_0_0, 2))
self.connect((self.blocks_multiply_const_vxx_0_0_1_1_2, 0), (self.blocks_add_xx_1_1_0_0, 3))
self.connect((self.blocks_multiply_const_vxx_0_0_2, 0), (self.blocks_add_xx_1_0, 1))
self.connect((self.blocks_multiply_const_vxx_0_1, 0), (self.blocks_add_xx_1_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0, 0), (self.analog_nbfm_rx_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0, 0), (self.band_pass_filter_0_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0, 0), (self.analog_nbfm_rx_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0, 0), (self.band_pass_filter_0_0_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0, 0), (self.analog_nbfm_rx_0_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0, 0), (self.band_pass_filter_0_0_0_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0_0, 0), (self.analog_nbfm_rx_0_0_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0_0, 0), (self.band_pass_filter_0_0_0_0_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0_0_0, 0), (self.analog_nbfm_rx_0_0_0_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0_0_0, 0), (self.band_pass_filter_0_0_0_0_0_0_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0_0_1, 0), (self.analog_nbfm_rx_0_0_0_0_0_1, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0_0_1, 0), (self.band_pass_filter_0_0_0_0_0_0_0_1, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0_0_2, 0), (self.analog_nbfm_rx_0_0_0_0_0_2, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_0_0_0_2, 0), (self.band_pass_filter_0_0_0_0_0_0_0_2, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_1, 0), (self.analog_nbfm_rx_0_0_1, 0))
self.connect((self.freq_xlating_fir_filter_xxx_0_1, 0), (self.band_pass_filter_0_0_0_0_1, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1, 0), (self.blocks_complex_to_float_1, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_0, 0), (self.blocks_complex_to_float_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_0_0, 0), (self.blocks_complex_to_float_2, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_0_0_0, 0), (self.blocks_complex_to_float_7, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_0_0_0_0, 0), (self.blocks_complex_to_float_6, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0, 0), (self.blocks_complex_to_float_6_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_0, 0), (self.blocks_complex_to_float_6_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_1, 0), (self.blocks_complex_to_float_6_0_1, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_2, 0), (self.blocks_complex_to_float_6_0_2, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_1, 0), (self.blocks_complex_to_float_3, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_1_0, 0), (self.blocks_complex_to_float_4, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_1_0_0, 0), (self.blocks_complex_to_float_5, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_1_0_0_0, 0), (self.blocks_complex_to_float_5_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_1_0_0_0_0, 0), (self.blocks_complex_to_float_5_0_0, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_1_0_0_0_1, 0), (self.blocks_complex_to_float_5_0_1, 0))
self.connect((self.freq_xlating_fir_filter_xxx_1_1_0_0_0_2, 0), (self.blocks_complex_to_float_5_0_2, 0))
self.connect((self.rational_resampler_xxx_0, 0), (self.freq_xlating_fir_filter_xxx_1_0_0_0, 0))
self.connect((self.rational_resampler_xxx_1_0, 0), (self.freq_xlating_fir_filter_xxx_1_0, 0))
self.connect((self.rational_resampler_xxx_1_0_0, 0), (self.freq_xlating_fir_filter_xxx_1, 0))
self.connect((self.rational_resampler_xxx_1_0_0_0, 0), (self.freq_xlating_fir_filter_xxx_1_1, 0))
self.connect((self.rational_resampler_xxx_1_0_0_0_0, 0), (self.freq_xlating_fir_filter_xxx_1_1_0_0, 0))
self.connect((self.rational_resampler_xxx_1_0_0_0_0_0, 0), (self.freq_xlating_fir_filter_xxx_1_1_0_0_0, 0))
self.connect((self.rational_resampler_xxx_1_0_0_0_0_0_0, 0), (self.freq_xlating_fir_filter_xxx_1_1_0_0_0_0, 0))
self.connect((self.rational_resampler_xxx_1_0_0_0_0_0_1, 0), (self.freq_xlating_fir_filter_xxx_1_1_0_0_0_1, 0))
self.connect((self.rational_resampler_xxx_1_0_0_0_0_0_2, 0), (self.freq_xlating_fir_filter_xxx_1_1_0_0_0_2, 0))
self.connect((self.rational_resampler_xxx_1_0_0_1, 0), (self.freq_xlating_fir_filter_xxx_1_1_0, 0))
self.connect((self.rational_resampler_xxx_1_0_1, 0), (self.freq_xlating_fir_filter_xxx_1_0_0, 0))
self.connect((self.rational_resampler_xxx_1_0_1_0, 0), (self.freq_xlating_fir_filter_xxx_1_0_0_0_0, 0))
self.connect((self.rational_resampler_xxx_1_0_1_0_0, 0), (self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0, 0))
self.connect((self.rational_resampler_xxx_1_0_1_0_0_0, 0), (self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_0, 0))
self.connect((self.rational_resampler_xxx_1_0_1_0_0_1, 0), (self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_1, 0))
self.connect((self.rational_resampler_xxx_1_0_1_0_0_2, 0), (self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_2, 0))
def get_variable_sample_rate_0(self):
return self.variable_sample_rate_0
def set_variable_sample_rate_0(self, variable_sample_rate_0):
self.variable_sample_rate_0 = variable_sample_rate_0
self.set_xlate_filter(firdes.low_pass(1, self.variable_sample_rate_0, 125000, 25000, firdes.WIN_HAMMING, 6.76))
self.RTL820T.set_sample_rate(self.variable_sample_rate_0)
def get_samp_rate(self):
return self.samp_rate
def set_samp_rate(self, samp_rate):
self.samp_rate = samp_rate
self.set_xlate_filter2(firdes.low_pass(1, self.samp_rate, 4000, 1000, firdes.WIN_HAMMING, 6.76))
def get_xlatecenter_8(self):
return self.xlatecenter_8
def set_xlatecenter_8(self, xlatecenter_8):
self.xlatecenter_8 = xlatecenter_8
self.freq_xlating_fir_filter_xxx_0_0_0_0_2.set_center_freq(self.xlatecenter_8+self.globaltune)
def get_xlatecenter_7(self):
return self.xlatecenter_7
def set_xlatecenter_7(self, xlatecenter_7):
self.xlatecenter_7 = xlatecenter_7
self.freq_xlating_fir_filter_xxx_0_0_0_0_1.set_center_freq(self.xlatecenter_7+self.globaltune)
def get_xlatecenter_6(self):
return self.xlatecenter_6
def set_xlatecenter_6(self, xlatecenter_6):
self.xlatecenter_6 = xlatecenter_6
self.freq_xlating_fir_filter_xxx_0_0_0_0_0.set_center_freq(self.xlatecenter_6+self.globaltune)
def get_xlatecenter_5(self):
return self.xlatecenter_5
def set_xlatecenter_5(self, xlatecenter_5):
self.xlatecenter_5 = xlatecenter_5
self.freq_xlating_fir_filter_xxx_0_0_0_0.set_center_freq(self.xlatecenter_5+self.globaltune)
def get_xlatecenter_4(self):
return self.xlatecenter_4
def set_xlatecenter_4(self, xlatecenter_4):
self.xlatecenter_4 = xlatecenter_4
self.freq_xlating_fir_filter_xxx_0_0_0.set_center_freq(self.xlatecenter_4+self.globaltune)
def get_xlatecenter_3(self):
return self.xlatecenter_3
def set_xlatecenter_3(self, xlatecenter_3):
self.xlatecenter_3 = xlatecenter_3
self.freq_xlating_fir_filter_xxx_0_1.set_center_freq(self.xlatecenter_3+self.globaltune)
def get_xlatecenter_2(self):
return self.xlatecenter_2
def set_xlatecenter_2(self, xlatecenter_2):
self.xlatecenter_2 = xlatecenter_2
self.freq_xlating_fir_filter_xxx_0_0.set_center_freq(self.xlatecenter_2+self.globaltune)
def get_xlatecenter(self):
return self.xlatecenter
def set_xlatecenter(self, xlatecenter):
self.xlatecenter = xlatecenter
self.freq_xlating_fir_filter_xxx_0.set_center_freq(self.xlatecenter+self.globaltune)
def get_xlate_filter2(self):
return self.xlate_filter2
def set_xlate_filter2(self, xlate_filter2):
self.xlate_filter2 = xlate_filter2
def get_xlate_filter(self):
return self.xlate_filter
def set_xlate_filter(self, xlate_filter):
self.xlate_filter = xlate_filter
self.freq_xlating_fir_filter_xxx_0.set_taps((self.xlate_filter))
self.freq_xlating_fir_filter_xxx_0_0.set_taps((self.xlate_filter))
self.freq_xlating_fir_filter_xxx_0_0_0.set_taps((self.xlate_filter))
self.freq_xlating_fir_filter_xxx_0_0_0_0.set_taps((self.xlate_filter))
self.freq_xlating_fir_filter_xxx_0_0_0_0_0.set_taps((self.xlate_filter))
self.freq_xlating_fir_filter_xxx_0_0_0_0_1.set_taps((self.xlate_filter))
self.freq_xlating_fir_filter_xxx_0_0_0_0_2.set_taps((self.xlate_filter))
self.freq_xlating_fir_filter_xxx_0_1.set_taps((self.xlate_filter))
def get_variable_1(self):
return self.variable_1
def set_variable_1(self, variable_1):
self.variable_1 = variable_1
def get_transition(self):
return self.transition
def set_transition(self, transition):
self.transition = transition
def get_rri(self):
return self.rri
def set_rri(self, rri):
self.rri = rri
def get_rrd(self):
return self.rrd
def set_rrd(self, rrd):
self.rrd = rrd
def get_quadrature(self):
return self.quadrature
def set_quadrature(self, quadrature):
self.quadrature = quadrature
def get_pscfshift(self):
return self.pscfshift
def set_pscfshift(self, pscfshift):
self.pscfshift = pscfshift
self.freq_xlating_fir_filter_xxx_1.set_center_freq(self.pscf1+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0.set_center_freq(self.pscf1+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0_0.set_center_freq(self.pscf2+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0_0_0.set_center_freq(self.pscf3+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0.set_center_freq(self.pscf4+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0.set_center_freq(self.pscf5+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_0.set_center_freq(self.pscf6+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_1.set_center_freq(self.pscf7+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_2.set_center_freq(self.pscf8+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1.set_center_freq(self.pscf2+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0.set_center_freq(self.pscf3+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0.set_center_freq(self.pscf4+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0.set_center_freq(self.pscf5+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_0.set_center_freq(self.pscf6+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_1.set_center_freq(self.pscf7+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_2.set_center_freq(self.pscf8+self.pscfshift)
def get_pscf8(self):
return self.pscf8
def set_pscf8(self, pscf8):
self.pscf8 = pscf8
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_2.set_center_freq(self.pscf8+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_2.set_center_freq(self.pscf8+self.pscfshift)
def get_pscf7(self):
return self.pscf7
def set_pscf7(self, pscf7):
self.pscf7 = pscf7
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_1.set_center_freq(self.pscf7+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_1.set_center_freq(self.pscf7+self.pscfshift)
def get_pscf6(self):
return self.pscf6
def set_pscf6(self, pscf6):
self.pscf6 = pscf6
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0_0.set_center_freq(self.pscf6+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0_0.set_center_freq(self.pscf6+self.pscfshift)
def get_pscf5(self):
return self.pscf5
def set_pscf5(self, pscf5):
self.pscf5 = pscf5
self.freq_xlating_fir_filter_xxx_1_0_0_0_0_0.set_center_freq(self.pscf5+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0_0.set_center_freq(self.pscf5+self.pscfshift)
def get_pscf4(self):
return self.pscf4
def set_pscf4(self, pscf4):
self.pscf4 = pscf4
self.freq_xlating_fir_filter_xxx_1_0_0_0_0.set_center_freq(self.pscf4+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0_0.set_center_freq(self.pscf4+self.pscfshift)
def get_pscf3(self):
return self.pscf3
def set_pscf3(self, pscf3):
self.pscf3 = pscf3
self.freq_xlating_fir_filter_xxx_1_0_0_0.set_center_freq(self.pscf3+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1_0.set_center_freq(self.pscf3+self.pscfshift)
def get_pscf2(self):
return self.pscf2
def set_pscf2(self, pscf2):
self.pscf2 = pscf2
self.freq_xlating_fir_filter_xxx_1_0_0.set_center_freq(self.pscf2+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_1.set_center_freq(self.pscf2+self.pscfshift)
def get_pscf1(self):
return self.pscf1
def set_pscf1(self, pscf1):
self.pscf1 = pscf1
self.freq_xlating_fir_filter_xxx_1.set_center_freq(self.pscf1+self.pscfshift)
self.freq_xlating_fir_filter_xxx_1_0.set_center_freq(self.pscf1+self.pscfshift)
def get_globaltune(self):
return self.globaltune
def set_globaltune(self, globaltune):
self.globaltune = globaltune
self.freq_xlating_fir_filter_xxx_0.set_center_freq(self.xlatecenter+self.globaltune)
self.freq_xlating_fir_filter_xxx_0_0.set_center_freq(self.xlatecenter_2+self.globaltune)
self.freq_xlating_fir_filter_xxx_0_0_0.set_center_freq(self.xlatecenter_4+self.globaltune)
self.freq_xlating_fir_filter_xxx_0_0_0_0.set_center_freq(self.xlatecenter_5+self.globaltune)
self.freq_xlating_fir_filter_xxx_0_0_0_0_0.set_center_freq(self.xlatecenter_6+self.globaltune)
self.freq_xlating_fir_filter_xxx_0_0_0_0_1.set_center_freq(self.xlatecenter_7+self.globaltune)
self.freq_xlating_fir_filter_xxx_0_0_0_0_2.set_center_freq(self.xlatecenter_8+self.globaltune)
self.freq_xlating_fir_filter_xxx_0_1.set_center_freq(self.xlatecenter_3+self.globaltune)
def get_cutoff(self):
return self.cutoff
def set_cutoff(self, cutoff):
self.cutoff = cutoff
def get_bptrans(self):
return self.bptrans
def set_bptrans(self, bptrans):
self.bptrans = bptrans
self.band_pass_filter_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_1, self.bphi_1, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_2, self.bphi_2, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_1.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_2.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_1.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_3, self.bphi_3, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bpsr(self):
return self.bpsr
def set_bpsr(self, bpsr):
self.bpsr = bpsr
self.band_pass_filter_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_1, self.bphi_1, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_2, self.bphi_2, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_1.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_2.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_1.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_3, self.bphi_3, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bplow_4(self):
return self.bplow_4
def set_bplow_4(self, bplow_4):
self.bplow_4 = bplow_4
self.band_pass_filter_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_1.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_2.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bplow_3(self):
return self.bplow_3
def set_bplow_3(self, bplow_3):
self.bplow_3 = bplow_3
self.band_pass_filter_0_0_0_0_1.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_3, self.bphi_3, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bplow_2(self):
return self.bplow_2
def set_bplow_2(self, bplow_2):
self.bplow_2 = bplow_2
self.band_pass_filter_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_2, self.bphi_2, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bplow_1(self):
return self.bplow_1
def set_bplow_1(self, bplow_1):
self.bplow_1 = bplow_1
self.band_pass_filter_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_1, self.bphi_1, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bphi_4(self):
return self.bphi_4
def set_bphi_4(self, bphi_4):
self.bphi_4 = bphi_4
self.band_pass_filter_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_1.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
self.band_pass_filter_0_0_0_0_0_0_0_2.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_4, self.bphi_4, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bphi_3(self):
return self.bphi_3
def set_bphi_3(self, bphi_3):
self.bphi_3 = bphi_3
self.band_pass_filter_0_0_0_0_1.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_3, self.bphi_3, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bphi_2(self):
return self.bphi_2
def set_bphi_2(self, bphi_2):
self.bphi_2 = bphi_2
self.band_pass_filter_0_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_2, self.bphi_2, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_bphi_1(self):
return self.bphi_1
def set_bphi_1(self, bphi_1):
self.bphi_1 = bphi_1
self.band_pass_filter_0_0_0_0.set_taps(firdes.band_pass(1, self.bpsr, self.bplow_1, self.bphi_1, self.bptrans, firdes.WIN_HAMMING, 6.76))
def get_audio_interp(self):
return self.audio_interp
def set_audio_interp(self, audio_interp):
self.audio_interp = audio_interp
def get_amp_8(self):
return self.amp_8
def set_amp_8(self, amp_8):
self.amp_8 = amp_8
self.blocks_multiply_const_vxx_0_0_1_0_0_2.set_k((self.amp_8, ))
self.blocks_multiply_const_vxx_0_0_1_1_2.set_k((self.amp_8, ))
def get_amp_7(self):
return self.amp_7
def set_amp_7(self, amp_7):
self.amp_7 = amp_7
self.blocks_multiply_const_vxx_0_0_1_0_0_1.set_k((self.amp_7, ))
self.blocks_multiply_const_vxx_0_0_1_1_1.set_k((self.amp_7, ))
def get_amp_6(self):
return self.amp_6
def set_amp_6(self, amp_6):
self.amp_6 = amp_6
self.blocks_multiply_const_vxx_0_0_1_0_0_0.set_k((self.amp_6, ))
self.blocks_multiply_const_vxx_0_0_1_1_0.set_k((self.amp_6, ))
def get_amp_5(self):
return self.amp_5
def set_amp_5(self, amp_5):
self.amp_5 = amp_5
self.blocks_multiply_const_vxx_0_0_1_0_0.set_k((self.amp_5, ))
self.blocks_multiply_const_vxx_0_0_1_1.set_k((self.amp_5, ))
def get_amp_4(self):
return self.amp_4
def set_amp_4(self, amp_4):
self.amp_4 = amp_4
self.blocks_multiply_const_vxx_0_0_1.set_k((self.amp_4, ))
self.blocks_multiply_const_vxx_0_0_1_0.set_k((self.amp_4, ))
def get_amp_3(self):
return self.amp_3
def set_amp_3(self, amp_3):
self.amp_3 = amp_3
self.blocks_multiply_const_vxx_0_0_0.set_k((self.amp_3, ))
self.blocks_multiply_const_vxx_0_0_0_0.set_k((self.amp_3, ))
def get_amp_2(self):
return self.amp_2
def set_amp_2(self, amp_2):
self.amp_2 = amp_2
self.blocks_multiply_const_vxx_0_0.set_k((self.amp_2, ))
self.blocks_multiply_const_vxx_0_0_2.set_k((self.amp_2, ))
def get_amp_1(self):
return self.amp_1
def set_amp_1(self, amp_1):
self.amp_1 = amp_1
self.blocks_multiply_const_vxx_0.set_k((self.amp_1, ))
self.blocks_multiply_const_vxx_0_1.set_k((self.amp_1, ))
def get_RF_Gain(self):
return self.RF_Gain
def set_RF_Gain(self, RF_Gain):
self.RF_Gain = RF_Gain
self.RTL820T.set_gain(self.RF_Gain, 0)
def get_CF(self):
return self.CF
def set_CF(self, CF):
self.CF = CF
self.RTL820T.set_center_freq(self.CF, 0)
if __name__ == '__main__':
parser = OptionParser(option_class=eng_option, usage="%prog: [options]")
(options, args) = parser.parse_args()
tb = RadioShifterPitchShiftHeadless()
tb.start()
try:
raw_input('Press Enter to quit: ')
except EOFError:
pass
tb.stop()
tb.wait()