[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sox-devel
Subject:    [SoX-devel] Spectrogram lower/upper frequency limit: proposal
From:       Joe Desbonnet <jdesbonnet () gmail ! com>
Date:       2014-02-16 16:04:46
Message-ID: CAHBCceYM0LPEi4UTFC-0=ZaL_njvnFaXvDBezmwzjd8i5JZJzQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.

[Attachment #5 (text/html)]

<div dir="ltr">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 &lt;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. \
<div> <br></div><div>I&#39;m not very familiar with the sox utility, so I&#39;m \
asking what&#39;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</div> <div>-R lower-freq[:upper-freq]</div><div><br></div><div>For \
example </div><div>-R 10</div><div>meaning from 10Hz -&gt; nyquist \
frequency</div><div><br></div><div>-R 100:12k</div><div>meaning 100Hz -&gt; \
12kHz</div><div><br> </div><div>So to generate a chart of a music file looking at \
frequencies 100Hz - 10kHz</div><div>sox mymusic.mp3 -n spectrogram -L -R \
100:10k</div><div><br></div><div>Does that seem \
ok?</div><div><br></div><div>Joe.</div> <div><br></div></div>



------------------------------------------------------------------------------
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

_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic