void limiter_tilde_setup(void) { init_sinc(); limiter_class = class_new(gensym("limiter~"), (t_newmethod)limiter_new, (t_method)limiter_free, sizeof(t_limiter), 0, A_GIMME, 0); class_addmethod(limiter_class, nullfn, gensym("signal"), 0); class_addmethod(limiter_class, (t_method)limiter_dsp, gensym("dsp"), 0); class_addmethod(limiter_class, (t_method)limiter_tilde_helper, gensym("help"), 0); class_addmethod(limiter_class, (t_method)status, gensym("print"), 0); class_addmethod(limiter_class, (t_method)set_mode, gensym("mode"), A_FLOAT, 0); class_addmethod(limiter_class, (t_method)set_LIMIT, gensym("LIMIT"), 0); class_addmethod(limiter_class, (t_method)set_CRACK, gensym("CRACK"), 0); class_addmethod(limiter_class, (t_method)set_COMPRESS, gensym("COMPRESS"), 0); class_addmethod(limiter_class, (t_method)set_treshold, gensym("tresh"), A_FLOAT, 0); class_addmethod(limiter_class, (t_method)set_treshold, gensym("treshold"), A_FLOAT, 0); class_addmethod(limiter_class, (t_method)set_ratio, gensym("ratio"), A_FLOAT, 0); class_addmethod(limiter_class, (t_method)set1, gensym("set"), A_FLOAT, A_FLOAT, A_FLOAT, 0); class_addmethod(limiter_class, (t_method)set2, gensym("set2"), A_FLOAT, A_FLOAT, A_FLOAT, 0); class_addmethod(limiter_class, (t_method)set_compressor,gensym("compress"), A_FLOAT, A_FLOAT, A_FLOAT, 0); class_addmethod(limiter_class, (t_method)set_limits, gensym("limits"), A_FLOAT, A_FLOAT, 0); class_addmethod(limiter_class, (t_method)set_limit, gensym("limit"), A_FLOAT, 0); class_addfloat (limiter_class, set_limit); class_addmethod(limiter_class, (t_method)reset, gensym("reset"), 0); zexy_register("limiter~"); }
void liststorage_setup(void) { liststorage_class = class_new(gensym("liststorage"), (t_newmethod)liststorage_new, (t_method)liststorage_free, sizeof(t_liststorage), 0, A_DEFFLOAT, 0); /* recall all lists from the current slot */ class_addbang(liststorage_class, (t_method)liststorage_bang); /* add a new list to the current slot */ class_addmethod(liststorage_class, (t_method)liststorage_add, gensym("add"), A_GIMME, 0); /* clear the current slot */ class_addmethod(liststorage_class, (t_method)liststorage_clear, gensym("clear"), 0); /* clear all slots */ class_addmethod(liststorage_class, (t_method)liststorage_clearall, gensym("clearall"), 0); /* add a new list to the current slot */ class_addmethod(liststorage_class, (t_method)liststorage_slot, gensym("slot"), A_FLOAT, 0); /* insert an empty slot at (before) given position */ class_addmethod(liststorage_class, (t_method)liststorage_insert, gensym("insert"), A_DEFFLOAT, 0); /* remove empty slots */ class_addmethod(liststorage_class, (t_method)liststorage_compress, gensym("compress"), 0); /* get the number of slots */ class_addmethod(liststorage_class, (t_method)liststorage_info, gensym("info"), 0); zexy_register("liststorage"); }
void zexy_setup(void) { int i; startpost("\n\t"); for (i=0; i<3; i++) startpost("%c", HEARTSYMBOL); endpost(); post("\t%c the zexy external "VERSION, HEARTSYMBOL); post("\t%c (c) 1999-2012 IOhannes m zmölnig", HEARTSYMBOL); post("\t%c forum::für::umläute", HEARTSYMBOL); post("\t%c iem @ kug", HEARTSYMBOL); post("\t%c compiled: "__DATE__, HEARTSYMBOL); post("\t%c send me a 'help' message", HEARTSYMBOL); startpost("\t"); for (i=0; i<3; i++) startpost("%c", HEARTSYMBOL); endpost(); endpost(); zexy_class = class_new(gensym("zexy"), zexy_new, 0, sizeof(t_zexy), 0, 0); class_addmethod(zexy_class, zexy_help, gensym("help"), 0); zexy_register("zexy"); /* ************************************** */ z_zexy_setup(); }
void index_setup(void) { index_class = class_new(gensym("index"), (t_newmethod)index_new, (t_method)index_free, sizeof(t_index), 0, A_GIMME, 0); class_addsymbol(index_class, index_symbol); class_addmethod(index_class, (t_method)index_reset, gensym("reset"), 0); class_addmethod(index_class, (t_method)index_delete, gensym("delete"), A_GIMME, 0); /* class_addmethod(index_class, (t_method)index_add, gensym("add"), A_SYMBOL, 0); */ class_addmethod(index_class, (t_method)index_add, gensym("add"), A_SYMBOL, A_DEFFLOAT, 0); class_addmethod(index_class, (t_method)index_auto, gensym("auto"), A_FLOAT, 0); class_addmethod(index_class, (t_method)index_resize, gensym("resize"), A_FLOAT, 0); class_addfloat(index_class, (t_method)index_float); class_addbang(index_class, (t_method)index_bang); class_addmethod(index_class, (t_method)index_sort, gensym("sort"), 0); class_addmethod(index_class, (t_method)index_compact, gensym("compact"), 0); class_addmethod(index_class, (t_method)index_dump, gensym("dump"), 0); class_addmethod(index_class, (t_method)index_helper, gensym("help"), 0); zexy_register("index"); }
void matchbox_setup(void) { #ifdef MATCHBOX_OSC post("matchbox: OSC-pattern matching code (c) Matt Wright, CNMAT"); #endif /* MATCHBOX_OSC */ matchbox_class = class_new(gensym("matchbox"), (t_newmethod)matchbox_new, (t_method)matchbox_free, sizeof(t_matchbox), 0, A_GIMME, 0); class_addlist (matchbox_class, matchbox_list); class_addmethod(matchbox_class, (t_method)matchbox_add, gensym("add"), A_GIMME, 0); class_addmethod(matchbox_class, (t_method)matchbox_delete, gensym("delete"), A_GIMME, 0); class_addmethod(matchbox_class, (t_method)matchbox_clear, gensym("clear"), A_NULL, 0); class_addmethod(matchbox_class, (t_method)matchbox_dump, gensym("dump"), A_NULL); class_addmethod(matchbox_class, (t_method)matchbox_mode, gensym("mode"), A_SYMBOL, 0); class_addmethod(matchbox_class, (t_method)matchbox_help, gensym("help"), A_NULL); zexy_register("matchbox"); }
void multireceive_setup(void) { multireceive_class = class_new(gensym("multireceive"), (t_newmethod)multireceive_new, (t_method)multireceive_free, sizeof(t_multireceive), 0, A_GIMME, 0); class_addmethod(multireceive_class, (t_method)multireceive_set, gensym("set"), A_GIMME, 0); class_addmethod(multireceive_class, (t_method)multireceive_add, gensym("add"), A_SYMBOL, 0); multireceive_proxy_class = class_new(gensym("multireceive proxy "__DATE__""__TIME__""), 0, 0, sizeof(t_multireceive_proxy), CLASS_PD | CLASS_NOINLET, 0); class_addanything(multireceive_proxy_class, multireceive_any); zexy_register("multireceive"); }
void repeat_setup(void) { repeat_class = class_new(gensym("repeat"), (t_newmethod)repeat_new, 0, sizeof(t_repeat), 0, A_GIMME, 0); class_addanything(repeat_class, repeat_anything); zexy_register("repeat"); }
void relay_setup(void) { relay_class = class_new(gensym("relay"), (t_newmethod)relay_new, (t_method)relay_free, sizeof(t_relay), 0, A_GIMME, 0); class_addlist(relay_class, relay_list); class_addanything(relay_class, relay_anything); zexy_register("relay"); }
void rawprint_setup(void) { rawprint_class = class_new(gensym("rawprint"), (t_newmethod)rawprint_new, 0, sizeof(t_rawprint), CLASS_DEFAULT, A_DEFSYMBOL, 0); class_addanything(rawprint_class, rawprint_any); zexy_register("rawprint"); }
void sleepgrain_setup(void) { sleepgrain_class = class_new(gensym("sleepgrain"), (t_newmethod)sleepgrain_new, 0, sizeof(t_sleepgrain), 0, A_NULL); class_addbang (sleepgrain_class, sleepgrain_bang); class_addfloat (sleepgrain_class, sleepgrain_float); zexy_register("sleepgrain"); }
void fwriteln_setup(void) { fwriteln_class = class_new(gensym("fwriteln"), (t_newmethod)fwriteln_new, (t_method) fwriteln_free, sizeof(t_fwriteln), CLASS_DEFAULT, A_GIMME, 0); class_addmethod(fwriteln_class, (t_method)fwriteln_open, gensym("open"), A_SYMBOL, A_DEFSYM, 0); class_addmethod(fwriteln_class, (t_method)fwriteln_close, gensym("close"), A_NULL, 0); class_addanything(fwriteln_class, (t_method)fwriteln_write); zexy_register("fwriteln"); }
void length_setup(void) { length_class = class_new(gensym("length"), (t_newmethod)length_new, 0, sizeof(t_length), 0, A_DEFFLOAT, 0); class_addlist(length_class, (t_method)length_list); class_addanything(length_class, (t_method)length_any); zexy_register("length"); }
void dfreq_tilde_setup(void) { dfreq_class = class_new(gensym("dfreq~"), (t_newmethod)dfreq_new, 0, sizeof(t_dfreq), 0, A_NULL); class_addmethod(dfreq_class, nullfn, gensym("signal"), 0); class_addmethod(dfreq_class, (t_method)dfreq_dsp, gensym("dsp"), 0); class_addmethod(dfreq_class, (t_method)dfreq_tilde_helper, gensym("help"), 0); zexy_register("dfreq~"); }
void niagara_setup(void) { niagara_class = class_new(gensym("niagara"), (t_newmethod)niagara_new, 0, sizeof(t_niagara), 0, A_DEFFLOAT, 0); class_addlist (niagara_class, niagara_list); class_addanything(niagara_class, niagara_any); zexy_register("niagara"); }
void freadln_setup(void) { freadln_class = class_new(gensym("freadln"), (t_newmethod)freadln_new, (t_method) freadln_free, sizeof(t_freadln), 0, 0); class_addmethod(freadln_class, (t_method)freadln_open, gensym("open"), A_SYMBOL, A_DEFSYM, 0); class_addmethod(freadln_class, (t_method)freadln_close, gensym("close"), A_NULL, 0); class_addbang(freadln_class, (t_method)freadln_readline); zexy_register("freadln"); }
void listfind_setup(void) { listfind_class = class_new(gensym("listfind"), (t_newmethod)listfind_new, (t_method)listfind_free, sizeof(t_listfind), 0, A_GIMME, 0); class_addlist (listfind_class, listfind_list); class_addmethod (listfind_class, (t_method)listfind_list2, gensym("lst2"), A_GIMME, 0); class_addmethod(listfind_class, (t_method)listfind_help, gensym("help"), A_NULL); zexy_register("listfind"); }
void longload_setup(void) { longload_class = class_new(gensym("longload"), (t_newmethod)longload_new, 0, sizeof(t_longload), CLASS_NOINLET, A_DEFFLOAT, 0); zexy_register("longload"); }
void avg_tilde_setup(void) { avg_class = class_new(gensym("avg~"), (t_newmethod)avg_new, 0, sizeof(t_avg), 0, A_DEFFLOAT, 0); class_addmethod(avg_class, nullfn, gensym("signal"), 0); class_addmethod(avg_class, (t_method)avg_dsp, gensym("dsp"), 0); class_addmethod(avg_class, (t_method)avg_help, gensym("help"), 0); zexy_register("avg~"); }
void sort_setup(void) { sort_class = class_new(gensym("sort"), (t_newmethod)sort_new, 0, sizeof(t_sort), 0, A_DEFFLOAT, 0); class_addlist (sort_class, sort_list); class_addmethod (sort_class, (t_method)sort_dir, gensym("direction"), A_DEFFLOAT, 0); class_addmethod(sort_class, (t_method)sort_help, gensym("help"), A_NULL); zexy_register("sort"); }
void wrap_setup(void) { wrap_class = class_new(gensym("wrap"), (t_newmethod)wrap_new, 0, sizeof(t_wrap), CLASS_DEFAULT, A_GIMME, A_NULL); class_addfloat (wrap_class, wrap_float); class_addmethod(wrap_class, (t_method)wrap_set, gensym("set"), A_GIMME, 0); class_addmethod(wrap_class, (t_method)wrap_help, gensym("help"), A_NULL); zexy_register("wrap"); }
void date_setup(void) { date_class = class_new(gensym("date"), (t_newmethod)date_new, 0, sizeof(t_date), 0, A_GIMME, 0); class_addbang(date_class, date_bang); class_addmethod(date_class, (t_method)help_date, gensym("help"), 0); zexy_register("date"); }
void glue_setup(void) { glue_class = class_new(gensym("glue"), (t_newmethod)glue_new, (t_method)glue_free, sizeof(t_glue), 0, A_GIMME, 0); class_addlist(glue_class, glue_lst); class_addmethod (glue_class, (t_method)glue_lst2, gensym(""), A_GIMME, 0); class_addbang(glue_class, glue_bang); class_addmethod (glue_class, (t_method)glue_help, gensym("help"), 0); zexy_register("glue"); }
void minmax_setup(void) { minmax_class = class_new(gensym("minmax"), (t_newmethod)minmax_new, 0, sizeof(t_minmax), 0, A_DEFFLOAT, 0); class_addlist(minmax_class, (t_method)minmax_list); class_addbang(minmax_class, (t_method)minmax_bang); class_addmethod(minmax_class, (t_method)minmax_help, gensym("help"), 0); zexy_register("minmax"); }
void time_setup(void) { time_class = class_new(gensym("time"), (t_newmethod)time_new, 0, sizeof(t_time), 0, A_GIMME, 0); class_addbang(time_class, time_bang); class_addmethod(time_class, (t_method)help_time, gensym("help"), 0); zexy_register("time"); }
void pack_tilde_setup(void) { sigpack_class = class_new(gensym("pack~"), (t_newmethod)sigpack_new, (t_method)sigpack_free, sizeof(t_sigpack), 0, A_DEFFLOAT, 0); class_addmethod(sigpack_class, nullfn, gensym("signal"), 0); class_addmethod(sigpack_class, (t_method)sigpack_dsp, gensym("dsp"), 0); class_addmethod(sigpack_class, (t_method)sigpack_help, gensym("help"), 0); zexy_register("pack~"); }
void z_tilde_setup(void) { zNdelay_class = class_new(gensym("z~"), (t_newmethod)zNdelay_new, (t_method)zNdelay_free, sizeof(t_zNdelay), 0, A_DEFFLOAT, 0); class_addmethod(zNdelay_class, nullfn, gensym("signal"), 0); class_addmethod(zNdelay_class, (t_method)zNdelay_dsp, gensym("dsp"), 0); class_addfloat(zNdelay_class, zdel_float); class_addmethod(zNdelay_class, (t_method)zdel_float, gensym("ft1"), A_FLOAT, 0); class_addmethod(zNdelay_class, (t_method)zdel_helper, gensym("help"), 0); zexy_register("z~"); }
void unpack_tilde_setup(void) { sigunpack_class = class_new(gensym("unpack~"), (t_newmethod)sigunpack_new, 0, sizeof(t_sigunpack), 0, A_DEFFLOAT, 0); class_addmethod(sigunpack_class, (t_method)sigunpack_dsp, gensym("dsp"), 0); class_addfloat(sigunpack_class, (t_method)sigunpack_float); class_addlist (sigunpack_class, (t_method)sigunpack_list); class_addmethod(sigunpack_class, (t_method)sigunpack_help, gensym("help"), 0); zexy_register("unpack~"); }
void noish_tilde_setup(void) { noish_class = class_new(gensym("noish~"), (t_newmethod)noish_new, 0, sizeof(t_nois), 0, A_DEFFLOAT, 0); class_addfloat(noish_class, set_freq); class_addmethod(noish_class, (t_method)noish_dsp, gensym("dsp"), 0); class_addmethod(noish_class, (t_method)set_noisseed, gensym("seed"), A_FLOAT, 0); class_addmethod(noish_class, (t_method)noish_helper, gensym("help"), 0); zexy_register("noish~"); }
void atoi_setup(void) { atoi_class = class_new(gensym("atoi"), (t_newmethod)atoi_new, 0, sizeof(t_atoi), 0, A_DEFFLOAT, 0); class_addbang(atoi_class, (t_method)atoi_bang); class_addfloat(atoi_class, (t_method)atoi_float); class_addlist(atoi_class, (t_method)atoi_list); class_addsymbol(atoi_class, (t_method)atoi_symbol); class_addanything(atoi_class, (t_method)atoi_symbol); zexy_register("atoi"); }
void symbol2list_setup(void) { symbol2list_class = class_new(gensym("symbol2list"), (t_newmethod)symbol2list_new, (t_method)symbol2list_free, sizeof(t_symbol2list), 0, A_GIMME, 0); class_addcreator((t_newmethod)symbol2list_new, gensym("s2l"), A_GIMME, 0); class_addsymbol (symbol2list_class, symbol2list_symbol); class_addbang (symbol2list_class, symbol2list_bang); class_addmethod (symbol2list_class, (t_method)symbol2list_delimiter, gensym(""), A_SYMBOL, 0); class_addmethod(symbol2list_class, (t_method)symbol2list_help, gensym("help"), A_NULL); zexy_register("symbol2list"); }