Re: RMS

Jan Depner <[email protected]>
Newsgroups gmane.comp.audio.jamin.devel
Message-ID <1164297342.18720.1.camel@eviltwin>
On Thu, 2006-11-23 at 09:03 -0600, Jack O'Quin wrote:
> On 11/23/06, Steve Harris <[email protected]> wrote:
> > http://www.ecs.soton.ac.uk/~swh/rms/
> >
> > That was a bit cryptic, but I had very spotty 3G coverage. Sorry it took
> > so long to get the code out, I had to find time when there wasn't anything
> > crashingly urgent to do :-/
> >
> > I've only tested it on a mac, but there shouldn't be any nasty supprises
> > there, it's pretty simple code.
> >
> > It's an implementation of an RMS function with a decaying time window,
> > which seems appropriate for a meter and is much more efficient than doing
> > it the hard way.
> >
> > You have to instantite the state object with the sample rate and the
> > window size (higher numbers = slower moving meter, I'm guessing 0.1
> > seconds is about right), if the window size is too large (eg. 1.0 seconds)
> > then there are some rounding errors in the output, but that shouldn't be
> > an issue for JAMin.
> >
> > I may also use the code in the compressors, as I think it would do a
> > better job there than the rectangular window code I'm using now.
> 
> That looks great.  Thanks, Steve.
> 
> I took a look at gtkmeter.c.  The code looks simple, but I still don't
> grasp exactly how it all fits together.
> 

    Same here.  I can certainly make the window size a preference option
though.  If you figure out how the gtkmeter code works let me know ;-)


-- 
Jan 'Evil Twin' Depner
http://myweb.cableone.net/eviltwin69

"Life should NOT be a journey to the grave with the intention of 
arriving safely in an attractive and well preserved body, but rather to 
skid in sideways, chardonnay in one hand, chocolate in the other, body 
thoroughly used up, totally worn out, and screaming 'WOO HOO, what a ride'"


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.