| 1 | /* Copyright (c) 2002 Yves Degoyon |
| 2 | * For information on usage and redistribution, and for a DISCLAIMER OF ALL |
| 3 | * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ |
| 4 | |
| 5 | /* probalizer : outputs integer values according to a drawn probability curve |
| 6 | */ |
| 7 | |
| 8 | #ifndef __G_PROBALIZER_H |
| 9 | #define __G_PROBALIZER_H |
| 10 | |
| 11 | typedef struct _probalizer |
| 12 | { |
| 13 | t_object x_obj; |
| 14 | t_glist *x_glist; |
| 15 | t_int x_height; /* height of the probalizer */ |
| 16 | t_int x_width; /* width of the probalizer */ |
| 17 | t_int x_nvalues; /* number of values */ |
| 18 | t_int x_noccurrences; /* max number of occurrences in a serial */ |
| 19 | t_int *x_probs; /* probability of each event */ |
| 20 | t_int *x_ovalues; /* number of outputs of each event */ |
| 21 | int x_selected; /* stores selected state */ |
| 22 | int x_save; /* saving contents flag */ |
| 23 | t_outlet *x_endoutlet; /* outlet to signal the end of the serial */ |
| 24 | } t_probalizer; |
| 25 | |
| 26 | #endif |