aboutsummaryrefslogtreecommitdiff
path: root/source/vcog.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/vcog.c')
-rw-r--r--source/vcog.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/source/vcog.c b/source/vcog.c
deleted file mode 100644
index 1dd68a4..0000000
--- a/source/vcog.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include "defines.h"
-
-/*--------------- vcog ---------------*/
-
-static t_class *vcog_class;
-
-typedef struct _vcog
-{
- t_object x_obj;
-} t_vcog;
-
-
-static void vcog_perform(t_vcog *x, t_symbol *s, int argc, t_atom *argv)
-{
- float sum=0.f;
- float wsum=0.0f;
- int i;
- for (i = 0; i < argc; i++)
- {
- float tmp=atom_getfloat(&argv[i]);
- sum+= tmp;
- wsum+= tmp*i;
- }
- if (sum!=0.0f) outlet_float(x->x_obj.ob_outlet, 1.0f+(wsum/sum));
-}
-
-static void *vcog_new( t_float halfDecayTime)
-{
- t_vcog *x=(t_vcog *)pd_new(vcog_class);
- outlet_new(&x->x_obj, gensym("float"));
- return (void *)x;
-}
-
-void vcog_setup(void)
-{
- vcog_class = class_new(gensym("vcog"),
- (t_newmethod)vcog_new, 0,
- sizeof(t_vcog),
- CLASS_DEFAULT,
- 0);
- class_addlist(vcog_class, (t_method)vcog_perform);
-}
-