Skip to content

Instantly share code, notes, and snippets.

@marcusmueller
Last active August 23, 2020 11:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusmueller/fcf8431d776b778e1d822b4dec18847c to your computer and use it in GitHub Desktop.
Save marcusmueller/fcf8431d776b778e1d822b4dec18847c to your computer and use it in GitHub Desktop.
options:
parameters:
author: "Marcus M\xFCller"
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: '2020'
description: ''
gen_cmake: 'On'
gen_linking: dynamic
generate_options: qt_gui
hier_block_src_path: '.:'
id: diff_audio_channel_sounder
max_nouts: '0'
output_language: python
placement: (0,0)
qt_qss_theme: ''
realtime_scheduling: ''
run: 'True'
run_command: '{python} -u {filename}'
run_options: prompt
sizing_mode: fixed
thread_safe_setters: ''
title: Differential audio sounder
window_size: ''
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 12.0]
rotation: 0
state: enabled
blocks:
- name: ampl
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: '[0,0,1,1]'
label: Amplitude [dBmax]
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '-30'
step: '0.5'
stop: '0'
value: '-10'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [376, 12.0]
rotation: 0
state: true
- name: analog_noise_source_x_0
id: analog_noise_source_x
parameters:
affinity: ''
alias: ''
amp: 10**(ampl/20)
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
noise_type: analog.GR_GAUSSIAN
seed: '0'
type: float
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 164.0]
rotation: 0
state: true
- name: audio_sink_0
id: audio_sink
parameters:
affinity: ''
alias: ''
comment: ''
device_name: ''
num_inputs: '1'
ok_to_block: 'True'
samp_rate: f_sample
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [496, 180.0]
rotation: 0
state: true
- name: audio_source_0
id: audio_source
parameters:
affinity: ''
alias: ''
comment: ''
device_name: ''
maxoutbuf: '0'
minoutbuf: '0'
num_outputs: '2'
ok_to_block: 'True'
samp_rate: f_sample
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 448.0]
rotation: 0
state: true
- name: blocks_complex_to_mag_squared_0
id: blocks_complex_to_mag_squared
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
vlen: fftlen
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [584, 308.0]
rotation: 0
state: true
- name: blocks_complex_to_mag_squared_0_0
id: blocks_complex_to_mag_squared
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
vlen: fftlen
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [584, 612.0]
rotation: 0
state: true
- name: blocks_moving_average_xx_0
id: blocks_moving_average_xx
parameters:
affinity: ''
alias: ''
comment: ''
length: '40'
max_iter: '4000'
maxoutbuf: '0'
minoutbuf: '0'
scale: 1.0/40/fftlen
type: float
vlen: fftlen
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [760, 284.0]
rotation: 0
state: true
- name: blocks_moving_average_xx_0_0
id: blocks_moving_average_xx
parameters:
affinity: ''
alias: ''
comment: ''
length: '40'
max_iter: '4000'
maxoutbuf: '0'
minoutbuf: '0'
scale: 1.0/40/fftlen
type: float
vlen: fftlen
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [760, 588.0]
rotation: 0
state: true
- name: blocks_nlog10_ff_0
id: blocks_nlog10_ff
parameters:
affinity: ''
alias: ''
comment: ''
k: '0'
maxoutbuf: '0'
minoutbuf: '0'
n: '10'
vlen: fftlen
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [960, 292.0]
rotation: 0
state: true
- name: blocks_nlog10_ff_0_0
id: blocks_nlog10_ff
parameters:
affinity: ''
alias: ''
comment: ''
k: '0'
maxoutbuf: '0'
minoutbuf: '0'
n: '10'
vlen: fftlen
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [960, 596.0]
rotation: 0
state: true
- name: blocks_stream_to_vector_0
id: blocks_stream_to_vector
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_items: fftlen
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [200, 312.0]
rotation: 0
state: true
- name: blocks_stream_to_vector_0_0
id: blocks_stream_to_vector
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_items: fftlen
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [200, 616.0]
rotation: 0
state: true
- name: blocks_sub_xx_0
id: blocks_sub_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: float
vlen: fftlen
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [952, 480.0]
rotation: 180
state: true
- name: f_sample
id: parameter
parameters:
alias: ''
comment: ''
hide: none
label: Sample Rate (44100 Hz, 48000 Hz...)
short_id: s
type: intx
value: '44100'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [184, 12.0]
rotation: 0
state: true
- name: fft_vxx_0
id: fft_vxx
parameters:
affinity: ''
alias: ''
comment: ''
fft_size: fftlen
forward: 'True'
maxoutbuf: '0'
minoutbuf: '0'
nthreads: '1'
shift: 'True'
type: float
window: window.blackmanharris(8192)
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [360, 284.0]
rotation: 0
state: true
- name: fft_vxx_0_0
id: fft_vxx
parameters:
affinity: ''
alias: ''
comment: ''
fft_size: fftlen
forward: 'True'
maxoutbuf: '0'
minoutbuf: '0'
nthreads: '1'
shift: 'True'
type: float
window: window.blackmanharris(8192)
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [360, 588.0]
rotation: 0
state: true
- name: fftlen
id: parameter
parameters:
alias: ''
comment: ''
hide: none
label: FFT length
short_id: l
type: intx
value: '8192'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [544, 12.0]
rotation: 0
state: true
- name: low_pass_filter_0
id: low_pass_filter
parameters:
affinity: ''
alias: ''
beta: '6.76'
comment: ''
cutoff_freq: 5e3
decim: '1'
gain: '1'
interp: '1'
maxoutbuf: '0'
minoutbuf: '0'
samp_rate: f_sample
type: fir_filter_fff
width: 0.5e3
win: firdes.WIN_HAMMING
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [240, 132.0]
rotation: 0
state: true
- name: qtgui_freq_sink_x_0
id: qtgui_freq_sink_x
parameters:
affinity: ''
alias: ''
alpha1: '0.5'
alpha10: '1.0'
alpha2: '1.0'
alpha3: '1.0'
alpha4: '1.0'
alpha5: '1.0'
alpha6: '1.0'
alpha7: '1.0'
alpha8: '1.0'
alpha9: '1.0'
autoscale: 'False'
average: '0.05'
axislabels: 'True'
bw: f_sample
color1: '"dark green"'
color10: '"dark blue"'
color2: '"dark green"'
color3: '"green"'
color4: '"black"'
color5: '"cyan"'
color6: '"magenta"'
color7: '"yellow"'
color8: '"dark red"'
color9: '"dark green"'
comment: ''
ctrlpanel: 'False'
fc: '0'
fftsize: '8192'
freqhalf: 'False'
grid: 'True'
gui_hint: '[1,0,8,1]'
label: Relative Gain
label1: Device under test
label10: ''''''
label2: Loopback Cable
label3: ''''''
label4: ''''''
label5: ''''''
label6: ''''''
label7: ''''''
label8: ''''''
label9: ''''''
legend: 'True'
maxoutbuf: '0'
minoutbuf: '0'
name: '"Spectrum"'
nconnections: '2'
showports: 'False'
tr_chan: '0'
tr_level: '0.0'
tr_mode: qtgui.TRIG_MODE_FREE
tr_tag: '""'
type: float
units: dB
update_time: '0.05'
width1: '2'
width10: '1'
width2: '2'
width3: '1'
width4: '1'
width5: '1'
width6: '1'
width7: '1'
width8: '1'
width9: '1'
wintype: firdes.WIN_BLACKMAN_hARRIS
ymax: '10'
ymin: '-140'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [360, 448.0]
rotation: 0
state: disabled
- name: qtgui_vector_sink_f_0
id: qtgui_vector_sink_f
parameters:
affinity: ''
alias: ''
alpha1: '0.7'
alpha10: '1.0'
alpha2: '0.7'
alpha3: '1.0'
alpha4: '1.0'
alpha5: '1.0'
alpha6: '1.0'
alpha7: '1.0'
alpha8: '1.0'
alpha9: '1.0'
autoscale: 'False'
average: '1.0'
color1: '"dark green"'
color10: '"dark blue"'
color2: '"dark blue"'
color3: '"blue"'
color4: '"black"'
color5: '"cyan"'
color6: '"magenta"'
color7: '"yellow"'
color8: '"dark red"'
color9: '"dark green"'
comment: ''
grid: 'False'
gui_hint: '[10,0,8,1]'
label1: Device under test
label10: ''
label2: Loopback cab le
label3: normalized spectrum
label4: ''
label5: ''
label6: ''
label7: ''
label8: ''
label9: ''
maxoutbuf: '0'
minoutbuf: '0'
name: '""'
nconnections: '3'
ref_level: '0'
showports: 'False'
update_time: '0.10'
vlen: fftlen
width1: '1'
width10: '1'
width2: '1'
width3: '1'
width4: '1'
width5: '1'
width6: '1'
width7: '1'
width8: '1'
width9: '1'
x_axis_label: '"Frequency [kHz]'
x_start: '0'
x_step: 1e-3*f_sample/fftlen
x_units: '""'
y_axis_label: '"y-Axis"'
y_units: '""'
ymax: '30'
ymin: '-65'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [736, 412.0]
rotation: 180
state: true
connections:
- [analog_noise_source_x_0, '0', low_pass_filter_0, '0']
- [audio_source_0, '0', blocks_stream_to_vector_0, '0']
- [audio_source_0, '0', qtgui_freq_sink_x_0, '0']
- [audio_source_0, '1', blocks_stream_to_vector_0_0, '0']
- [audio_source_0, '1', qtgui_freq_sink_x_0, '1']
- [blocks_complex_to_mag_squared_0, '0', blocks_moving_average_xx_0, '0']
- [blocks_complex_to_mag_squared_0_0, '0', blocks_moving_average_xx_0_0, '0']
- [blocks_moving_average_xx_0, '0', blocks_nlog10_ff_0, '0']
- [blocks_moving_average_xx_0_0, '0', blocks_nlog10_ff_0_0, '0']
- [blocks_nlog10_ff_0, '0', blocks_sub_xx_0, '0']
- [blocks_nlog10_ff_0, '0', qtgui_vector_sink_f_0, '0']
- [blocks_nlog10_ff_0_0, '0', blocks_sub_xx_0, '1']
- [blocks_nlog10_ff_0_0, '0', qtgui_vector_sink_f_0, '1']
- [blocks_stream_to_vector_0, '0', fft_vxx_0, '0']
- [blocks_stream_to_vector_0_0, '0', fft_vxx_0_0, '0']
- [blocks_sub_xx_0, '0', qtgui_vector_sink_f_0, '2']
- [fft_vxx_0, '0', blocks_complex_to_mag_squared_0, '0']
- [fft_vxx_0_0, '0', blocks_complex_to_mag_squared_0_0, '0']
- [low_pass_filter_0, '0', audio_sink_0, '0']
metadata:
file_format: 1
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment