From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Desbonnet Newsgroups: gmane.comp.audio.sox.devel Subject: Spectrogram lower/upper frequency limit: proposal Date: Sun, 16 Feb 2014 16:04:46 +0000 Message-ID: Reply-To: sox-devel@lists.sourceforge.net NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8228777728657498518==" X-Trace: ger.gmane.org 1392566699 14590 80.91.229.3 (16 Feb 2014 16:04:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2014 16:04:59 +0000 (UTC) To: sox-devel@lists.sourceforge.net Original-X-From: sox-devel-bounces@lists.sourceforge.net Sun Feb 16 17:05:07 2014 Return-path: Envelope-to: gcasd-sox-devel@m.gmane.org Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.219.43 as permitted sender) client-ip=209.85.219.43; envelope-from=jdesbonnet@gmail.com; helo=mail-oa0-f43.google.com; X-Received: by 10.182.126.167 with SMTP id mz7mr4591obb.69.1392566686159; Sun, 16 Feb 2014 08:04:46 -0800 (PST) X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jdesbonnet[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1WF4D5-0001Vl-Hs X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: sox-devel-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.comp.audio.sox.devel:354 Archived-At: Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WF4DL-0005tT-9X for gcasd-sox-devel@m.gmane.org; Sun, 16 Feb 2014 17:05:07 +0100 Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WF4D8-00045H-3I; Sun, 16 Feb 2014 16:04:54 +0000 Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WF4D6-00045B-73 for sox-devel@lists.sourceforge.net; Sun, 16 Feb 2014 16:04:52 +0000 Received: from mail-oa0-f43.google.com ([209.85.219.43]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1WF4D5-0001Vl-Hs for sox-devel@lists.sourceforge.net; Sun, 16 Feb 2014 16:04:52 +0000 Received: by mail-oa0-f43.google.com with SMTP id h16so16663698oag.2 for ; Sun, 16 Feb 2014 08:04:46 -0800 (PST) Received: by 10.60.21.67 with HTTP; Sun, 16 Feb 2014 08:04:46 -0800 (PST) --===============8228777728657498518== Content-Type: multipart/alternative; boundary=001a11c1f540a79c5f04f2883204 --001a11c1f540a79c5f04f2883204 Content-Type: text/plain; charset=ISO-8859-1 In connection with my modification of the spectrogram to plot frequency on a log10 axis, I have a need to place (at least) a lower bound on the frequency. Eg looking at music, anything <10Hz is of no use and wastes chart space. I also have noticed a few requests for a feature to limit the plot to a subset of the available frequencies. So I intend to add this in the coming days. I'm not very familiar with the sox utility, so I'm asking what's the best way of specifying the lower and upper frequencies consistent with the rest of the utility? What I propose is to use just one command line switch, eg -R lower-freq[:upper-freq] For example -R 10 meaning from 10Hz -> nyquist frequency -R 100:12k meaning 100Hz -> 12kHz So to generate a chart of a music file looking at frequencies 100Hz - 10kHz sox mymusic.mp3 -n spectrogram -L -R 100:10k Does that seem ok? Joe. --001a11c1f540a79c5f04f2883204 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
In connection with my modification of the spectrogram to p= lot frequency on a log10 axis, I have a need to place (at least) a lower bo= und on the frequency. Eg looking at music, anything <10Hz is of no use a= nd wastes chart space. =A0I also have noticed a few requests for a feature = to limit the plot to a subset of the available frequencies. So I intend to = add this in the coming days.=A0

I'm not very familiar with the sox utility, so I'm a= sking what's the best way of specifying the lower and upper frequencies= consistent with the rest of the utility? What I propose is to use just one= command line switch, eg
-R lower-freq[:upper-freq]

For example=A0
-R 10
meaning from 10Hz -> nyquist frequency
=
-R 100:12k
meaning 100Hz -> 12kHz
So to generate a chart of a music file looking at frequencies 10= 0Hz - 10kHz
sox mymusic.mp3 -n spectrogram -L -R 100:10k

Does that seem ok?

Joe.

--001a11c1f540a79c5f04f2883204-- --===============8228777728657498518== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk --===============8228777728657498518== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel --===============8228777728657498518==--