Phaseshaping Osc Algorithms

I dont know how many hours i already spent on this one, and still not being able to figure it out. :smiley:
1.)
I think my first approach has somehow the right ingredients but is not yielding the desired result. The Crossfade between even/odd is following somehow the idea presented at the end of chapter 3.1 Synthesising Formants. but the plots dont look right and the sound has a totally different quality to it. Any Ideas? :slight_smile:
2.)
Im was also trying to come up with a solution for 3.2 Aliasing Suppression, which should modify the phaseshaper when the phase is inside an incomplete period and should render it as a smooth full-cycle sinusoid like in Fig. 5b.
Unbenannt

I think the modified phasor looks like in the paper but the signal is not rendered as a smooth full-cycle sinusoid at the inflection point. Any ideas? :slight_smile:

(
{
	arg freq = 392;
	var horizontal = \horizontal.kr(0.80);
	var vertical = \vertical.ar(2.2);
	var cos, phasor;

	phasor = LFSaw.ar(freq/2,1).range(horizontal.neg, 1-horizontal);
	phasor = phasor.bilin(0, horizontal.neg, 1-horizontal, vertical, 0, 1);
	phasor = Select.ar(phasor > vertical.floor, [phasor, phasor.abs.wrap(0,1)]);

	cos = (phasor * 2pi).cos.neg;

	[phasor, cos]
}.plot
)