/* choice -- match incoming list against a collection of stored templates. */ /* Copyright 1999 Miller Puckette. Permission is granted to use this software for any purpose provided you keep this copyright notice intact. THE AUTHOR AND HIS EMPLOYERS MAKE NO WARRANTY, EXPRESS OR IMPLIED, IN CONNECTION WITH THIS SOFTWARE. This file is downloadable from http://www.crca.ucsd.edu/~msp . */ #include "m_pd.h" #include <math.h> static t_class *choice_class; #define DIMENSION … t_elem; t_choice; static void *choice_new(t_float fnonrepeat) { … } static void choice_clear(t_choice *x) { … } static void choice_print(t_choice *x) { … } static void choice_add(t_choice *x, t_symbol *s, int argc, t_atom *argv) { … } static void choice_list(t_choice *x, t_symbol *s, int argc, t_atom *argv) { … } static void choice_free(t_choice *x) { … } void choice_setup(void) { … }