aboutsummaryrefslogtreecommitdiff
path: root/flib/src/cross~.c
diff options
context:
space:
mode:
Diffstat (limited to 'flib/src/cross~.c')
-rw-r--r--flib/src/cross~.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/flib/src/cross~.c b/flib/src/cross~.c
index 45c3ed4..d7ea4bb 100644
--- a/flib/src/cross~.c
+++ b/flib/src/cross~.c
@@ -45,6 +45,9 @@ static t_int *cross_perform(t_int *w)
if(maxdelay > N * .5){
maxdelay = N * .5;
post("cross~: invalid maxdelay, must be <= blocksize/2");
+ }
+ else if (!maxdelay){
+ maxdelay = N * .5;
}
/* Calculate the mean of the two series x[], y[] */