I can imagine signal mod n as:

[sig~]
|
[/~ n]
|
[wrap]
|
[*~ n]

But this is subject to numeric precision issues (1.00002 below).

Alternately, [expr~ fmod($v1, n)] ("too slow") or cyclone ("not vanilla").

pd-signal-mod.png

Any other way?

hjh