Beispiel #1
0
static void polytouchout_setup(void)
{
    polytouchout_class = class_new(gensym("polytouchout"), 
        (t_newmethod)polytouchout_new, 0,
        sizeof(t_polytouchout), 0, A_DEFFLOAT, 0);
    class_addfloat(polytouchout_class, polytouchout_float);
    class_sethelpsymbol(polytouchout_class, gensym("midi"));
}
Beispiel #2
0
static void notein_setup(void)
{
    notein_class = class_new(gensym("notein"), (t_newmethod)notein_new,
        (t_method)notein_free, sizeof(t_notein), CLASS_NOINLET, A_DEFFLOAT, 0);
    class_addlist(notein_class, notein_list);
    class_sethelpsymbol(notein_class, gensym("midi"));
    notein_sym = gensym("#notein");
}
Beispiel #3
0
void atsread_setup(void) {
	atsread_class = class_new(gensym("atsread"),
		(t_newmethod)atsread_new, (t_method)atsread_destroy, sizeof(t_atsread), CLASS_DEFAULT, A_GIMME, 0);
	
	class_addfloat(atsread_class, atsread_timepnt);
  	class_addanything(atsread_class, atsread_any);
  	class_sethelpsymbol(atsread_class, gensym("help-atsread"));
}
Beispiel #4
0
void maxlib_expo_setup(void)
{
    rand_expo_class = class_new(gensym("maxlib_expo"), (t_newmethod)rand_expo_new, 0,
                                sizeof(t_rand_expo), 0, A_DEFFLOAT, 0);
    class_addbang(rand_expo_class, rand_expo_bang);
    class_addcreator((t_newmethod)rand_expo_new, gensym("expo"), A_DEFFLOAT, 0);
    class_sethelpsymbol(rand_expo_class, gensym("maxlib/expo-help.pd"));
}
Beispiel #5
0
void cycle_tilde_setup(void)
{
    cycle_class = class_new(gensym("cycle~"), (t_newmethod)cycle_new, 0, sizeof(t_cycle), 0, 0);

    class_addmethod(cycle_class, (t_method)cycle_dsp, gensym("dsp"), 0);
    CLASS_MAINSIGNALIN(cycle_class, t_cycle, x_f);
    class_sethelpsymbol(cycle_class, gensym("sigbinops"));
}
Beispiel #6
0
void maxlib_pitch_setup(void)
{
    pitch_class = class_new(gensym("maxlib_pitch"), (t_newmethod)pitch_new,
    	0, sizeof(t_pitch), 0, A_DEFFLOAT, 0);
	class_addcreator((t_newmethod)pitch_new, gensym("pitch"), A_DEFFLOAT, 0);
    class_addfloat(pitch_class, pitch_float);
    class_sethelpsymbol(pitch_class, gensym("maxlib/pitch-help.pd"));
}
Beispiel #7
0
void maxlib_netrec_setup(void)
{
    netrec_class = class_new(gensym("maxlib_netrec"),(t_newmethod)netrec_new, (t_method)netrec_free,
    	sizeof(t_netrec), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFSYM, 0);
	class_addcreator((t_newmethod)netrec_new, gensym("netrec"), A_DEFFLOAT, A_DEFFLOAT, A_DEFSYM, 0);
	class_addmethod(netrec_class, (t_method)netrec_print, gensym("print"), 0);
	class_sethelpsymbol(netrec_class, gensym("maxlib/netrec-help.pd"));
}
Beispiel #8
0
void expo_setup(void)
{
    rand_expo_class = class_new(gensym("expo"), (t_newmethod)rand_expo_new, 0,
                                sizeof(t_rand_expo), 0, A_DEFFLOAT, 0);
    class_addbang(rand_expo_class, rand_expo_bang);
    class_sethelpsymbol(rand_expo_class, gensym("expo-help.pd"));
    post(version);
}
Beispiel #9
0
void saturator_vu_tilde_setup(void)
{
	saturator_vu_tilde_class = class_new(gensym("saturator_vu~"), (t_newmethod)saturator_vu_tilde_new, (t_method)saturator_tilde_free,
        sizeof(t_saturator_tilde), 0, A_DEFFLOAT, 0);
	saturator_tilde_addmethods(saturator_vu_tilde_class);

    class_sethelpsymbol(saturator_vu_tilde_class, gensym("help-saturator~.pd"));
}
Beispiel #10
0
void bendin_setup(void)
{
    bendin_class = class_new(gensym("bendin"), (t_newmethod)bendin_new,
        (t_method)bendin_free, sizeof(t_bendin), CLASS_NOINLET, A_DEFFLOAT, 0);
    class_addlist(bendin_class, bendin_list);
    class_sethelpsymbol(bendin_class, gensym("midi"));
    bendin_sym = gensym("#bendin");
}
Beispiel #11
0
static void touchin_setup(void)
{
    touchin_class = class_new(gensym("touchin"), (t_newmethod)touchin_new,
        (t_method)touchin_free, sizeof(t_touchin),
            CLASS_NOINLET, A_DEFFLOAT, 0);
    class_addlist(touchin_class, touchin_list);
    class_sethelpsymbol(touchin_class, gensym("midi"));
    touchin_sym = gensym("#touchin");
}
Beispiel #12
0
static void ctlin_setup(void)
{
    ctlin_class = class_new(gensym("ctlin"), (t_newmethod)ctlin_new, 
        (t_method)ctlin_free, sizeof(t_ctlin),
            CLASS_NOINLET, A_GIMME, 0);
    class_addlist(ctlin_class, ctlin_list);
    class_sethelpsymbol(ctlin_class, gensym("midi"));
    ctlin_sym = gensym("#ctlin");
}
Beispiel #13
0
void maxlib_listfunnel_setup(void)
{
    listfunnel_class = class_new(gensym("maxlib_listfunnel"), (t_newmethod)listfunnel_new,
    	0, sizeof(t_listfunnel), 0, 0, 0);
	class_addcreator((t_newmethod)listfunnel_new, gensym("listfunnel"), 0);
    class_addfloat(listfunnel_class, listfunnel_float);
    class_addlist(listfunnel_class, listfunnel_list);
    class_sethelpsymbol(listfunnel_class, gensym("maxlib/listfunnel-help.pd"));
}
Beispiel #14
0
static void dac_setup(void)
{
    dac_class = class_new(gensym("dac~"), (t_newmethod)dac_new,
        (t_method)dac_free, sizeof(t_dac), 0, A_GIMME, 0);
    CLASS_MAINSIGNALIN(dac_class, t_dac, x_f);
    class_addmethod(dac_class, (t_method)dac_dsp, gensym("dsp"), A_CANT, 0);
    class_addmethod(dac_class, (t_method)dac_set, gensym("set"), A_GIMME, 0);
    class_sethelpsymbol(dac_class, gensym("adc~_dac~"));
}
Beispiel #15
0
static void list_split_setup(void)
{
    list_split_class = class_new(gensym("list split"),
        (t_newmethod)list_split_new, 0,
        sizeof(t_list_split), 0, A_DEFFLOAT, 0);
    class_addlist(list_split_class, list_split_list);
    class_addanything(list_split_class, list_split_anything);
    class_sethelpsymbol(list_split_class, &s_list);
}
Beispiel #16
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"));
}
Beispiel #17
0
static void list_append_setup(void)
{
    list_append_class = class_new(gensym("list append"),
        (t_newmethod)list_append_new, (t_method)list_append_free,
        sizeof(t_list_append), 0, A_GIMME, 0);
    class_addlist(list_append_class, list_append_list);
    class_addanything(list_append_class, list_append_anything);
    class_sethelpsymbol(list_append_class, &s_list);
}
Beispiel #18
0
static void polytouchin_setup(void)
{
    polytouchin_class = class_new(gensym("polytouchin"),
        (t_newmethod)polytouchin_new, (t_method)polytouchin_free,
        sizeof(t_polytouchin), CLASS_NOINLET, A_DEFFLOAT, 0);
    class_addlist(polytouchin_class, polytouchin_list);
    class_sethelpsymbol(polytouchin_class, gensym("midi"));
    polytouchin_sym = gensym("#polytouchin");
}
Beispiel #19
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"));
}
Beispiel #20
0
void mtx_div_setup(void)
{
  mtx_divelement_class = class_new(gensym("mtx_./"), (t_newmethod)mtx_div_new, (t_method)mtx_binmtx_free,
                                   sizeof(t_mtx_binmtx), 0, A_GIMME, 0);
  class_addmethod(mtx_divelement_class, (t_method)mtx_divelement_matrix, gensym("matrix"), A_GIMME, 0);
  class_addmethod(mtx_divelement_class, (t_method)mtx_bin_matrix2, gensym(""), A_GIMME, 0);
  class_addfloat (mtx_divelement_class, mtx_divelement_float);
  class_addbang  (mtx_divelement_class, mtx_binmtx_bang);

  mtx_divscalar_class = class_new(gensym("mtx_./"), 0, (t_method)mtx_binscalar_free,
                                  sizeof(t_mtx_binscalar), 0, 0);
  class_addmethod(mtx_divscalar_class, (t_method)mtx_divscalar_matrix, gensym("matrix"), A_GIMME, 0);
  class_addlist  (mtx_divscalar_class, mtx_divscalar_list);
  class_addbang  (mtx_divscalar_class, mtx_binscalar_bang);

  class_sethelpsymbol(mtx_divelement_class, gensym("mtx_mul-help"));
  class_sethelpsymbol(mtx_divscalar_class, gensym("mtx_mul-help"));
}
Beispiel #21
0
static void list_length_setup(void)
{
    list_length_class = class_new(gensym("list length"),
        (t_newmethod)list_length_new, 0,
        sizeof(t_list_length), 0, 0);
    class_addlist(list_length_class, list_length_list);
    class_addanything(list_length_class, list_length_anything);
    class_sethelpsymbol(list_length_class, &s_list);
}
Beispiel #22
0
void maxlib_listfifo_setup(void)
{
    listfifo_class = class_new(gensym("maxlib/listfifo"), (t_newmethod)listfifo_new,
                               (t_method)listfifo_free, sizeof(t_listfifo), 0, A_DEFFLOAT, 0);
    class_addcreator((t_newmethod)listfifo_new, gensym("listfifo"), A_DEFFLOAT, 0);
    class_addbang(listfifo_class, listfifo_bang);
    class_addlist(listfifo_class, listfifo_list);
    class_sethelpsymbol(listfifo_class, gensym("maxlib/listfifo-help.pd"));
}
Beispiel #23
0
static void midirealtimein_setup(void)
{
    midirealtimein_class = class_new(gensym("midirealtimein"), 
        (t_newmethod)midirealtimein_new, (t_method)midirealtimein_free, 
            sizeof(t_midirealtimein), CLASS_NOINLET, A_DEFFLOAT, 0);
    class_addlist(midirealtimein_class, midirealtimein_list);
        class_sethelpsymbol(midirealtimein_class, gensym("midi"));
    midirealtimein_sym = gensym("#midirealtimein");
}
Beispiel #24
0
static void list_trim_setup(void)
{
    list_trim_class = class_new(gensym("list trim"),
        (t_newmethod)list_trim_new, 0,
        sizeof(t_list_trim), 0, 0);
    class_addlist(list_trim_class, list_trim_list);
    class_addanything(list_trim_class, list_trim_anything);
    class_sethelpsymbol(list_trim_class, &s_list);
}
Beispiel #25
0
void param_setup(void)
{
  
  // SETUP THE PARAM CLASS
  param_class = class_new(gensym("param /"),
    (t_newmethod)paramClass_new, (t_method)paramClass_free,
    sizeof(t_paramClass), 0, A_GIMME, 0);


  class_addanything(param_class, paramClass_anything);
  class_addbang(param_class, paramClass_bang);
  
  class_addmethod(param_class, (t_method)paramClass_loadbang, gensym("loadbang"), 0);
  
  param_inlet2_class = class_new(gensym("_param_inlet2"),
    0, 0, sizeof(t_paramClass_inlet2), CLASS_PD | CLASS_NOINLET, 0);
	
  class_addanything(param_inlet2_class, paramClass_inlet2_anything);
  
   class_sethelpsymbol(param_class,gensym("param"));
  
  // SETUP OTHER CLASSES
   paramCustom_setup();
   paramDump_setup();
   paramFile_setup();
   paramPath_setup();
   paramRoute_setup();
   paramGui_setup();
  
  
  // ADD THE COMMON CREATOR
  
   class_addcreator((t_newmethod)param_new, gensym("param"), A_GIMME, 0);
   class_addcreator((t_newmethod)param_new, gensym("tof/param"), A_GIMME, 0);
   
   // GENERATE THE SYMBOLS
   
   s_vis = gensym("vis");
  s_empty = gensym("empty");
  s_clear = gensym("clear");
  s_set = gensym("set");
  s_obj = gensym("obj");
  s_nbx = gensym("nbx");
  s_bng = gensym("bng");
  s_slider = gensym("slider");
  s_hsl=gensym("hsl");
  s_knob = gensym("knob");
  s_tgl = gensym("tgl");
  s_symbolatom = gensym("symbolatom");
  s_sym = gensym("sym");
  s_text = gensym("text");
  s_cnv = gensym("cnv");
   
   
  
}
Beispiel #26
0
void triang_setup(void)
{
    rand_triang_class = class_new(gensym("triang"), (t_newmethod)rand_triang_new, 0,
    	sizeof(t_rand_triang), 0, A_DEFFLOAT, 0);
#else
void maxlib_triang_setup(void)
{
    rand_triang_class = class_new(gensym("maxlib_triang"), (t_newmethod)rand_triang_new, 0,
    	sizeof(t_rand_triang), 0, A_DEFFLOAT, 0);
	class_addcreator((t_newmethod)rand_triang_new, gensym("triang"), A_DEFFLOAT, 0);
#endif
    class_addbang(rand_triang_class, rand_triang_bang);
#ifndef MAXLIB
	class_sethelpsymbol(rand_triang_class, gensym("triang-help.pd"));
    post(version);
#else
	class_sethelpsymbol(rand_triang_class, gensym("maxlib/triang-help.pd"));
#endif
}
Beispiel #27
0
static void sigrifft_setup(void)
{
    sigrifft_class = class_new(gensym("rifft~"), sigrifft_new, 0,
        sizeof(t_sigrifft), 0, 0);
    CLASS_MAINSIGNALIN(sigrifft_class, t_sigrifft, x_f);
    class_addmethod(sigrifft_class, (t_method)sigrifft_dsp,
        gensym("dsp"), A_CANT, 0);
    class_sethelpsymbol(sigrifft_class, gensym("fft~"));
    mayer_init();
}
Beispiel #28
0
void maxlib_plus_setup(void)
{
    plus_class = class_new(gensym("maxlib_plus"), (t_newmethod)plus_new,
    	0, sizeof(t_plus), 0, A_GIMME, 0);
	class_addcreator((t_newmethod)plus_new, gensym("plus"), A_GIMME, 0);
    class_addfloat(plus_class, plus_float);
    class_addmethod(plus_class, (t_method)plus_ft1, gensym("ft1"), A_FLOAT, 0);
	class_addbang(plus_class, (t_method)plus_bang);
    class_sethelpsymbol(plus_class, gensym("maxlib/plus-help.pd"));
}
Beispiel #29
0
void invert_setup(void)
{
    invert_class = class_new(gensym("invert"), (t_newmethod)invert_new, 0,
    	    	    	sizeof(t_invert), 0, A_NULL);
    class_addfloat(invert_class, (t_method)invert_float);

#if PD_MINOR_VERSION < 37 
	class_sethelpsymbol(invert_class, gensym("invert-help.pd"));
#endif
}
Beispiel #30
0
void weibull_setup(void)
{
    rand_weibull_class = class_new(gensym("weibull"), (t_newmethod)rand_weibull_new, 0,
    	sizeof(t_rand_weibull), 0, A_DEFFLOAT, A_DEFFLOAT, 0);
#else
void maxlib_weibull_setup(void)
{
    rand_weibull_class = class_new(gensym("maxlib/weibull"), (t_newmethod)rand_weibull_new, 0,
    	sizeof(t_rand_weibull), 0, A_DEFFLOAT, A_DEFFLOAT, 0);
    class_addcreator((t_newmethod)rand_weibull_new, gensym("weibull"), A_DEFFLOAT, A_DEFFLOAT, 0);
#endif
	class_addbang(rand_weibull_class, rand_weibull_bang);
#ifndef MAXLIB
	class_sethelpsymbol(rand_weibull_class, gensym("weibull-help.pd"));
    logpost(NULL, 4, version);
#else
	class_sethelpsymbol(rand_weibull_class, gensym("maxlib/weibull-help.pd"));
#endif
}