Forums > MaxMSP

how to avoid division by zero?

Feb 26 2011 | 10:37 pm

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????

Feb 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


Feb 27 2011 | 5:27 pm

Trick question? What about !=~

Feb 27 2011 | 6:32 pm

maybe [maximum~ 0.001] can help.

Feb 27 2011 | 6:50 pm

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

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

Forums > MaxMSP