[PD] average amp of a soundfile

Hans-Christoph Steiner hans at eds.org
Fri Mar 21 00:11:33 CET 2003


Thanks all for the responses, I figured this out:

[vasp buf( -> [vasp.sqr] -> [vasp.?] -> [mean] -> [sqrt] -> RMS value

[mean] is from Johannes' ZEXY.  In the future, I'll be sure to use [vasp.sum?]!  
Thanks much for vasp.

.hc



On Thu, 20 Mar 2003, Thomas Grill wrote:

> Hi,
> interestingly, up till now there was no means in vasp for that....
> however, if you check it out from cvs tomorrow morning you'll find a
> vasp.sum? object for this kind of things.
> 
> In the pd-ex/vasp_qsum.pd help file you'll also find an example for RMS
> calculation which i think is what you want to do.
> In principle it does the following:
> 
> [vasp buf( -> [vasp.sqr] -> [vasp.sum?] -> [/ samples ] -> [sqrt] -> RMS
> value
> 
> There will hopefully be a more elegant (non-destructible though in-place)
> way for that in the future......
> 
> best greetings,
> Thomas
> 
> ----- Original Message -----
> From: "Josh Steiner" <joschi at eds.org>
> To: "Hans-Christoph Steiner" <hans at eds.org>
> Cc: <pd-list at iem.kug.ac.at>
> Sent: Thursday, March 20, 2003 8:30 PM
> Subject: Re: [PD] average amp of a soundfile
> 
> 
> > sorry if you knew about this already, but you probably want to use VASP
> > for this:
> >
> > http://www.parasitaere-kapazitaeten.net/ext/
> >
> > "VASP is a package for PD or Max/MSP consisting of a number of externals
> > extending these systems with functions for non-realtime array-based
> > audio data processing. VASP is capable of working in the background,
> > therefore not influencing eventual dsp signal processing."
> >
> > i've not actually done anything with it yet, so i'd love to hear how it
> > goes if you do.
> >
> > -josh
> >
> > Hans-Christoph Steiner wrote:
> >
> > >I want to find the overall average amplitude of a soundfile.  I want the
> > >processing to happen as quick as possible.  I have tried a various
> > >methods, but have not gotten something to work satisfactorily.
> > >
> > >Anyone have any working examples of this?
> > >
> > >.hc
> > >
> > > zen
> > >    \
> > >     \
> > >      \
> > >
> > >
> > >_______________________________________________
> > >PD-list mailing list
> > >PD-list at iem.kug.ac.at
> > >http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
> > >
> > >
> >
> >
> > --
> > ____________________________________________________
> > independent u.s. drum'n'bass -- http://vitriolix.com
> >
> >
> >
> >
> >
> > _______________________________________________
> > PD-list mailing list
> > PD-list at iem.kug.ac.at
> > http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
> >
> >
> >
> 

	zen
	   \
	    \
	     \





More information about the Pd-list mailing list