grame-cncm / faust

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

Compile error #1047

Open sletz opened 3 months ago

sletz commented 3 months ago

This code does not compile anymore after https://github.com/grame-cncm/faust/commit/bb1637c72c8827b1ab3cb3b5d8c37d6c935ffb30.

This reduce case :

process = @(octave)
with {
    octave = qLog <: (_>=0)*(1<<(_));
    qLog(x) = ba.tabulate(1, log, 1024, 10, 20000, x).val;
};

returns a different interval value for octave after the commit.

Could be seen with:

process = lowest(quantize), highest(quantize)
with {
    octave = qLog <: (_>=0)*(1<<(_));
    qLog(x) = ba.tabulate(1, log, 1024, 10, 20000, x).val;
};
sletz commented 3 months ago

The bug is still there but this fix bypass it.