global::init() does

        TINPUT = makeSimpleType(kReal, kSamp, kExec, kVect, kNum, interval(-1, 
1));

and "interval(-1, 1)" doesn't look right to me. Why does
faust assume that "-1 <= inputs[i] <= 1" ???

To me, this code

        process(x,y) = x@(y+1);

is wrong and should fail with "can't compute the min and max values"
error message, but faust happily compiles it to

        float fVec0[3];

        ...

        virtual void compute(int count, FAUSTFLOAT** RESTRICT inputs, 
FAUSTFLOAT** RESTRICT outputs) {
                FAUSTFLOAT* input0 = inputs[0];
                FAUSTFLOAT* input1 = inputs[1];
                FAUSTFLOAT* output0 = outputs[0];
                for (int i0 = 0; i0 < count; i0 = i0 + 1) {
                        fVec0[0] = float(input0[i0]);
                        output0[i0] = FAUSTFLOAT(fVec0[int(float(input1[i0]) + 
1.0f)]);
                        fVec0[2] = fVec0[1];
                        fVec0[1] = fVec0[0];
                }
        }

Oleg.



_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to