repo.or.cz
/
opentx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Crossfire baudrate selection for X7 support ( fixes #4922 ) (#5194)
[opentx.git]
/
radio
/
util
/
maxvolume.cmd
blob
b3b24c9ccda06c2b8678b8ebb898418efb8ad10f
1
echo
off
2
3
4
echo
Getting max amplitude..
5
sox
%
1
.wav
-
n stat
-
v
2
> %
1
_apl.txt
6
Set
/
P apl_value
= < %
1
_apl.txt
7
8
echo
Normalizing audio.. gain
:
%apl_value%
9
sox
--
show
-
progress
-
v
%apl_value%
%
1
.wav
%
1
_norm.wav
10
11
copy
%
1
_norm.wav
%
1
.wav
12
13
echo
Cleaning..
14
del
%
1
_norm.wav
15
del
%
1
_apl.txt
16