コード例 #1
0
static void spigot_setup(void)
{
    spigot_class = class_new(gensym("spigot"), (t_newmethod)spigot_new, 0,
    	sizeof(t_spigot), 0, A_DEFSYM, 0);
    class_addbang(spigot_class, spigot_bang);
    class_addpointer(spigot_class, spigot_pointer);
    class_addfloat(spigot_class, spigot_float);
    class_addsymbol(spigot_class, spigot_symbol);
    class_addlist(spigot_class, spigot_list);
    class_addanything(spigot_class, spigot_anything);
}
コード例 #2
0
ファイル: x_libpdreceive.c プロジェクト: kmatheussen/libpd
void libpdreceive_setup(void) {
  libpdrec_class = class_new(gensym("libpd_receive"),
       (t_newmethod)libpdreceive_new, (t_method)libpdreceive_free,
       sizeof(t_libpdrec), CLASS_DEFAULT, A_DEFSYM, 0);
  class_addbang(libpdrec_class, libpdrecbang);
  class_addfloat(libpdrec_class, libpdrecfloat);
  class_addsymbol(libpdrec_class, libpdrecsymbol);
  class_addpointer(libpdrec_class, libpdrecpointer);
  class_addlist(libpdrec_class, libpdreclist);
  class_addanything(libpdrec_class, libpdrecanything);
}
コード例 #3
0
ファイル: m_pd.c プロジェクト: Tzero2/pd
void m_pd_setup(void)
{
    bindlist_class = class_new(gensym("bindlist"), 0, 0,
        sizeof(t_bindlist), CLASS_PD, 0);
    class_addbang(bindlist_class, bindlist_bang);
    class_addfloat(bindlist_class, (t_method)bindlist_float);
    class_addsymbol(bindlist_class, bindlist_symbol);
    class_addpointer(bindlist_class, bindlist_pointer);
    class_addlist(bindlist_class, bindlist_list);
    class_addanything(bindlist_class, bindlist_anything);
}
コード例 #4
0
static void pack_setup(void)
{
    pack_class = class_new(gensym("pack"), (t_newmethod)pack_new,
    	(t_method)pack_free, sizeof(t_pack), 0, A_GIMME, 0);
    class_addbang(pack_class, pack_bang);
    class_addpointer(pack_class, pack_pointer);
    class_addfloat(pack_class, pack_float);
    class_addsymbol(pack_class, pack_symbol);
    class_addlist(pack_class, pack_list);
    class_addanything(pack_class, pack_anything);
}
コード例 #5
0
ファイル: gate.c プロジェクト: Angeldude/pd
void gate_setup(void)
{
  gate_class = class_new(gensym("gate"), (t_newmethod)gate_new, 0,
    sizeof(t_gate), 0, A_DEFFLOAT, 0);
  class_addbang(gate_class, gate_bang);
  class_addpointer(gate_class, gate_pointer);
  class_addfloat(gate_class, gate_float);
  class_addsymbol(gate_class, gate_symbol);
  class_addlist(gate_class, gate_list);
  class_addanything(gate_class, gate_anything);
//  class_sethelpsymbol(gate_class, gensym("iemhelp/help-gate"));
}
コード例 #6
0
ファイル: join.c プロジェクト: Angeldude/pd
void join_setup(void)
{
	join_class = class_new(gensym("join"), (t_newmethod)join_new,
						   NULL, sizeof(join_t),
						   CLASS_DEFAULT, 0);
	class_addbang(join_class, join_bang);
    class_addfloat(join_class, join_float);
    class_addpointer(join_class, join_pointer);
    class_addsymbol(join_class, join_symbol);
    class_addlist(join_class, join_list);
    class_addanything(join_class, join_anything);
}
コード例 #7
0
void prepend_ascii_setup(void)
{
  prepend_ascii_class = class_new(gensym("prepend_ascii"), (t_newmethod)prepend_ascii_new,
    (t_method)prepend_ascii_free, sizeof(t_prepend_ascii), 0, A_GIMME, 0);
  class_addbang(prepend_ascii_class, (t_method)prepend_ascii_bang);
  class_addfloat(prepend_ascii_class, (t_method)prepend_ascii_float);
  class_addsymbol(prepend_ascii_class, prepend_ascii_symbol);
  class_addpointer(prepend_ascii_class, prepend_ascii_pointer);
  class_addlist(prepend_ascii_class, prepend_ascii_list);
  class_addanything(prepend_ascii_class, prepend_ascii_anything);
//  class_sethelpsymbol(prepend_ascii_class, gensym("iemhelp/help-prepend_ascii"));
}
コード例 #8
0
ファイル: pre_inlet.c プロジェクト: MagdaHertzberg/Pure-Data
void pre_inlet_setup(void)
{
  pre_inlet_class = class_new(gensym("pre_inlet"), (t_newmethod)pre_inlet_new,
    (t_method)pre_inlet_free, sizeof(t_pre_inlet), 0, A_DEFFLOAT, A_DEFFLOAT, 0);
  class_addbang(pre_inlet_class, (t_method)pre_inlet_bang);
  class_addfloat(pre_inlet_class, (t_method)pre_inlet_float);
  class_addsymbol(pre_inlet_class, pre_inlet_symbol);
  class_addpointer(pre_inlet_class, pre_inlet_pointer);
  class_addlist(pre_inlet_class, pre_inlet_list);
  class_addanything(pre_inlet_class, pre_inlet_anything);
//  class_sethelpsymbol(pre_inlet_class, gensym("iemhelp/help-pre_inlet"));
}
コード例 #9
0
static void receive_setup(void)
{
    receive_class = class_new(gensym("receive"), (t_newmethod)receive_new, 
    	(t_method)receive_free, sizeof(t_receive), CLASS_NOINLET, A_DEFSYM, 0);
    class_addcreator((t_newmethod)receive_new, gensym("r"), A_DEFSYM, 0);
    class_addbang(receive_class, receive_bang);
    class_addfloat(receive_class, (t_method)receive_float);
    class_addsymbol(receive_class, receive_symbol);
    class_addpointer(receive_class, receive_pointer);
    class_addlist(receive_class, receive_list);
    class_addanything(receive_class, receive_anything);
}
コード例 #10
0
static void trigger_setup(void)
{
    trigger_class = class_new(gensym("trigger"), (t_newmethod)trigger_new,
    	(t_method)trigger_free, sizeof(t_trigger), 0, A_GIMME, 0);
    class_addcreator((t_newmethod)trigger_new, gensym("t"), A_GIMME, 0);
    class_addlist(trigger_class, trigger_list);
    class_addbang(trigger_class, trigger_bang);
    class_addpointer(trigger_class, trigger_pointer);
    class_addfloat(trigger_class, (t_method)trigger_float);
    class_addsymbol(trigger_class, trigger_symbol);
    class_addanything(trigger_class, trigger_anything);
}
コード例 #11
0
static void send_setup(void)
{
    send_class = class_new(gensym("send"), (t_newmethod)send_new, 0,
    	sizeof(t_send), 0, A_DEFSYM, 0);
    class_addcreator((t_newmethod)send_new, gensym("s"), A_DEFSYM, 0);
    class_addbang(send_class, send_bang);
    class_addfloat(send_class, send_float);
    class_addsymbol(send_class, send_symbol);
    class_addpointer(send_class, send_pointer);
    class_addlist(send_class, send_list);
    class_addanything(send_class, send_anything);
}
コード例 #12
0
ファイル: list2int.c プロジェクト: iem-projects/pd-zexy
void list2int_setup(void)
{
  list2int_class = class_new(gensym("list2int"), (t_newmethod)list2int_new,
                             (t_method)mypdlist_free, sizeof(t_mypdlist), 0, A_GIMME, 0);
  class_addcreator((t_newmethod)list2int_new, gensym("l2i"), A_GIMME, 0);
  class_addanything(list2int_class, list2int_any);
  class_addlist(list2int_class, list2int_any);
  class_addbang(list2int_class, list2int_bang);
  class_addfloat(list2int_class, list2int_float);
  class_addsymbol(list2int_class, list2int_symbol);
  class_addpointer(list2int_class, list2int_pointer);
  zexy_register("list2int");
}
コード例 #13
0
ファイル: sl.c プロジェクト: Angeldude/pd
void sl_setup(void)
{
    lsend_class = class_new(gensym("sendlocal"), (t_newmethod)lsend_new, 0,
    	sizeof(t_lsend), 0, A_DEFSYM, 0);
    class_addcreator((t_newmethod)lsend_new, gensym("sl"), A_DEFSYM, 0);
    class_addbang(lsend_class, lsend_bang);
    class_addfloat(lsend_class, lsend_float);
    class_addsymbol(lsend_class, lsend_symbol);
    class_addpointer(lsend_class, lsend_pointer);
    class_addlist(lsend_class, lsend_list);
    class_addanything(lsend_class, lsend_anything);
    post("Warning: sendlocal (sl) is deprecated, please use \"send $0-var\" instead");
}
コード例 #14
0
ファイル: rl.c プロジェクト: Angeldude/pd
void rl_setup(void)
{
    lreceive_class = class_new(gensym("receivelocal"), (t_newmethod)lreceive_new, 
    	(t_method)lreceive_free, sizeof(t_lreceive), CLASS_NOINLET, A_SYMBOL, 0);
    class_addcreator((t_newmethod)lreceive_new, gensym("rl"), A_DEFSYM, 0);
    class_addbang(lreceive_class, lreceive_bang);
    class_addfloat(lreceive_class, (t_method)lreceive_float);
    class_addsymbol(lreceive_class, lreceive_symbol);
    class_addpointer(lreceive_class, lreceive_pointer);
    class_addlist(lreceive_class, lreceive_list);
    class_addanything(lreceive_class, lreceive_anything);
    post("Warning: receivelocal (rl) is deprecated, please use \"receive $0-var\" instead");
}
コード例 #15
0
ファイル: buddy.c プロジェクト: EQ4/Pd-for-LibPd
void buddy_setup(void)
{
    buddy_class = class_new(gensym("buddy"),
			    (t_newmethod)buddy_new,
			    (t_method)buddy_free,
			    sizeof(t_buddy), 0, A_DEFFLOAT, 0);
    class_addbang(buddy_class, buddy_bang);
    class_addfloat(buddy_class, buddy_float);
    class_addsymbol(buddy_class, buddy_symbol);
    class_addpointer(buddy_class, buddy_pointer);
    class_addlist(buddy_class, buddy_list);
    class_addanything(buddy_class, buddy_anything);
    class_addmethod(buddy_class, (t_method)buddy_clear, gensym("clear"), 0);
    buddy_proxy_class = class_new(gensym("_buddy_proxy"), 0, 0,
				  sizeof(t_buddy_proxy),
				  CLASS_PD | CLASS_NOINLET, 0);
    class_addbang(buddy_proxy_class, buddy_proxy_bang);
    class_addfloat(buddy_proxy_class, buddy_proxy_float);
    class_addsymbol(buddy_proxy_class, buddy_proxy_symbol);
    class_addpointer(buddy_proxy_class, buddy_proxy_pointer);
    class_addlist(buddy_proxy_class, buddy_proxy_list);
    class_addanything(buddy_proxy_class, buddy_proxy_anything);
}
コード例 #16
0
ファイル: g_io.c プロジェクト: Angeldude/pure-data
static void voutlet_setup(void)
{
    voutlet_class = class_new(gensym("outlet"), (t_newmethod)voutlet_new,
        (t_method)voutlet_free, sizeof(t_voutlet), CLASS_NOINLET, A_DEFSYM, 0);
    class_addcreator((t_newmethod)voutlet_newsig, gensym("outlet~"), A_DEFSYM, 0);
    class_addbang(voutlet_class, voutlet_bang);
    class_addpointer(voutlet_class, voutlet_pointer);
    class_addfloat(voutlet_class, (t_method)voutlet_float);
    class_addsymbol(voutlet_class, voutlet_symbol);
    class_addlist(voutlet_class, voutlet_list);
    class_addanything(voutlet_class, voutlet_anything);
    class_addmethod(voutlet_class, (t_method)voutlet_dsp,
        gensym("dsp"), A_CANT, 0);
    class_sethelpsymbol(voutlet_class, gensym("pd"));
}
コード例 #17
0
ファイル: repack.c プロジェクト: gdunstone/pd-macambira
void repack_setup(void)
{
  repack_class = class_new(gensym("repack"), (t_newmethod)repack_new, 
			   0, sizeof(t_repack), 0, A_DEFFLOAT, 0);
  
  class_addbang    (repack_class, repack_bang);
  class_addfloat   (repack_class, repack_float);
  class_addsymbol  (repack_class, repack_symbol);
  class_addpointer (repack_class, repack_pointer);
  class_addlist    (repack_class, repack_list);
  class_addanything(repack_class, repack_anything);
  class_addmethod  (repack_class, (t_method)repack_set, gensym(""), A_DEFFLOAT, 0);

  zexy_register("repack");
}
コード例 #18
0
ファイル: m_obj.c プロジェクト: 4nykey/rockbox
void obj_init(void)
{
    inlet_class = class_new(gensym("inlet"), 0, 0,
    	sizeof(t_inlet), CLASS_PD, 0);
    class_addbang(inlet_class, inlet_bang);
    class_addpointer(inlet_class, inlet_pointer);
    class_addfloat(inlet_class, inlet_float);
    class_addsymbol(inlet_class, inlet_symbol);
    class_addlist(inlet_class, inlet_list);
    class_addanything(inlet_class, inlet_anything);

    pointerinlet_class = class_new(gensym("inlet"), 0, 0,
    	sizeof(t_inlet), CLASS_PD, 0);
    class_addpointer(pointerinlet_class, pointerinlet_pointer);

    floatinlet_class = class_new(gensym("inlet"), 0, 0,
    	sizeof(t_inlet), CLASS_PD, 0);
    class_addfloat(floatinlet_class, (t_method)floatinlet_float);

    symbolinlet_class = class_new(gensym("inlet"), 0, 0,
    	sizeof(t_inlet), CLASS_PD, 0);
    class_addsymbol(symbolinlet_class, symbolinlet_symbol);

}
コード例 #19
0
ファイル: tosymbol.c プロジェクト: EQ4/Pd-for-LibPd
void tosymbol_setup(void)
{
    tosymbol_class = class_new(gensym("tosymbol"),
			       (t_newmethod)tosymbol_new,
			       (t_method)tosymbol_free,
			       sizeof(t_tosymbol), 0, 0);
    class_addbang(tosymbol_class, tosymbol_bang);
    class_addfloat(tosymbol_class, tosymbol_float);
    class_addsymbol(tosymbol_class, tosymbol_symbol);
    class_addpointer(tosymbol_class, tosymbol_pointer);
    class_addlist(tosymbol_class, tosymbol_list);
    class_addanything(tosymbol_class, tosymbol_anything);
    class_addmethod(tosymbol_class, (t_method)tosymbol_separator,
		    gensym("separator"), A_DEFSYM, 0);
}
コード例 #20
0
void iem_append_kernel_setup(void)
{
  char str[2];
  
  str[0] = 1;
  str[1] = 0;
  iem_append_kernel_class = class_new(gensym("iem_append_kernel"),
    (t_newmethod)iem_append_kernel_new, (t_method)iem_append_kernel_free,
    sizeof(t_iem_append_kernel), 0, 0);
  class_addbang(iem_append_kernel_class, (t_method)iem_append_kernel_bang);
  class_addpointer(iem_append_kernel_class, iem_append_kernel_pointer);
  class_addfloat(iem_append_kernel_class, (t_method)iem_append_kernel_float);
  class_addsymbol(iem_append_kernel_class, iem_append_kernel_symbol);
  class_addlist(iem_append_kernel_class, iem_append_kernel_list);
  class_addmethod(iem_append_kernel_class, (t_method)iem_append_kernel_inlet_select, gensym(str), A_FLOAT, 0);
  class_addanything(iem_append_kernel_class, iem_append_kernel_anything);
  class_sethelpsymbol(iem_append_kernel_class, gensym("iemhelp/help-merge_any"));
}
コード例 #21
0
ファイル: iem_send.c プロジェクト: Angeldude/pd
void iem_send_setup(void)
{
  iem_send_class = class_new(gensym("iem_send"), (t_newmethod)iem_send_new, (t_method)iem_send_free,
    sizeof(t_iem_send), 0, A_GIMME, 0);
  class_addcreator((t_newmethod)iem_send_new, gensym("iem_s"), A_GIMME, 0);
  class_addbang(iem_send_class, iem_send_bang);
  class_addfloat(iem_send_class, iem_send_float);
  class_addsymbol(iem_send_class, iem_send_symbol);
  class_addpointer(iem_send_class, iem_send_pointer);
  class_addlist(iem_send_class, iem_send_list);
  class_addanything(iem_send_class, iem_send_anything);
//  class_sethelpsymbol(iem_send_class, gensym("iemhelp/help-iem_send"));

	iem_send_proxy_class = class_new(gensym("_iem_send_proxy"),
    0, 0, sizeof(t_iem_send_proxy), CLASS_PD | CLASS_NOINLET, 0);
  class_addmethod(iem_send_proxy_class, (t_method)iem_send_proxy_clear, gensym("clear"), A_GIMME, 0);
  class_addmethod(iem_send_proxy_class, (t_method)iem_send_proxy_set, gensym("set"), A_GIMME, 0);
}
コード例 #22
0
ファイル: gate.c プロジェクト: MartinHN/PdPulpito
void gate_setup(void)
{
    gate_class = class_new(gensym("cyclone/gate"),
			   (t_newmethod)gate_new,
			   (t_method)gate_free,
			   sizeof(t_gate), 0,
			   A_DEFFLOAT, A_DEFFLOAT, 0);
    class_addfloat(gate_class, gate_float);
    class_addbang(gate_class, gate_bang);
    gate_proxy_class = class_new(gensym("_gate_proxy"), 0, 0,
				 sizeof(t_gate_proxy),
				 CLASS_PD | CLASS_NOINLET, 0);
    class_addfloat(gate_proxy_class, gate_proxy_float);
    class_addbang(gate_proxy_class, gate_proxy_bang);
    class_addsymbol(gate_proxy_class, gate_proxy_symbol);
    class_addpointer(gate_proxy_class, gate_proxy_pointer);
    class_addlist(gate_proxy_class, gate_proxy_list);
    class_addanything(gate_proxy_class, gate_proxy_anything);
    fitter_setup(gate_class, 0);
}
コード例 #23
0
void iem_send_kernel_setup(void)
{
  char str[2];
  
  str[1] = 0;
  iem_send_kernel_class = class_new(gensym("iem_send_kernel"), (t_newmethod)iem_send_kernel_new, 0,
    sizeof(t_iem_send_kernel), 0, 0);
  class_addcreator((t_newmethod)iem_send_kernel_new, gensym("s"), A_DEFSYM, 0);
  class_addbang(iem_send_kernel_class, iem_send_kernel_bang);
  class_addfloat(iem_send_kernel_class, iem_send_kernel_float);
  class_addsymbol(iem_send_kernel_class, iem_send_kernel_symbol);
  class_addpointer(iem_send_kernel_class, iem_send_kernel_pointer);
  class_addlist(iem_send_kernel_class, iem_send_kernel_list);
  class_addanything(iem_send_kernel_class, iem_send_kernel_anything);
  str[0] = 1;/*inlet-sym = "\0x01"*/
  class_addmethod(iem_send_kernel_class, (t_method)iem_send_kernel_set_name, gensym(str), A_GIMME, 0);
  str[0] = 2;/*inlet-sym = "\0x02"*/
  class_addmethod(iem_send_kernel_class, (t_method)iem_send_kernel_clear, gensym(str), 0);
  class_sethelpsymbol(iem_send_kernel_class, gensym("iemhelp/help-iem_send"));
}