From 42750d74dc03be5fc10e56f3c534e854680c7d17 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 16 Aug 2003 08:42:27 +0000 Subject: added files straight from Yves' sources svn path=/trunk/externals/unauthorized/; revision=859 --- probalizer/probalizer.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 probalizer/probalizer.h (limited to 'probalizer/probalizer.h') diff --git a/probalizer/probalizer.h b/probalizer/probalizer.h new file mode 100644 index 0000000..51c9711 --- /dev/null +++ b/probalizer/probalizer.h @@ -0,0 +1,26 @@ +/* Copyright (c) 2002 Yves Degoyon +* For information on usage and redistribution, and for a DISCLAIMER OF ALL +* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ + +/* probalizer : outputs integer values according to a drawn probability curve +*/ + +#ifndef __G_PROBALIZER_H +#define __G_PROBALIZER_H + +typedef struct _probalizer +{ + t_object x_obj; + t_glist *x_glist; + t_int x_height; /* height of the probalizer */ + t_int x_width; /* width of the probalizer */ + t_int x_nvalues; /* number of values */ + t_int x_noccurrences; /* max number of occurrences in a serial */ + t_int *x_probs; /* probability of each event */ + t_int *x_ovalues; /* number of outputs of each event */ + int x_selected; /* stores selected state */ + int x_save; /* saving contents flag */ + t_outlet *x_endoutlet; /* outlet to signal the end of the serial */ +} t_probalizer; + +#endif -- cgit v1.2.1