Forums > Gen

very strange behavior of clip & min/max in cycle

April 4, 2014 | 1:55 pm

hi,

on this evening i’ve done some experiments whith waveshaping in gen. i have found very strange behavior – i think this is a bug?

i think the outputs 2-5 of the following code have to be equal:

shape = 2;
ph1 = phasor(220)-0.5;
out1 = clip((ph1)*shape, -0.5, 0.5);
out2 = cos(clip((ph1)*shape, -0.5, 0.5)*twopi);
out3 = cycle(clip(ph1*shape, -0.5, 0.5), index="phase" );
out4 = cycle(max(min(ph1*shape, 0.5), -0.5), index="phase" );
out5 = cycle(min(max(ph1*shape, -0.5), 0.5), index="phase" );

but out3 and 4 are wrong

the waves of the outputs are in the attachment png-file.

have anywhere a idea.

michael

Attachments:
  1. grainSyntheseExperiment

Viewing 1 post (of 1 total)