diff options
Diffstat (limited to 'nusmuk-utils/tab_downsample_min.c')
-rw-r--r-- | nusmuk-utils/tab_downsample_min.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nusmuk-utils/tab_downsample_min.c b/nusmuk-utils/tab_downsample_min.c index 36f2e7f..bde534f 100644 --- a/nusmuk-utils/tab_downsample_min.c +++ b/nusmuk-utils/tab_downsample_min.c @@ -19,7 +19,7 @@ void *tab_downsample_min_new(t_symbol *s_src,t_symbol *s_dst, t_float factor) x->x_arrayname_src = s_src; x->x_arrayname_dst = s_dst; - x->factor = factor; + x->factor = MAX(1, factor); x->b_out = outlet_new(&x->x_obj, &s_bang); @@ -77,7 +77,7 @@ void tab_downsample_min_dst(t_tab_downsample_min *x, t_symbol *s_dst) { } void tab_downsample_min_factor(t_tab_downsample_min *x, t_float factor) { - x->factor = factor; + x->factor = MAX(1, factor); } void tab_downsample_min_setup(void) { |