From 929b0f5f58583d2916800df9cdfd55c2953fe55f Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Fri, 7 Apr 2006 20:11:49 +0000 Subject: Removed need for arg in cross~ svn path=/trunk/externals/postlude/; revision=4843 --- flib/src/cross~.c | 3 +++ flib/src/flib.h | 1 + 2 files changed, 4 insertions(+) (limited to 'flib') 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); -- cgit v1.2.1