Skip to content
Snippets Groups Projects
Commit bf4c0f66 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

idq_multirate_datasource.py: commented out initial low-pass filter since it is...

idq_multirate_datasource.py: commented out initial low-pass filter since it is not clear that we get the intended behavior for output triggers
parent 1280e0bd
No related branches found
No related tags found
No related merge requests found
......@@ -137,11 +137,11 @@ def mkwhitened_multirate_src(pipeline, src, rates, native_rate, instrument, psd
# high pass filter
# FIXME: don't hardcode native rate cutoff for high-pass filtering
if native_rate >= 128:
kernel = reference_psd.one_second_highpass_kernel(max_rate, cutoff = 12)
block_stride = block_duration * max_rate // Gst.SECOND
assert len(kernel) % 2 == 1, "high-pass filter length is not odd"
head = pipeparts.mkfirbank(pipeline, head, fir_matrix = numpy.array(kernel, ndmin = 2), block_stride = block_stride, time_domain = False, latency = (len(kernel) - 1) // 2)
#if native_rate >= 128:
# kernel = reference_psd.one_second_highpass_kernel(max_rate, cutoff = 12)
# block_stride = block_duration * max_rate // Gst.SECOND
# assert len(kernel) % 2 == 1, "high-pass filter length is not odd"
# head = pipeparts.mkfirbank(pipeline, head, fir_matrix = numpy.array(kernel, ndmin = 2), block_stride = block_stride, time_domain = False, latency = (len(kernel) - 1) // 2)
#
# add a reblock element. the whitener's gap support isn't 100% yet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment