Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rnnoise
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
rnnoise
Commits
91ef401f
Verified
Commit
91ef401f
authored
7 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Limiting the gain decay
parent
3d2acb83
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
src/denoise.c
+6
-0
6 additions, 0 deletions
src/denoise.c
with
6 additions
and
0 deletions
src/denoise.c
+
6
−
0
View file @
91ef401f
...
...
@@ -93,6 +93,7 @@ struct DenoiseState {
float
last_gain
;
int
last_period
;
float
mem_hp_x
[
2
];
float
lastg
[
NB_BANDS
];
RNNState
rnn
;
};
...
...
@@ -487,6 +488,11 @@ float rnnoise_process_frame(DenoiseState *st, float *out, const float *in) {
if
(
!
silence
)
{
compute_rnn
(
&
st
->
rnn
,
g
,
&
vad_prob
,
features
);
pitch_filter
(
X
,
P
,
Ex
,
Ep
,
Exp
,
g
);
for
(
i
=
0
;
i
<
NB_BANDS
;
i
++
)
{
float
alpha
=
.
6
f
;
g
[
i
]
=
MAX16
(
g
[
i
],
alpha
*
st
->
lastg
[
i
]);
st
->
lastg
[
i
]
=
g
[
i
];
}
interp_band_gain
(
gf
,
g
);
#if 1
for
(
i
=
0
;
i
<
FREQ_SIZE
;
i
++
)
{
...
...
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