Created
December 31, 2021 12:21
-
-
Save marcusmueller/4aa94f58040dc14a108fcb31f1108ffb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
options: | |
parameters: | |
author: "Marcus M\xFCller" | |
catch_exceptions: 'True' | |
category: '[GRC Hier Blocks]' | |
cmake_opt: '' | |
comment: '' | |
copyright: '' | |
description: '' | |
gen_cmake: 'On' | |
gen_linking: dynamic | |
generate_options: qt_gui | |
hier_block_src_path: '.:' | |
id: sawtoothe_env | |
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: Sawtooth Enveloper | |
window_size: (1000,1000) | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [16, 12.0] | |
rotation: 0 | |
state: enabled | |
blocks: | |
- name: amplitude | |
id: variable_qtgui_range | |
parameters: | |
comment: '' | |
gui_hint: '[0,1,1,1]' | |
label: Sawtooth amplitude | |
min_len: '200' | |
orient: QtCore.Qt.Horizontal | |
rangeType: float | |
start: '0' | |
step: '0.1' | |
stop: '4' | |
value: '2.7' | |
widget: counter_slider | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [496, 12.0] | |
rotation: 0 | |
state: true | |
- name: f_fundamental | |
id: variable_qtgui_range | |
parameters: | |
comment: '' | |
gui_hint: '[0,0,1,1]' | |
label: Fundamental frequency | |
min_len: '200' | |
orient: QtCore.Qt.Horizontal | |
rangeType: float | |
start: 1e3 | |
step: '100' | |
stop: samp_rate/10 | |
value: 10e3 | |
widget: counter_slider | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [296, 12.0] | |
rotation: 0 | |
state: true | |
- name: samp_rate | |
id: variable | |
parameters: | |
comment: '' | |
value: 10**6 | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [192, 12.0] | |
rotation: 0 | |
state: enabled | |
- name: analog_sig_source_x_0 | |
id: analog_sig_source_x | |
parameters: | |
affinity: '' | |
alias: '' | |
amp: amplitude | |
comment: '' | |
freq: f_fundamental | |
maxoutbuf: '0' | |
minoutbuf: '0' | |
offset: '0' | |
phase: '0' | |
samp_rate: samp_rate | |
type: float | |
waveform: analog.GR_SAW_WAVE | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [16, 148.0] | |
rotation: 0 | |
state: true | |
- name: band_pass_filter_0 | |
id: band_pass_filter | |
parameters: | |
affinity: '' | |
alias: '' | |
beta: '6.76' | |
comment: Select the fundamental | |
decim: '1' | |
gain: '1' | |
high_cutoff_freq: 1.1*f_fundamental | |
interp: '1' | |
low_cutoff_freq: 0.9*f_fundamental | |
maxoutbuf: '0' | |
minoutbuf: '0' | |
samp_rate: samp_rate | |
type: fir_filter_fff | |
width: 0.05*f_fundamental | |
win: window.WIN_HAMMING | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [240, 164.0] | |
rotation: 0 | |
state: true | |
- name: blocks_multiply_const_vxx_0 | |
id: blocks_multiply_const_vxx | |
parameters: | |
affinity: '' | |
alias: '' | |
comment: revert the scale factor | |
const: 3.141*2**0.5 | |
maxoutbuf: '0' | |
minoutbuf: '0' | |
type: float | |
vlen: '1' | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [888, 220.0] | |
rotation: 0 | |
state: true | |
- name: blocks_multiply_xx_0 | |
id: blocks_multiply_xx | |
parameters: | |
affinity: '' | |
alias: '' | |
comment: square | |
maxoutbuf: '0' | |
minoutbuf: '0' | |
num_inputs: '2' | |
type: float | |
vlen: '1' | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [440, 208.0] | |
rotation: 0 | |
state: true | |
- name: blocks_transcendental_0 | |
id: blocks_transcendental | |
parameters: | |
affinity: '' | |
alias: '' | |
comment: undo the squaring | |
maxoutbuf: '0' | |
minoutbuf: '0' | |
name: sqrt | |
type: float | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [720, 220.0] | |
rotation: 0 | |
state: true | |
- name: low_pass_filter_0 | |
id: low_pass_filter | |
parameters: | |
affinity: '' | |
alias: '' | |
beta: '6.76' | |
comment: Kill the harmonic | |
cutoff_freq: 0.5*f_fundamental | |
decim: '1' | |
gain: '1' | |
interp: '1' | |
maxoutbuf: '0' | |
minoutbuf: '0' | |
samp_rate: samp_rate | |
type: fir_filter_fff | |
width: 0.25*f_fundamental | |
win: window.WIN_HAMMING | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [544, 172.0] | |
rotation: 0 | |
state: true | |
- name: qtgui_time_sink_x_1 | |
id: qtgui_time_sink_x | |
parameters: | |
affinity: '' | |
alias: '' | |
alpha1: '1.0' | |
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' | |
axislabels: 'True' | |
color1: blue | |
color10: dark blue | |
color2: red | |
color3: green | |
color4: black | |
color5: cyan | |
color6: magenta | |
color7: yellow | |
color8: dark red | |
color9: dark green | |
comment: '' | |
ctrlpanel: 'False' | |
entags: 'True' | |
grid: 'False' | |
gui_hint: '[1,0,12,2]' | |
label1: Sawtooth | |
label10: Signal 10 | |
label2: Amplitude | |
label3: Signal 3 | |
label4: Signal 4 | |
label5: Signal 5 | |
label6: Signal 6 | |
label7: Signal 7 | |
label8: Signal 8 | |
label9: Signal 9 | |
legend: 'True' | |
marker1: '-1' | |
marker10: '-1' | |
marker2: '-1' | |
marker3: '-1' | |
marker4: '-1' | |
marker5: '-1' | |
marker6: '-1' | |
marker7: '-1' | |
marker8: '-1' | |
marker9: '-1' | |
name: '""' | |
nconnections: '2' | |
size: '1024' | |
srate: samp_rate | |
stemplot: 'False' | |
style1: '1' | |
style10: '1' | |
style2: '1' | |
style3: '1' | |
style4: '1' | |
style5: '1' | |
style6: '1' | |
style7: '1' | |
style8: '1' | |
style9: '1' | |
tr_chan: '0' | |
tr_delay: '0' | |
tr_level: '0.0' | |
tr_mode: qtgui.TRIG_MODE_FREE | |
tr_slope: qtgui.TRIG_SLOPE_POS | |
tr_tag: '""' | |
type: float | |
update_time: '0.10' | |
width1: '1' | |
width10: '1' | |
width2: '1' | |
width3: '1' | |
width4: '1' | |
width5: '1' | |
width6: '1' | |
width7: '1' | |
width8: '1' | |
width9: '1' | |
ylabel: Amplitude | |
ymax: '4.2' | |
ymin: '-0.2' | |
yunit: '""' | |
states: | |
bus_sink: false | |
bus_source: false | |
bus_structure: null | |
coordinate: [1040, 188.0] | |
rotation: 0 | |
state: true | |
connections: | |
- [analog_sig_source_x_0, '0', band_pass_filter_0, '0'] | |
- [analog_sig_source_x_0, '0', qtgui_time_sink_x_1, '0'] | |
- [band_pass_filter_0, '0', blocks_multiply_xx_0, '0'] | |
- [band_pass_filter_0, '0', blocks_multiply_xx_0, '1'] | |
- [blocks_multiply_const_vxx_0, '0', qtgui_time_sink_x_1, '1'] | |
- [blocks_multiply_xx_0, '0', low_pass_filter_0, '0'] | |
- [blocks_transcendental_0, '0', blocks_multiply_const_vxx_0, '0'] | |
- [low_pass_filter_0, '0', blocks_transcendental_0, '0'] | |
metadata: | |
file_format: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment