aboutsummaryrefslogtreecommitdiff
path: root/flib
diff options
context:
space:
mode:
authorJamie Bullock <postlude@users.sourceforge.net>2006-04-07 20:11:49 +0000
committerJamie Bullock <postlude@users.sourceforge.net>2006-04-07 20:11:49 +0000
commit929b0f5f58583d2916800df9cdfd55c2953fe55f (patch)
tree409701878496ebaa48bd9a086fc8ba8bdd193b94 /flib
parent868a2997a2739ca64ead0e6eb8f0240c3fdec413 (diff)
Removed need for arg in cross~
svn path=/trunk/externals/postlude/; revision=4843
Diffstat (limited to 'flib')
-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);