From 2453c05054b69951b301527f1f7b132cff143359 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 14 May 2010 02:48:03 +0000 Subject: first steps towards porting to template Makefile and debianizing, split up randomix.c into separete files for each objectclass, much left to do svn path=/trunk/externals/cxc/; revision=13540 --- cxc.c | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 cxc.c (limited to 'cxc.c') diff --git a/cxc.c b/cxc.c new file mode 100644 index 0000000..25717ed --- /dev/null +++ b/cxc.c @@ -0,0 +1,112 @@ + +#ifndef VERSION +#define VERSION "0.05" +#endif + +#ifndef __DATE__ +#define __DATE__ "without using a gnu compiler" +#endif + +#include +#include "cxc.h" + +typedef struct _cxc +{ + t_object x_obj; +} t_cxc; + +static t_class* cxc_class; + +void binshift_setup(); +void ascwave_setup(); +void ascseq_setup(); +void ixprint_setup(); +//void mixer_setup(); +//void makesymbol_setup(); +void bfilt_setup(); +void bfilt2_setup(); +/* void sendOSC_setup(); */ +/* void dumpOSC_setup(); */ +/* void routeOSC_setup(); */ +//void testy_tilde_setup(); +//void garlic_tilde_setup(); +void counter_setup(); +void reson_tilde_setup(); +//void serialize_setup(); +void prepend_setup(); +void split_setup(); +void utime_setup(); +// RNG's +void random1_setup(); +void random1_tilde_setup(); // signal version +void random_fl_setup(); +void random_fl_tilde_setup(); +void random_icg_setup(); +void random_icg_tilde_setup(); +void random_tw_setup(); +void dist_normal_setup(); + +void ENV_setup(); +void proc_setup(); + +void cxmean_setup(); +void cxavgdev_setup(); +void cxstddev_setup(); + +void mean_tilde_setup(); + +void delta_tilde_setup(); + +static void* cxc_new(t_symbol* s) { + t_cxc *x = (t_cxc *)pd_new(cxc_class); + return (x); +} + +void cxc_setup(void) +{ + cxc_class = class_new(gensym("cxc"), (t_newmethod)cxc_new, 0, + sizeof(t_cxc), 0,0); + ixprint_setup(); + binshift_setup(); + ascwave_setup(); + ascseq_setup(); + // mixer_setup(); + // makesymbol_setup(); + bfilt_setup(); + bfilt2_setup(); +/* sendOSC_setup(); */ +/* dumpOSC_setup(); */ +/* routeOSC_setup(); */ + counter_setup(); + reson_tilde_setup(); + //serialize_setup(); + prepend_setup(); + split_setup(); + utime_setup(); + // RNG's + random1_setup(); + random1_tilde_setup(); + random_fl_setup(); + random_fl_tilde_setup(); + random_icg_setup(); + random_icg_tilde_setup(); + random_tw_setup(); + dist_normal_setup(); + + ENV_setup(); + proc_setup(); + + cxmean_setup(); + cxavgdev_setup(); + cxstddev_setup(); + + mean_tilde_setup(); + + delta_tilde_setup(); + + post("c : jdl@xdv.org ========================================"); + post(" x : ver: "VERSION" ============================================"); + post(" c: compiled: "__DATE__" =================================="); + // post("\\"); + // L; +} -- cgit v1.2.1