projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b23688
)
Factor RMS normalization by sqrt(2); match sine peak
author
Robin Gareus
<robin@gareus.org>
Sat, 6 May 2017 13:09:05 +0000
(15:09 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sat, 6 May 2017 13:09:14 +0000
(15:09 +0200)
libs/ardour/audioregion.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/audioregion.cc
b/libs/ardour/audioregion.cc
index cf014aca84132e270296f5c17141314923dee3dd..0a33119ecf29b42e315084a9f821e1db83de2b3f 100644
(file)
--- a/
libs/ardour/audioregion.cc
+++ b/
libs/ardour/audioregion.cc
@@
-1470,7
+1470,7
@@
AudioRegion::rms (Progress* p) const
}
}
}
- return sqrt (rms / (double)(total * n_chan));
+ return sqrt (
2. *
rms / (double)(total * n_chan));
}
/** Normalize using a given maximum amplitude and target, so that region