Krzysztof Czaja hat gesagt: // Krzysztof Czaja wrote:
have you tried sending _one_ phasor's output, x, through min~(x, a *~ (1 -~ x)), where a > 0? With one phasor you do not have to make phase adjustments... but scaling may be tricky (atan?)...
Last night I found another, similar but simpler solution shown in the attached patch. It adds something to the phasor to get a shifted signal and then uses [>~ 1] from zexy (I think) to check, if the shifted sig goes beyond 1. If it does, I substract 1, which is the result of [>~ 1] if it's true, otherwise I substract 0, which is the result of [>~ 1] if that's false. This works for a phasor~ but not for other oscillating objects like the osc~, but here it's okay.
So now, trisaw~ is a working triangle to up/down-saw morphing oscillator, that even should be bandlimited, if I understand the used algorithm (taken from a Istvan Varga Csound instrument) correctly.
Frank Barknecht _ _______footils__