grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.59k stars 325 forks source link

change BinOp("|") to have fLeftAbsorbing/fRightAbsorbing predicates #977

Closed oleg-nesterov closed 11 months ago

oleg-nesterov commented 1 year ago

Before this patch

import("stdfaust.lib");
process = |(ma.not(0));

compiles to

output0[i0] = FAUSTFLOAT(int(float(input0[i0])) | -1);

after the patch

output0[i0] = FAUSTFLOAT(-1);
sletz commented 11 months ago

Merged thanks.