Yeah CheckBadValues will work, and can post a warning, or this if you prefer:
void ZapGremlins_Ctor(ZapGremlins* unit)
{
SETCALC(ZapGremlins_next);
}
void ZapGremlins_next(ZapGremlins* unit, int inNumSamples)
{
float *in = ZIN(0);
float *out = ZOUT(0);
LOOP(inNumSamples,
ZXP(out) = zapgremlins(ZXP(in));
);
}
S.
On 7 Mar 2008, at 22:40, Dan Stowell wrote:
Dyou know CheckBadValues? That's easy to use for this purpose
Dan
Years ago (gasp... 5 !) I wrote a UGen called Fuse that blocked NaN, inf and
other nasty blow ups. It protected the server; useful for putting on
individual channels.
unfortunately I lost the source code and the build so I need to write it
again.
does anybody have anything similar already ? otherwise I'll have a go at
it. its not a complicated idea.
I've been playing with lots of the josh, mcld, blackrain, bhob ugens lately.
awesome stuff !
-cx
_______________________________________________
sc-users mailing list
--
_______________________________________________
sc-users mailing list
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users