aboutsummaryrefslogtreecommitdiff
path: root/src/z_skeleton_tilde.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-03-22 20:58:25 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-03-22 20:58:25 +0000
commit2b60d55c919e7588f5aff15936e83c300b3660bb (patch)
tree14d860de7f28083d3756ad91b627de70f26788f6 /src/z_skeleton_tilde.c
parentc500bc542cb7cc78d6dac3f7da3bff626056b1aa (diff)
zexy-2.0:
- use of abstractions for objects that allow it - some objects are build both as externals and abstractions (as slower fallbacks) - code-layout is now 1:1 c-file<->object (this should allow for building of zexy as a collection of externals instead as a big library) - matrix-objects have moved to iemmatrix !! svn path=/trunk/externals/zexy/; revision=2641
Diffstat (limited to 'src/z_skeleton_tilde.c')
-rw-r--r--src/z_skeleton_tilde.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/z_skeleton_tilde.c b/src/z_skeleton_tilde.c
deleted file mode 100644
index 4587afd..0000000
--- a/src/z_skeleton_tilde.c
+++ /dev/null
@@ -1,61 +0,0 @@
-#include <stdio.h>
-
-#include "zexy.h"
-
-#ifdef NT
-#pragma warning( disable : 4244 )
-#pragma warning( disable : 4305 )
-#endif
-
-/* skeleton~ : skeleton-code for a signal-object */
-
-/* ------------------------ skeleton~ ----------------------------- */
-
-static t_class *skeleton_class;
-
-typedef struct _skeleton
-{
- t_object x_obj;
-
-} t_skeleton;
-
-
-static t_int *skeleton_perform(t_int *w)
-{
- t_float *in = (t_float *)(w[1]);
- t_float *out = (t_float *)(w[2]);
- int n = (int)(w[3]);
- t_skeleton *x = (t_skeleton *) w[4];
-
- while (n--) {
- *in++=*out++;
- }
-
- return (w+5);
-}
-
-static void skeleton_dsp(t_skeleton *x, t_signal **sp)
-{
- dsp_add(skeleton_perform, 4, sp[0]->s_vec, sp[1]->s_vec, sp[0]->s_n,x);
-}
-
-
-
-static void *skeleton_new()
-{
- t_skeleton *x = (t_skeleton *)pd_new(skeleton_class);
- outlet_new(&x->x_obj, gensym("signal"));
-
- return (x);
-}
-
-void z_skeleton_tilde_setup(void)
-{
- skeleton_class = class_new(gensym("skeleton~"), (t_newmethod)skeleton_new, 0,
- sizeof(t_skeleton), 0, A_DEFFLOAT, 0);
- class_addmethod(skeleton_class, nullfn, gensym("signal"), 0);
- class_addmethod(skeleton_class, (t_method)skeleton_dsp, gensym("dsp"), 0);
-
- class_sethelpsymbol(skeleton_class, gensym("zexy/skeleton~"));
-}
-