GenExpr: elapsed as condition
Hi everyone,
I'm having troubles with this code that I'm using and I can't figure out why.
Buffer noisy_signal("noisy_signal");
if (elapsed == 1) {
noise = noise();
for (i = 0; i < 5; i += 1) {
poke(noisy_signal, abs(noise), i, 0, index="samples");
}
}
When activate the audio I get these error messages:
gen~: 2702:17:equality comparison with extraneous parentheses
gen~: 2702:17:remove extraneous parentheses around the comparison to silence this warning
gen~: 2702:17:use '=' to turn this equality comparison into an assignment
gen~: 2713:28:called object type 't_sample' (aka 'double') is not a function or function pointer
gen~: failed to compile patcher
This seems odd, because I can't spot any parentheses error.
any clue?
Thanks
Matteo