aboutsummaryrefslogtreecommitdiff
path: root/cxc.c
blob: 3a14da41338d3deabaa6f81fbeca6712c5697338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112

#ifndef VERSION
#define VERSION "0.05"
#endif

#ifndef __DATE__ 
#define __DATE__ "without using a gnu compiler"
#endif

#include <m_pd.h>
#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 cxc_counter_setup();
void reson_tilde_setup();
//void serialize_setup();
void cxc_prepend_setup();
void cxc_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(); */
  cxc_counter_setup();
  reson_tilde_setup();
  //serialize_setup();
  cxc_prepend_setup();
  cxc_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;
}