[Pd] Clip detection

Chuckk Hubbard badmuthahubbard at gmail.com
Thu May 25 02:29:53 CEST 2006


Awesome.  Thanks IOhannes.

On 5/24/06, IOhannes m zmoelnig <zmoelnig at iem.at> wrote:
> Chuckk Hubbard wrote:
> > Hi dafydd.
> > The problem is that env~ never has a window size of 1, and my
> > experiments showed that even set to [env~ 2], it missed a whole bunch
> > of out-of-range samples in a big clump.
> > This is what I came up with:
> >
> > [block~ 1]
> >
> > [avg~]    (zexy object)
> > |
> > [> 1]
>
> if you want to use zexy you can also use
>
> [abs~]
> |
> [>~ 1]
> |
> [avg~]
>
> everytime the signal exceeds +-1 the avg-value will be non-zero
>
> also, the [prvu~] from iemlib counts the number of out-of-range samples,
> so you can get the info from there quite directly
>
> mfg.asdr.
> IOhannes
>
> >
> > I have a feeling this will be pretty hard on CPU, but maybe not as it
> > isn't doing much computation with the data.
> >
> > -Chuckk
> >
> > On 5/24/06, dafydd hughes <dafydd at sideshowmedia.ca> wrote:
> >> Hi Chuckk
> >>
> >> Would this work?
> >>
> >> [env~]
> >> |
> >> [> 100]
> >> |
> >>
> >> cheers
> >> dafydd
> >>
> >> On 5/24/06, Chuckk Hubbard <badmuthahubbard at gmail.com> wrote:
> >> > This might be a beginner question- is there an object to allow clip
> >> detection?
> >> > I want to do some batch recording from a tape deck, and I'd like to
> >> > set it and go and come back and check whether it clipped...
> >> >
> >> > Thanks.
> >> > Chuckk
> >> >
> >> > --
> >> > "Far and away the best prize that life has to offer is the chance to
> >> > work hard at work worth doing."
> >> > -Theodore Roosevelt
> >> >
> >> > _______________________________________________
> >> > PD-list at iem.at mailing list
> >> > UNSUBSCRIBE and account-management ->
> >> http://lists.puredata.info/listinfo/pd-list
> >> >
> >>
> >>
> >> --
> >> www.sideshowmedia.ca
> >>
> >
> >
>
>


-- 
"Far and away the best prize that life has to offer is the chance to
work hard at work worth doing."
-Theodore Roosevelt




More information about the Pd-list mailing list