From: "Måns Rullgård" <mans@mansr.com>
To: James Trammell <james.trammell@gmail.com>
Cc: sox-users@lists.sourceforge.net
Subject: Re: Creating files with RMS gain level instead of Peak
Date: Sun, 08 Jul 2018 17:21:27 +0100 [thread overview]
Message-ID: <yw1xlgaly9yw.fsf@mansr.com> (raw)
In-Reply-To: <CAB0xix5PLnBKrX0No-suQqF_mkMuSnpmk7J_SjErS8SrTbPf0Q@mail.gmail.com> (James Trammell's message of "Sun, 8 Jul 2018 10:45:52 -0400")
James Trammell <james.trammell@gmail.com> writes:
> I want SoX, ideally natively via some appropriate command-line switch, to
> output a white noise file with a specific RMS amplitude.
You can get this by using the standard "gain" effect and offsetting the
amount by 4.78 dB. If you want to abuse the existing options a bit, you
could produce a stereo white noise file with a given RMS level like
this:
$ sox -n out.wav synth 10 square whitenoise whitenoise gain -12 gain -B remix 2 3
Not the most efficient or intuitive, I know.
--
Måns Rullgård
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
prev parent reply other threads:[~2018-07-08 16:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-07 15:05 Creating files with RMS gain level instead of Peak James Trammell
2018-07-07 17:25 ` Jeremy Nicoll - ml sox users
2018-07-07 18:19 ` Måns Rullgård
2018-07-07 19:52 ` Jeremy Nicoll - ml sox users
2018-07-07 20:47 ` Måns Rullgård
2018-07-07 20:58 ` Jeremy Nicoll - ml sox users
2018-07-08 12:39 ` Måns Rullgård
2018-07-08 13:36 ` Mikko Olkkonen
2018-07-08 14:45 ` James Trammell
2018-07-08 15:39 ` Mikko Olkkonen
2018-07-08 16:21 ` Måns Rullgård [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.sourceforge.net/lists/listinfo/sox-users
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yw1xlgaly9yw.fsf@mansr.com \
--to=sox-users@lists.sourceforge.net \
--cc=james.trammell@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/sox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).