Forums > MaxMSP

how to avoid division by zero?

February 26, 2011 | 10:37 pm

hi,
in creating a patch on discrete summation formula I need to avoid division by zero
because I’m dividing the outputs of two oscillators.
Do you have some suggestion????
Thanks
fv


February 27, 2011 | 4:49 pm

I assume you wish to stay in the signal domain, so [if $f1 != 0. then $f1] won’t do……… I could be talking out of my backside, but what about the [abs~] object, will that pass a zero signal? but then you won’t get your negative values either….hmmmm

Brendan


February 27, 2011 | 5:27 pm

Trick question? What about !=~



Jan
February 27, 2011 | 6:32 pm

maybe [maximum~ 0.001] can help.
jan


February 27, 2011 | 6:50 pm

we are discussing this problem in the following post concerning discrete summation formula:

http://cycling74.com/forums/topic.php?id=31332


Viewing 5 posts - 1 through 5 (of 5 total)