< Back to IRCAM Forum

Signum function

Greetings All,

Is there an OM equivalent for the signum function
Sgn (x) :=

-1 if x<0

0 if x=0

1 if x>0

Any help would be appreciated!

Thanks very much,
Krhes

Hi

Simply cmd+click (or ctrl+click) in a patch and type “signum”. this will do the job
Best
KScreenshot_2019-07-05_16-21-05

Dear K,

Well, that’s straightforward!!

Thanks very much!

Have a good weekend,
Krhes.