Пример #1
0
void dollarg_setup(void)
{
  dollarg_class = class_new(gensym("dollarg"), (t_newmethod)dollarg_new,
    (t_method)dollarg_free, sizeof(t_dollarg), 0, 0);
  class_addcreator((t_newmethod)dollarg_new, gensym("$n"), 0);
  class_addbang(dollarg_class, (t_method)dollarg_bang);
  class_addfloat(dollarg_class, (t_method)dollarg_float);
//  class_sethelpsymbol(dollarg_class, gensym("iemhelp/help-dollarg"));
}
Пример #2
0
void mjRose_setup(void) {
    mjRose_class = class_new(gensym("mjRose"),
    (t_newmethod)mjRose_new,
            0, sizeof(t_mjRose),
            CLASS_DEFAULT,
            A_DEFFLOAT, 0);
    class_addfloat(mjRose_class, mjRose_float);
    
}
Пример #3
0
void setup_0x400x2f(void) {
	rdiv_class = class_new(gensym("@/"),
		(t_newmethod)rdiv_new, 0,
		sizeof(t_binop), 0,
		A_DEFFLOAT, 0);
	class_addbang(rdiv_class, rdiv_bang);
	class_addfloat(rdiv_class, rdiv_float);
	class_sethelpsymbol(rdiv_class, gensym("revbinops"));
}
Пример #4
0
void flip_tilde_setup(void)
{
	sigflip_class = class_new(gensym("flip~"), (t_newmethod)sigflip_new, 0,
        sizeof(t_sigflip), 0, A_DEFFLOAT, 0);
    class_addmethod(sigflip_class, nullfn, gensym("signal"), A_NULL);
    class_addmethod(sigflip_class, (t_method)sigflip_dsp, gensym("dsp"), A_NULL);
	class_addfloat(sigflip_class, (t_method)sigflip_float);
    class_sethelpsymbol(sigflip_class, gensym("help-flip~.pd"));
}
Пример #5
0
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");
}
Пример #6
0
void hz2rad_setup(void)
{
  hz2rad_class = class_new(gensym("hz2rad"), (t_newmethod)hz2rad_new,
			  (t_method)hz2rad_free,sizeof(t_hz2rad),0, A_DEFFLOAT, 0);
  class_addfloat(hz2rad_class,(t_method)hz2rad_float);
  class_addlist(hz2rad_class,(t_method)hz2rad_list);
  class_addmethod(hz2rad_class,(t_method)hz2rad_set,gensym("set"),A_DEFFLOAT,0);
  class_addbang(hz2rad_class,(t_method)hz2rad_bang);
}
Пример #7
0
void xbendin2_setup(void)
{
    xbendin2_class = class_new(gensym("xbendin2"), 
			       (t_newmethod)xbendin2_new, 0,
			       sizeof(t_xbendin2), 0,
			       A_DEFFLOAT, 0);
    class_addfloat(xbendin2_class, xbendin2_float);
    /* CHECKME autocasting lists to floats */
}
void change_setup(void)
{
    change_class = class_new(gensym("change"), (t_newmethod)change_new, 0,
        sizeof(t_change), 0, A_DEFFLOAT, 0);
    class_addbang(change_class, change_bang);
    class_addfloat(change_class, change_float);
    class_addmethod(change_class, (t_method)change_set, gensym("set"),
        A_DEFFLOAT, 0);
}
Пример #9
0
void delreadc_tilde_setup(void)
{
    sigdelreadc_class = class_new(gensym("delreadc~"),
        (t_newmethod)sigdelreadc_new, 0,
        sizeof(t_sigdelreadc), 0, A_DEFSYM, A_DEFFLOAT, 0);
    class_addmethod(sigdelreadc_class, (t_method)sigdelreadc_dsp,
        gensym("dsp"), A_CANT, 0);
    class_addfloat(sigdelreadc_class, (t_method)sigdelreadc_float);
}
Пример #10
0
void xnoteout_setup(void)
{
    xnoteout_class = class_new(gensym("xnoteout"), 
			       (t_newmethod)xnoteout_new, 0,
			       sizeof(t_xnoteout), 0,
			       A_DEFFLOAT, 0);
    class_addbang(xnoteout_class, xnoteout_dooutput);
    class_addfloat(xnoteout_class, xnoteout_float);
}
Пример #11
0
static void sigdelread_setup(void)
{
    sigdelread_class = class_new(gensym("delread~"),
        (t_newmethod)sigdelread_new, 0,
        sizeof(t_sigdelread), 0, A_DEFSYM, A_DEFFLOAT, 0);
    class_addmethod(sigdelread_class, (t_method)sigdelread_dsp,
        gensym("dsp"), 0);
    class_addfloat(sigdelread_class, (t_method)sigdelread_float);
}
Пример #12
0
void ceil_setup(void)
{
  ceil_class = class_new(gensym("ceil"), (t_newmethod)ceil_new,
			  (t_method)ceil_free,sizeof(t_ceil), 0, 0);
  class_addfloat(ceil_class,(t_method)ceil_float);
  class_addlist(ceil_class,(t_method)ceil_list);
  class_addmethod(ceil_class,(t_method)ceil_set,gensym("set"),A_DEFFLOAT,0);
  class_addbang(ceil_class,(t_method)ceil_bang);
}
Пример #13
0
static void bag_setup(void)
{
    bag_class = class_new(gensym("bag"),
        (t_newmethod)bag_new, (t_method)bag_clear,
        sizeof(t_bag), 0, 0);
    class_addfloat(bag_class, bag_float);
    class_addmethod(bag_class, (t_method)bag_flush, gensym("flush"), 0);
    class_addmethod(bag_class, (t_method)bag_clear, gensym("clear"), 0);
}
Пример #14
0
void maximum_setup(void)
{
    maximum_class = class_new(gensym("maximum"),
			      (t_newmethod)maximum_new, (t_method)maximum_free,
			      sizeof(t_maximum), 0, A_DEFFLOAT, 0);
    class_addbang(maximum_class, maximum_bang);
    class_addfloat(maximum_class, maximum_float);
    class_addlist(maximum_class, maximum_list);
}
Пример #15
0
static void poly_setup(void)
{
    poly_class = class_new(gensym("poly"),
        (t_newmethod)poly_new, (t_method)poly_free,
        sizeof(t_poly), 0, A_DEFFLOAT, A_DEFFLOAT, 0);
    class_addfloat(poly_class, poly_float);
    class_addmethod(poly_class, (t_method)poly_stop, gensym("stop"), 0);
    class_addmethod(poly_class, (t_method)poly_clear, gensym("clear"), 0);
}
Пример #16
0
void slipdec_setup(void)
{
    slipdec_class = class_new(gensym("slipdec"), 
        (t_newmethod)slipdec_new, (t_method)slipdec_free,
        sizeof(t_slipdec), 0, A_GIMME, 0);
    class_addlist(slipdec_class, slipdec_list);
    class_addfloat(slipdec_class, slipdec_float);
    class_addmethod(slipdec_class, (t_method)slipdec_verbosity, gensym("verbosity"), A_FLOAT, 0);
}
Пример #17
0
void spec2_shift_tilde_setup(void)
{
  spec2_shift_tilde_class = class_new(gensym("spec2_shift~"), (t_newmethod)spec2_shift_tilde_new,
    0, sizeof(t_spec2_shift_tilde), 0, A_DEFFLOAT, 0);
  CLASS_MAINSIGNALIN(spec2_shift_tilde_class, t_spec2_shift_tilde, x_msi);
  class_addmethod(spec2_shift_tilde_class, (t_method)spec2_shift_tilde_dsp, gensym("dsp"), 0);
  class_addfloat(spec2_shift_tilde_class, (t_method)spec2_shift_tilde_add);
//  class_sethelpsymbol(spec2_shift_tilde_class, gensym("iemhelp/spec2_shift~-help"));
}
Пример #18
0
void print_tilde_setup(void)
{
    print_class = class_new(gensym("print~"), (t_newmethod)print_new, 0,
        sizeof(t_print), 0, A_DEFSYM, 0);
    CLASS_MAINSIGNALIN(print_class, t_print, x_f);
    class_addmethod(print_class, (t_method)print_dsp, gensym("dsp"), 0);
    class_addbang(print_class, print_bang);
    class_addfloat(print_class, print_float);
}
Пример #19
0
void funbuff_setup(void)
{
    funbuff_class = class_new(gensym("funbuff"),
                              (t_newmethod)funbuff_new,
                              (t_method)funbuff_free,
                              sizeof(t_funbuff), 0, A_DEFSYM, 0);
    class_addbang(funbuff_class, funbuff_bang);
    class_addfloat(funbuff_class, funbuff_float);
    class_addmethod(funbuff_class, (t_method)funbuff_ft1,
                    gensym("ft1"), A_FLOAT, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_clear,
                    gensym("clear"), 0);
    class_addmethod(funbuff_class, (t_method)funbuff_goto,
                    gensym("goto"), A_FLOAT, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_min,
                    gensym("min"), 0);
    class_addmethod(funbuff_class, (t_method)funbuff_max,
                    gensym("max"), 0);
    class_addmethod(funbuff_class, (t_method)funbuff_next,
                    gensym("next"), 0);
    class_addmethod(funbuff_class, (t_method)funbuff_embed,
                    gensym("embed"), A_FLOAT, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_read,
                    gensym("read"), A_DEFSYM, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_write,
                    gensym("write"), A_DEFSYM, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_set,
                    gensym("set"), A_GIMME, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_delete,
                    gensym("delete"), A_GIMME, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_find,
                    gensym("find"), A_FLOAT, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_dump,
                    gensym("dump"), 0);
    class_addmethod(funbuff_class, (t_method)funbuff_interp,
                    gensym("interp"), A_FLOAT, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_interptab,
                    gensym("interptab"), A_FLOAT, A_SYMBOL, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_reduce,
                    gensym("reduce"), A_FLOAT, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_select,
                    gensym("select"), A_FLOAT, A_FLOAT, 0);
    class_addmethod(funbuff_class, (t_method)funbuff_cut,
                    gensym("cut"), 0);
    class_addmethod(funbuff_class, (t_method)funbuff_copy,
                    gensym("copy"), 0);
    class_addmethod(funbuff_class, (t_method)funbuff_paste,
                    gensym("paste"), 0);
    class_addmethod(funbuff_class, (t_method)funbuff_undo,
                    gensym("undo"), 0);
#ifdef HAMMERTREE_DEBUG
    class_addmethod(funbuff_class, (t_method)funbuff_debug,
                    gensym("debug"), A_DEFFLOAT, 0);
#endif
    hammerfile_setup(funbuff_class, 1);
}
Пример #20
0
static void makefilename_setup(void)
{
    makefilename_class = class_new(gensym("makefilename"),
    (t_newmethod)makefilename_new, 0,
        sizeof(t_makefilename), 0, A_DEFSYM, 0);
    class_addfloat(makefilename_class, makefilename_float);
    class_addsymbol(makefilename_class, makefilename_symbol);
    class_addmethod(makefilename_class, (t_method)makefilename_set,
        gensym("set"), A_SYMBOL, 0);
}
Пример #21
0
static void metro_setup(void)
{
    metro_class = class_new(gensym("metro"), (t_newmethod)metro_new,
        (t_method)metro_free, sizeof(t_metro), 0, A_DEFFLOAT, 0);
    class_addbang(metro_class, metro_bang);
    class_addmethod(metro_class, (t_method)metro_stop, gensym("stop"), 0);
    class_addmethod(metro_class, (t_method)metro_ft1, gensym("ft1"),
        A_FLOAT, 0);
    class_addfloat(metro_class, (t_method)metro_float);
}
Пример #22
0
void clip_setup(void)
{
    clip_class = class_new(gensym("Clip"), (t_newmethod)clip_new,
        (t_method)clip_free, sizeof(t_clip), 0, A_GIMME, 0);
    class_addcreator((t_newmethod)clip_new, gensym("cyclone/clip"), A_GIMME, 0); 
    class_addcreator((t_newmethod)clip_new, gensym("cyclone/Clip"), A_GIMME, 0);
    class_addfloat(clip_class, clip_float);
    class_addlist(clip_class, clip_list);
    class_addmethod(clip_class, (t_method)clip_set, gensym("set"), A_GIMME, 0);
}
Пример #23
0
Файл: lifo.c Проект: jondf/pd
void maxlib_lifo_setup(void)
{
    lifo_class = class_new(gensym("maxlib_lifo"), (t_newmethod)lifo_new,
                           (t_method)lifo_free, sizeof(t_lifo), 0, A_DEFFLOAT, 0);
    class_addcreator((t_newmethod)lifo_new, gensym("lifo"), A_DEFFLOAT, 0);
    class_addfloat(lifo_class, lifo_int);
    class_addbang(lifo_class, lifo_bang);
    class_addmethod(lifo_class, (t_method)lifo_clear, gensym("clear"), 0);
    class_sethelpsymbol(lifo_class, gensym("maxlib/lifo-help.pd"));
}
Пример #24
0
void sampstoms_tilde_setup(void)
{
    sampstoms_class = class_new(gensym("sampstoms~"),
        (t_newmethod)sampstoms_new, 0, sizeof(t_sampstoms), CLASS_DEFAULT, 0);
    class_addmethod(sampstoms_class,
                    (t_method)sampstoms_dsp, gensym("dsp"), A_CANT, 0);
    CLASS_MAINSIGNALIN(sampstoms_class, t_sampstoms, x_f);
    class_addfloat(sampstoms_class,
                   (t_method)sampstoms_float);
}
Пример #25
0
void cd4001_setup(void)
{
    cd4001_class = class_new(gensym("cd4001"),
                    (t_newmethod)cd4001_new,
                    (t_method)cd4001_free,
                    sizeof(t_cd4001), 0, 0); /* no arguments */
    class_addbang(cd4001_class, cd4001_bang);
    class_addfloat(cd4001_class, cd4001_float);
    class_addmethod(cd4001_class, (t_method)cd4001_inlet2, gensym("inlet2"), A_FLOAT, 0);
}
Пример #26
0
void vline_tilde_setup(void)
{
    vline_tilde_class = class_new(gensym("vline~"), vline_tilde_new, 
    	(t_method)vline_tilde_stop, sizeof(t_vline), 0, 0);
    class_addfloat(vline_tilde_class, (t_method)vline_tilde_float);
    class_addmethod(vline_tilde_class, (t_method)vline_tilde_dsp,
    	gensym("dsp"), 0);
    class_addmethod(vline_tilde_class, (t_method)vline_tilde_stop,
    	gensym("stop"), 0);
}
Пример #27
0
void cd4024_setup(void)
{
    cd4024_class = class_new(gensym("cd4024"),
                    (t_newmethod)cd4024_new,
                    (t_method)cd4024_free,
                    sizeof(t_cd4024), 0, 0); /* no arguments */
    class_addbang(cd4024_class, cd4024_bang);
    class_addfloat(cd4024_class, cd4024_float);
    class_addmethod(cd4024_class, (t_method)cd4024_reset, gensym("reset"), A_FLOAT, 0);
}
Пример #28
0
Файл: lifo.c Проект: jondf/pd
void lifo_setup(void)
{
    lifo_class = class_new(gensym("lifo"), (t_newmethod)lifo_new,
                           (t_method)lifo_free, sizeof(t_lifo), 0, A_DEFFLOAT, 0);
    class_addfloat(lifo_class, lifo_int);
    class_addbang(lifo_class, lifo_bang);
    class_addmethod(lifo_class, (t_method)lifo_clear, gensym("clear"), 0);

    logpost(NULL, 4, version);
}
Пример #29
0
void trigger2_setup(void){
    trigger2_class = class_new(gensym("trigger2"), (t_newmethod)trigger2_new,
        (t_method)trigger2_free, sizeof(t_trigger2), 0, A_GIMME, 0);
    class_addlist(trigger2_class, trigger2_list);
    class_addbang(trigger2_class, trigger2_bang);
    class_addpointer(trigger2_class, trigger2_pointer);
    class_addfloat(trigger2_class, (t_method)trigger2_float);
    class_addsymbol(trigger2_class, trigger2_symbol);
    class_addanything(trigger2_class, trigger2_anything);
}
Пример #30
0
static void line_tilde_setup(void)
{
    line_tilde_class = class_new(gensym("line~"), line_tilde_new, 0,
        sizeof(t_line), 0, 0);
    class_addfloat(line_tilde_class, (t_method)line_tilde_float);
    class_addmethod(line_tilde_class, (t_method)line_tilde_dsp,
        gensym("dsp"), A_CANT, 0);
    class_addmethod(line_tilde_class, (t_method)line_tilde_stop,
        gensym("stop"), 0);
}