Using value of -ev for -ea

"[email protected]" <[email protected]> Sun, 05 Apr 2020 06:21:34 +1000
Newsgroups gmane.comp.audio.ecasound.general
Message-ID <084c433a-180d-4a11-8933-2fae0299fbf0@localhost>
--===============8987320710550766452==
Content-Type: multipart/alternative; boundary=7b5e8ff30ad11cbba57d4fae806b5ed48d1ec8f118e21f1b183671ec9136

--7b5e8ff30ad11cbba57d4fae806b5ed48d1ec8f118e21f1b183671ec9136
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8

Dear all,

I'm trying to normalize an audio file.

using the effect preset '-ev' gives me the maximum gain which can be applie=
d before clipping.

But the manual states that this value can be used to amplify the signal usi=
ng the '-ea ' preset.

I want to make a script which passes the value from the '-ev' output into '=
-ea', so:

ecasound -i Test.wav -ev -o:null

...some code from the script...

ecasound -i Test.wav -ea:<percentage_based_on_ev> -o Test2.wav

I can get any value that is listed in the output of '-ev' using grep and th=
en pipe it into a variable.

I get the impression that I have to make a calculation from gain (in dB I p=
resume) to a percentage, before I can pass the value into '-ea'.

Is this correct or can I somehow pipe the output of '-ev' directly into '-e=
a'?

Kind regards,

Hans
--7b5e8ff30ad11cbba57d4fae806b5ed48d1ec8f118e21f1b183671ec9136
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<div>Dear all,<br></div><div><br></div><div>I'm trying to normalize an audi=
o file.<br></div><div>using the effect preset '-ev' gives me the maximum ga=
in which can be applied before clipping.<br></div><div>But the manual state=
s that this value can be used to amplify the signal using the '-ea ' preset=
.<br></div><div>I want to make a script which passes the value from the '-e=
v' output into '-ea', so:<br></div><div>ecasound -i Test.wav -ev -o:null<br=
></div><div>...some code from the script...<br></div><div>ecasound -i Test.=
wav -ea:&lt;percentage_based_on_ev&gt; -o Test2.wav<br></div><div><br></div=
><div>I can get any value that is listed in the output of '-ev' using grep =
and then pipe it into a variable.<br></div><div>I get the impression that I=
 have to make a calculation from gain (in dB I presume) to a percentage, be=
fore I can pass the value into '-ea'.<br></div><div>Is this correct or can =
I somehow pipe the output of '-ev' directly into '-ea'?<br></div><div><br><=
/div><div>Kind regards,</div><div><br></div><div>Hans</div><div><br></div><=
div data-atmail-signature=3D"" class=3D"gmail_signature" data-smartmail=3D"=
gmail_signature" style=3D""><br></div><div><br></div>
--7b5e8ff30ad11cbba57d4fae806b5ed48d1ec8f118e21f1b183671ec9136--


--===============8987320710550766452==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============8987320710550766452==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ecasound-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecasound-list

--===============8987320710550766452==--