From the original SynthMaker forum (2004–2014), with its members’ names and dates.
unkargherth ·
very very stange
This Fails
polyin i;
polyout o;
float a;
a=max(min(i,0.999),0.001);
o=a;
This Works
polyin i;
polyout o;
float a;
a=min(i,0.999);
a=max(a,0.001);
o=a;
It's a bug or i misunderstood something really stupid ?
EDIT: corrected a mall code typo
Tom7777 ·
Im not sure but for that second code you should add a ; after setting the min value i think 🙂
unkargherth ·
true. sorry. I typed, not copy pasted
jorge ·
unkargherth wrote: It's a bug or i misunderstood something really stupid ?
Most probably a bug. These kind of bugs are normally very easy to fix but hard to find, so thanks for reporting it.