aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flib/src/cross~.c3
-rw-r--r--flib/src/flib.h1
2 files changed, 4 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[] */
diff --git a/flib/src/flib.h b/flib/src/flib.h
index 0cb4b4c..fba78f0 100644
--- a/flib/src/flib.h
+++ b/flib/src/flib.h
@@ -37,4 +37,5 @@ void melf_tilde_setup(void);
void clean_tilde_setup(void);
void wdv_tilde_setup(void);
void hca_tilde_setup(void);
+void cross_tilde_setup(void);