aboutsummaryrefslogtreecommitdiff
path: root/probalizer.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-07-31 03:59:16 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:23:30 +0200
commitd145fa6f792d6c44da2feec90507adb94e40323e (patch)
treeae3aaf213dbb4273331745802ef1259dce8e2986 /probalizer.h
parent67af8f6b3f179d5b4ba0747ab971abbeecbedd45 (diff)
got everything building using the template Makefile
svn path=/trunk/externals/unauthorized/; revision=15173
Diffstat (limited to 'probalizer.h')
-rw-r--r--probalizer.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/probalizer.h b/probalizer.h
new file mode 100644
index 0000000..51c9711
--- /dev/null
+++ b/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