aboutsummaryrefslogtreecommitdiff
path: root/maxlib.c
blob: 14b1b83937e9ac70981b1cf0cc31e6a288b6f219 (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
/* --------------------------  maxlib  ---------------------------------------- */
/*                                                                              */
/* maxlib :: music analysis extensions library.                                 */
/* Written by Olaf Matthes <olaf.matthes@gmx.de>                                */
/* Get source at http://www.akustische-kunst.org/puredata/maxlib/               */
/*                                                                              */
/* This program is free software; you can redistribute it and/or                */
/* modify it under the terms of the GNU General Public License                  */
/* as published by the Free Software Foundation; either version 2               */
/* of the License, or (at your option) any later version.                       */
/*                                                                              */
/* This program is distributed in the hope that it will be useful,              */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of               */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                */
/* GNU General Public License for more details.                                 */
/*                                                                              */
/* You should have received a copy of the GNU General Public License            */
/* along with this program; if not, write to the Free Software                  */
/* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  */
/*                                                                              */
/* Based on PureData by Miller Puckette and others.                             */
/*                                                                              */
/* ---------------------------------------------------------------------------- */
#ifndef VERSION
#define VERSION "1.5.2"
#endif

#include "m_pd.h"


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

typedef struct _maxlib
{
     t_object x_obj;
} t_maxlib;

static t_class* maxlib_class;

	/* objects */
void maxlib_allow_setup();
void maxlib_arbran_setup();
void maxlib_arraycopy_setup();
void maxlib_average_setup();
void maxlib_beat_setup();
void maxlib_beta_setup();
void maxlib_bilex_setup();
void maxlib_borax_setup();
void maxlib_cauchy_setup();
void maxlib_chord_setup();
void maxlib_delta_setup();
void maxlib_deny_setup();
void maxlib_dist_setup();
void maxlib_divide_setup();
void maxlib_divmod_setup();
void maxlib_edge_setup();
void maxlib_expo_setup();
void maxlib_fifo_setup();
void maxlib_gauss_setup();
void maxlib_gestalt_setup();
void maxlib_history_setup();
void maxlib_ignore_setup();
void maxlib_iso_setup();
void maxlib_lifo_setup();
void maxlib_limit_setup();
void maxlib_linear_setup();
void maxlib_listfifo_setup();
void maxlib_listfunnel_setup();
void maxlib_match_setup();
void maxlib_minus_setup();
void maxlib_mlife_setup();
void maxlib_multi_setup();
void maxlib_nchange_setup();
void maxlib_netclient_setup();
void maxlib_netdist_setup();
void maxlib_netrec_setup();
void maxlib_netserver_setup();
void maxlib_nroute_setup();
void maxlib_pitch_setup();
void maxlib_plus_setup();
void maxlib_poisson_setup();
void maxlib_pong_setup();
void maxlib_pulse_setup();
void maxlib_remote_setup();
void maxlib_rewrap_setup();
void maxlib_rhythm_setup();
void maxlib_scale_setup();
void maxlib_score_setup();
void maxlib_speedlim_setup();
void maxlib_split_setup();
void maxlib_step_setup();
void maxlib_subst_setup();
void maxlib_sync_setup();
void maxlib_temperature_setup();
void maxlib_tilt_setup();
void maxlib_timebang_setup();
void maxlib_triang_setup();
void maxlib_unroute_setup();
void maxlib_urn_setup();
void maxlib_velocity_setup();
void maxlib_weibull_setup();
void maxlib_wrap_setup();

static void* maxlib_new(t_symbol* s)
{
    t_maxlib *x = (t_maxlib *)pd_new(maxlib_class);
    return (x);
}

void maxlib_setup(void) 
{
	maxlib_class = class_new(gensym("maxlib"), (t_newmethod)maxlib_new, 0,
    	sizeof(t_maxlib), 0,0);

	maxlib_allow_setup();
	maxlib_arbran_setup();
	maxlib_arraycopy_setup();
	maxlib_average_setup();
	maxlib_beat_setup();
	maxlib_beta_setup();
	maxlib_bilex_setup();
	maxlib_borax_setup();
	maxlib_cauchy_setup();
	maxlib_chord_setup();
	maxlib_delta_setup();
	maxlib_deny_setup();
	maxlib_dist_setup();
	maxlib_divide_setup();
	maxlib_divmod_setup();
	maxlib_edge_setup();
	maxlib_expo_setup();
	maxlib_fifo_setup();
	maxlib_gauss_setup();
	maxlib_gestalt_setup();
	maxlib_history_setup();
	maxlib_ignore_setup();
	maxlib_iso_setup();
	maxlib_lifo_setup();
	maxlib_limit_setup();
	maxlib_linear_setup();
	maxlib_listfifo_setup();
	maxlib_listfunnel_setup();
	maxlib_match_setup();
	maxlib_minus_setup();
    maxlib_mlife_setup();
	maxlib_multi_setup();
	maxlib_nchange_setup();
	maxlib_netclient_setup();
	maxlib_netdist_setup();
	maxlib_netrec_setup();
	maxlib_netserver_setup();
	maxlib_nroute_setup();
	maxlib_pitch_setup();
	maxlib_plus_setup();
	maxlib_poisson_setup();
	maxlib_pong_setup();
	maxlib_pulse_setup();
	maxlib_remote_setup();
	maxlib_rewrap_setup();
	maxlib_rhythm_setup();
	maxlib_scale_setup();
	maxlib_score_setup();
	maxlib_speedlim_setup();
	maxlib_split_setup();
	maxlib_step_setup();
    maxlib_subst_setup();
	maxlib_sync_setup();
	maxlib_temperature_setup();
	maxlib_tilt_setup();
	maxlib_timebang_setup();
	maxlib_triang_setup();
	maxlib_unroute_setup();
	maxlib_urn_setup();
	maxlib_velocity_setup();
	maxlib_weibull_setup();
	maxlib_wrap_setup();

	post("\n       maxlib :: Music Analysis eXtensions LIBrary");
	post("       written by Olaf Matthes <olaf.matthes@gmx.de>");
	post("       version "VERSION);
	post("       compiled "__DATE__);
	post("       latest version at http://www.akustische-kunst.org/puredata/maxlib/");
	post("       objects: allow arbran arraycopy average beat beta bilex borax cauchy ");
	post("                chord delta deny dist divide divmod edge expo fifo gauss ");
	post("                gestalt history ignore iso lifo linear listfifo listfunnel ");
	post("                match minus mlife multi nchange netclient netdist netrec ");
	post("                netserver nroute pitch plus poisson pong pulse remote rewrap ");
	post("                rhythm scale score speedlim split step subst sync temperature ");
	post("                tilt timebang triang unroute urn velocity weibull wrap\n");
}