how to avoid division by zero?

federico's icon

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

brendan mccloskey's icon

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

ztutz's icon

Trick question? What about !=~

Jan M's icon

maybe [maximum~ 0.001] can help.
jan

federico's icon

we are discussing this problem in the following post concerning discrete summation formula:
https://cycling74.com/forums/discrete-summation-formula-on-max