Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gstlal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duncan Macleod
gstlal
Commits
66a42340
Commit
66a42340
authored
6 years ago
by
Patrick Godwin
Committed by
Kipp Cannon
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fxtools/multirate_datasource.py: update gstreamer graph
parent
d5a7b856
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-burst/python/fxtools/multirate_datasource.py
+54
-58
54 additions, 58 deletions
gstlal-burst/python/fxtools/multirate_datasource.py
with
54 additions
and
58 deletions
gstlal-burst/python/fxtools/multirate_datasource.py
+
54
−
58
View file @
66a42340
# Copyright (C) 2009--2013 Kipp Cannon, Chad Hanna, Drew Keppel
# Copyright (C) 2017
Patrick Godwin
# Copyright (C) 2017
--2018
Patrick Godwin
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
...
...
@@ -50,67 +50,14 @@ PSD_FFT_LENGTH = 32
PSD_DROP_TIME
=
16
*
PSD_FFT_LENGTH
NATIVE_RATE_CUTOFF
=
128
# FIXME: this Gstreamer graph is outdated, need to update it
## #### produced whitened h(t) at (possibly) multiple sample rates
# ##### Gstreamer graph describing this function
#
# @dot
# digraph mkbasicsrc {
# rankdir = LR;
# compound=true;
# node [shape=record fontsize=10 fontname="Verdana"];
# edge [fontsize=8 fontname="Verdana"];
#
# capsfilter1 [URL="\ref pipeparts.mkcapsfilter()"];
# audioresample [URL="\ref pipeparts.mkresample()"];
# capsfilter2 [URL="\ref pipeparts.mkcapsfilter()"];
# reblock [URL="\ref pipeparts.mkreblock()"];
# whiten [URL="\ref pipeparts.mkwhiten()"];
# audioconvert [URL="\ref pipeparts.mkaudioconvert()"];
# capsfilter3 [URL="\ref pipeparts.mkcapsfilter()"];
# "segmentsrcgate()" [URL="\ref datasource.mksegmentsrcgate()", label="segmentsrcgate() \n [iff veto segment list provided]", style=filled, color=lightgrey];
# tee [URL="\ref pipeparts.mktee()"];
# audioamplifyr1 [URL="\ref pipeparts.mkaudioamplify()"];
# capsfilterr1 [URL="\ref pipeparts.mkcapsfilter()"];
# htgater1 [URL="\ref datasource.mkhtgate()", label="htgate() \n [iff ht gate specified]", style=filled, color=lightgrey];
# tee1 [URL="\ref pipeparts.mktee()"];
# audioamplifyr2 [URL="\ref pipeparts.mkaudioamplify()"];
# capsfilterr2 [URL="\ref pipeparts.mkcapsfilter()"];
# htgater2 [URL="\ref datasource.mkhtgate()", label="htgate() \n [iff ht gate specified]", style=filled, color=lightgrey];
# tee2 [URL="\ref pipeparts.mktee()"];
# audioamplify_rn [URL="\ref pipeparts.mkaudioamplify()"];
# capsfilter_rn [URL="\ref pipeparts.mkcapsfilter()"];
# htgate_rn [URL="\ref datasource.mkhtgate()", style=filled, color=lightgrey, label="htgate() \n [iff ht gate specified]"];
# tee [URL="\ref pipeparts.mktee()"];
#
# // nodes
#
# "?" -> capsfilter1 -> audioresample;
# audioresample -> capsfilter2;
# capsfilter2 -> reblock;
# reblock -> whiten;
# whiten -> audioconvert;
# audioconvert -> capsfilter3;
# capsfilter3 -> "segmentsrcgate()";
# "segmentsrcgate()" -> tee;
#
# tee -> audioamplifyr1 [label="Rate 1"];
# audioamplifyr1 -> capsfilterr1;
# capsfilterr1 -> htgater1;
# htgater1 -> tee1 -> "? 1";
# =============================================================================
#
# tee -> audioamplifyr2 [label="Rate 2"];
# audioamplifyr2 -> capsfilterr2;
# capsfilterr2 -> htgater2;
# htgater2 -> tee2 -> "? 2";
# Pipeline Parts
#
# tee -> audioamplify_rn [label="Rate N"];
# audioamplify_rn -> capsfilter_rn;
# capsfilter_rn -> htgate_rn;
# htgate_rn -> tee_n -> "? 3";
# =============================================================================
#
# }
# @enddot
def
mkwhitened_multirate_src
(
pipeline
,
src
,
rates
,
native_rate
,
instrument
,
psd
=
None
,
psd_fft_length
=
PSD_FFT_LENGTH
,
veto_segments
=
None
,
nxydump_segment
=
None
,
track_psd
=
True
,
block_duration
=
int
(
1
*
Gst
.
SECOND
),
width
=
64
,
channel_name
=
"
hoft
"
):
"""
!
Build pipeline stage to whiten and downsample auxiliary channels.
...
...
@@ -127,6 +74,55 @@ def mkwhitened_multirate_src(pipeline, src, rates, native_rate, instrument, psd
- track_psd: decide whether to dynamically track the spectrum or use the fixed spectrum provided
- width: type convert to either 32 or 64 bit float
- channel_name: channel to whiten and downsample
**Gstreamer graph describing this function**
.. graphviz::
digraph mkwhitened_multirate_src {
rankdir = LR;
compound=true;
node [shape=record fontsize=10 fontname=
"
Verdana
"
];
edge [fontsize=8 fontname=
"
Verdana
"
];
capsfilter1;
interpolator;
highpass;
whiten;
audioconvert;
capsfilter2;
tee;
segmentsrcgate;
audioamplifyr1;
audioamplifyr2;
audioamplifyrn;
interpolatorr1;
interpolatorr2;
interpolatorrn;
capsfilterr1;
capsfilterr2;
capsfilterrn;
// nodes
"
?
"
-> capsfilter1 -> interpolator -> whiten;
highpass -> whiten -> audioconvert -> capsfilter2 -> tee;
tee -> segmentsrcgate [label=
"
Whitened timeseries to disk
"
];
tee -> audioamplifyr1 [label=
"
Rate 1
"
];
audioamplifyr1 -> interpolatorr1;
interpolatorr1 -> capsfilterr1 ->
"
? 1
"
;
tee -> audioamplifyr2 [label=
"
Rate 2
"
];
audioamplifyr2 -> interpolatorr2;
interpolatorr2 -> capsfilterr2 ->
"
? 2
"
;
tee -> audioamplifyrn [label=
"
Rate N
"
];
audioamplifyrn -> interpolatorrn;
interpolatorrn -> capsfilterrn ->
"
? N
"
;
}
"""
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment