コード例 #1
0
ファイル: substitute.c プロジェクト: porres/pd-cyclone
void substitute_setup(void)
{
    substitute_class = class_new(gensym("substitute"),
			      (t_newmethod)substitute_new,
			      (t_method)substitute_free,
			      sizeof(t_substitute), 0,
			      A_GIMME, 0);
    class_addbang(substitute_class, substitute_bang);
    class_addfloat(substitute_class, substitute_float);
    class_addsymbol(substitute_class, substitute_symbol);
    class_addlist(substitute_class, substitute_list);
    class_addanything(substitute_class, substitute_anything);
    substitute_proxy_class = class_new(gensym("_substitute_proxy"), 0, 0,
				       sizeof(t_substitute_proxy),
				       CLASS_PD | CLASS_NOINLET, 0);
    class_addbang(substitute_proxy_class, substitute_proxy_bang);
    class_addfloat(substitute_proxy_class, substitute_proxy_float);
    class_addsymbol(substitute_proxy_class, substitute_proxy_symbol);
    class_addlist(substitute_proxy_class, substitute_proxy_list);
    class_addanything(substitute_proxy_class, substitute_proxy_anything);
    class_addmethod(substitute_proxy_class, (t_method)substitute_proxy_list,
		    gensym("set"), A_GIMME, 0);
}
コード例 #2
0
ファイル: yn.c プロジェクト: kronihias/bessel-fct-pd
void yn_setup(void) {
  
  yn_class = class_new(gensym("yn"),
                            (t_newmethod)yn_new,
                            0, sizeof(t_yn),
                            CLASS_DEFAULT,
                            A_GIMME, 0);
  
  class_addfloat (yn_class, yn_float);
  class_addbang  (yn_class, yn_bang);
  class_addmethod(yn_class,
                  (t_method)yn_float, gensym("float"), 0);
  
}
コード例 #3
0
ファイル: mlogistic.c プロジェクト: MatiasDelera/pd-macambira
void mlogistic_setup(void) {
	mlogistic_class = class_new(gensym("mlogistic"), (t_newmethod) mlogistic_new, 0, sizeof(mlogistic_struct), 0, A_GIMME, 0);
	class_addbang(mlogistic_class, (t_method) calculate);
	class_addmethod(mlogistic_class, (t_method) reset, gensym("reset"), A_GIMME, 0);
	class_addmethod(mlogistic_class, (t_method) show, gensym("show"), 0);
	class_addmethod(mlogistic_class, (t_method) param, gensym("param"), A_GIMME, 0);
	class_addmethod(mlogistic_class, (t_method) seed, gensym("seed"), A_GIMME, 0);
	class_addmethod(mlogistic_class, (t_method) lyap, gensym("lyapunov"), A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
	class_addmethod(mlogistic_class, (t_method) elyap, gensym("elyapunov"), 0);
	class_addmethod(mlogistic_class, (t_method) search, gensym("search"), A_GIMME, 0);
	class_addmethod(mlogistic_class, (t_method) constrain, gensym("constrain"), A_GIMME, 0);
	
	
}
コード例 #4
0
ファイル: testmess.c プロジェクト: EQ4/Pd-for-LibPd
void testmess_setup(void)
{
    testmess_class = class_new(gensym("testmess"),
			       (t_newmethod)testmess_new,
			       (t_method)testmess_free,
			       sizeof(t_testmess), 0,
			       A_GIMME, 0);
    class_addbang(testmess_class, testmess_bang);
    class_addfloat(testmess_class, testmess_float);
    class_addsymbol(testmess_class, testmess_symbol);
    class_addanything(testmess_class, testmess_anything);
    class_addmethod(testmess_class, (t_method)testmess_set,
		    gensym("set"), A_GIMME, 0);
}
コード例 #5
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);
}
コード例 #6
0
ファイル: sigzero~.c プロジェクト: Tzero2/pd
void sigzero_tilde_setup(void)
{
  sigzero_class = class_new(gensym("sigzero~"), (t_newmethod)sigzero_new, 0,
                            sizeof(t_sigzero), 0, 0);
  class_addfloat(sigzero_class, sigzero_activate);
  class_addbang(sigzero_class, sigzero_banged);
  class_addmethod(sigzero_class, (t_method)sigzero_off, gensym("off"), 0);

  class_addmethod(sigzero_class, nullfn, gensym("signal"), 0);
  class_addmethod(sigzero_class, (t_method)sigzero_dsp, gensym("dsp"), 0);

  class_addmethod(sigzero_class, (t_method)sigzero_tilde_helper, gensym("help"), 0);
  zexy_register("sigzero~");
}
コード例 #7
0
ファイル: atof.c プロジェクト: iem-projects/pd-zexy
void atof_setup(void)
{
  atof_class = class_new(gensym("atof"), (t_newmethod)atof_new,
                         (t_method)atof_free,
                         sizeof(t_atof), 0, A_DEFFLOAT, 0);

  class_addbang(atof_class, (t_method)atof_bang);
  class_addfloat(atof_class, (t_method)atof_float);
  class_addlist(atof_class, (t_method)atof_list);
  class_addsymbol(atof_class, (t_method)atof_symbol);
  class_addanything(atof_class, (t_method)atof_symbol);

  zexy_register("atof");
}
コード例 #8
0
ファイル: mtx_ifft.c プロジェクト: iem-projects/pd-iemmatrix
void mtx_ifft_setup (void)
{
  mtx_ifft_class = class_new
                   (gensym("mtx_ifft"),
                    (t_newmethod) newMtxIFFT,
                    (t_method) deleteMtxIFFT,
                    sizeof (MtxIFFT),
                    CLASS_DEFAULT, A_GIMME, 0);
  class_addbang (mtx_ifft_class, (t_method) mtxIFFTBang);
  class_addmethod (mtx_ifft_class, (t_method) mtxIFFTMatrixHot,
                   gensym("matrix"), A_GIMME,0);
  class_addmethod (mtx_ifft_class, (t_method) mtxIFFTMatrixCold, gensym(""),
                   A_GIMME,0);
}
コード例 #9
0
ファイル: jack_transport.c プロジェクト: fpiesik/MuViTools
void jack_transport_setup(void)
{
	jack_transport_class = class_new(gensym("jack_transport"), 
									 (t_newmethod)jack_transport_new,
									 NULL, sizeof(jack_transport_t),
									 CLASS_DEFAULT, 0);
    class_addmethod(jack_transport_class, (t_method)jack_transport_starter,
					gensym("start"),0,0);
	class_addmethod(jack_transport_class, (t_method)jack_transport_stoper,
					gensym("stop"),0,0);
	class_addbang(jack_transport_class, (t_method)jack_transport_bang);
	class_addfloat(jack_transport_class, (t_method)jack_transport_float);

}
コード例 #10
0
ファイル: lotka_volterra.c プロジェクト: Angeldude/pd
void lotkavolterra_setup(void) {
	lotkavolterra_class = class_new(gensym("lotkavolterra"), (t_newmethod) lotkavolterra_new, 0, sizeof(lotkavolterra_struct), 0, A_GIMME, 0);
	class_addbang(lotkavolterra_class, (t_method) calculate);
	class_addmethod(lotkavolterra_class, (t_method) reset, gensym("reset"), A_GIMME, 0);
	class_addmethod(lotkavolterra_class, (t_method) show, gensym("show"), 0);
	class_addmethod(lotkavolterra_class, (t_method) param, gensym("param"), A_GIMME, 0);
	class_addmethod(lotkavolterra_class, (t_method) seed, gensym("seed"), A_GIMME, 0);
	class_addmethod(lotkavolterra_class, (t_method) lyap, gensym("lyapunov"), A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
	class_addmethod(lotkavolterra_class, (t_method) elyap, gensym("elyapunov"), 0);
	class_addmethod(lotkavolterra_class, (t_method) search, gensym("search"), A_GIMME, 0);
	class_addmethod(lotkavolterra_class, (t_method) constrain, gensym("constrain"), A_GIMME, 0);
	
	
}
コード例 #11
0
ファイル: urn.c プロジェクト: Angeldude/pd
void urn_setup(void)
{
  urn_class = class_new(gensym("urn"), (t_newmethod)urn_new, 
			      0, sizeof(t_urn), 0, A_GIMME,  0);
  
  class_addbang (urn_class, urn_bang);
  class_addmethod(urn_class, (t_method)urn_clear, gensym("clear"), 0);
  class_addmethod(urn_class, (t_method)urn_flt2, gensym(""), A_DEFFLOAT, 0);
  class_addmethod(urn_class, (t_method)urn_seed, gensym("seed"), A_DEFFLOAT, 0);
  
  class_addmethod(urn_class, (t_method)urn_help, gensym("help"), A_NULL);

  zexy_register("urn");
}
コード例 #12
0
ファイル: standardmap.c プロジェクト: Angeldude/pd
void standardmap_setup(void) {
	standardmap_class = class_new(gensym("standardmap"), (t_newmethod) standardmap_new, 0, sizeof(standardmap_struct), 0, A_GIMME, 0);
	class_addbang(standardmap_class, (t_method) calculate);
	class_addmethod(standardmap_class, (t_method) reset, gensym("reset"), A_GIMME, 0);
	class_addmethod(standardmap_class, (t_method) show, gensym("show"), 0);
	class_addmethod(standardmap_class, (t_method) param, gensym("param"), A_GIMME, 0);
	class_addmethod(standardmap_class, (t_method) seed, gensym("seed"), A_GIMME, 0);
	class_addmethod(standardmap_class, (t_method) lyap, gensym("lyapunov"), A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
	class_addmethod(standardmap_class, (t_method) elyap, gensym("elyapunov"), 0);
	class_addmethod(standardmap_class, (t_method) search, gensym("search"), A_GIMME, 0);
	class_addmethod(standardmap_class, (t_method) constrain, gensym("constrain"), A_GIMME, 0);
	
	
}
コード例 #13
0
ファイル: threeply.c プロジェクト: kmatheussen/libpd
void threeply_setup(void) {
	threeply_class = class_new(gensym("threeply"), (t_newmethod) threeply_new, 0, sizeof(threeply_struct), 0, A_GIMME, 0);
	class_addbang(threeply_class, (t_method) calculate);
	class_addmethod(threeply_class, (t_method) reset, gensym("reset"), A_GIMME, 0);
	class_addmethod(threeply_class, (t_method) show, gensym("show"), 0);
	class_addmethod(threeply_class, (t_method) param, gensym("param"), A_GIMME, 0);
	class_addmethod(threeply_class, (t_method) seed, gensym("seed"), A_GIMME, 0);
	class_addmethod(threeply_class, (t_method) lyap, gensym("lyapunov"), A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
	class_addmethod(threeply_class, (t_method) elyap, gensym("elyapunov"), 0);
	class_addmethod(threeply_class, (t_method) search, gensym("search"), A_GIMME, 0);
	class_addmethod(threeply_class, (t_method) constrain, gensym("constrain"), A_GIMME, 0);
	
	
}
コード例 #14
0
ファイル: mtx_atan2.c プロジェクト: iem-projects/pd-iemmatrix
void mtx_atan2_setup(void)
{
  mtx_atan2_class = class_new(gensym("mtx_atan2"),
                              (t_newmethod)mtx_atan2_new, (t_method)mtx_binmtx_free,
                              sizeof(t_mtx_binmtx), 0, A_GIMME, 0);
  class_addmethod(mtx_atan2_class, (t_method)mtx_atan2_matrix,
                  gensym("matrix"), A_GIMME, 0);
  class_addmethod(mtx_atan2_class, (t_method)mtx_bin_matrix2, gensym(""),
                  A_GIMME, 0);
  class_addfloat (mtx_atan2_class, mtx_atan2_float);
  class_addbang  (mtx_atan2_class, mtx_binmtx_bang);

  mtx_atan2scalar_class = class_new(gensym("mtx_atan2"), 0,
                                    (t_method)mtx_binscalar_free,
                                    sizeof(t_mtx_binscalar), 0, 0);
  class_addmethod(mtx_atan2scalar_class, (t_method)mtx_atan2scalar_matrix,
                  gensym("matrix"), A_GIMME, 0);
  class_addlist  (mtx_atan2scalar_class, mtx_atan2scalar_list);
  class_addbang  (mtx_atan2scalar_class, mtx_binscalar_bang);



}
コード例 #15
0
ファイル: wiimote.c プロジェクト: Angeldude/pd
void wiimote_setup(void)
{
  g_clock = clock_new(NULL, (t_method)wiimote_dequeue);

  if (cwiid_set_err(&cwiid_error_callback)) {
    error("wiimote: unable to set error callback");
  }


   wiimote_class = class_new(gensym("wiimote"), (t_newmethod)wiimote_new, (t_method)wiimote_free, sizeof(t_wiimote), CLASS_DEFAULT, A_GIMME, 0);

   class_addmethod(wiimote_class, (t_method) wiimote_debug, gensym("debug"), 0);
   class_addmethod(wiimote_class, (t_method) wiimote_status, gensym("status"), 0);


   /* connection settings */
   class_addmethod(wiimote_class, (t_method) wiimote_doConnect, gensym("connect"), A_DEFSYMBOL, A_DEFSYMBOL, 0);
   class_addmethod(wiimote_class, (t_method) wiimote_doDisconnect, gensym("disconnect"), 0);
   class_addmethod(wiimote_class, (t_method) wiimote_discover, gensym("discover"), 0);


   /* query data */
   class_addbang(wiimote_class, (t_method) wiimote_bang);

   class_addmethod(wiimote_class, (t_method) wiimote_report, gensym("report"), A_SYMBOL, A_FLOAT, 0);

   class_addmethod(wiimote_class, (t_method) wiimote_setReportMode, gensym("setReportMode"), A_FLOAT, 0);
   class_addmethod(wiimote_class, (t_method) wiimote_reportAcceleration, gensym("reportAcceleration"), A_FLOAT, 0);
   class_addmethod(wiimote_class, (t_method) wiimote_reportIR, gensym("reportIR"), A_FLOAT, 0);

   class_addmethod(wiimote_class, (t_method) wiimote_reportNunchuk, gensym("reportNunchuck"), A_FLOAT, 0);
   class_addmethod(wiimote_class, (t_method) wiimote_reportNunchuk, gensym("reportNunchuk"), A_FLOAT, 0);
   class_addmethod(wiimote_class, (t_method) wiimote_reportMotionplus, gensym("reportMotionplus"), A_FLOAT, 0);


   /* set things on the wiimote */
   class_addmethod(wiimote_class, (t_method) wiimote_setRumble, gensym("setRumble"), A_FLOAT, 0);
   class_addmethod(wiimote_class, (t_method) wiimote_setLED, gensym("setLED"), A_FLOAT, 0);

   post("[wiimote]: reading data from the Wii remote controller");
   post("	(c) 2007 Mike Wozniewski");
   post("	(c) 2008-2009 Florian Krebs");
   post("	(c) 2009-2010 IOhannes m zmoelnig");
#ifdef VERSION
   post("	version " VERSION " published under the GNU General Public License");
#else
   post("	published under the GNU General Public License");
#endif
}
コード例 #16
0
ファイル: poke.c プロジェクト: Git689/libpd-cyclone-ios
void poke_tilde_setup(void)
{
    poke_class = class_new(gensym("poke~"),
			   (t_newmethod)poke_new,
			   (t_method)poke_free,
			   sizeof(t_poke), 0,
			   A_DEFSYM, A_DEFFLOAT, 0);
    arsic_setup(poke_class, poke_dsp, poke_float);
    class_addbang(poke_class, poke_bang);  /* LATER rethink */
    class_addfloat(poke_class, poke_float);
    class_addmethod(poke_class, (t_method)poke_set,
		    gensym("set"), A_SYMBOL, 0);
    class_addmethod(poke_class, (t_method)poke_ft2,
		    gensym("ft2"), A_FLOAT, 0);
}
コード例 #17
0
void markov_tilde_setup(void){
  markov_class = class_new(gensym("markov~"), (t_newmethod)markov_new, 
			    (t_method)markov_free,sizeof(t_markov), 0,A_DEFFLOAT,0);
  CLASS_MAINSIGNALIN(markov_class, t_markov, x_f);
  class_addmethod(markov_class,(t_method)markov_dsp,gensym("dsp"),0);
//  class_addmethod(markov_class,(t_method)markov_mute,gensym("mute"),A_FLOAT,0);
  class_addmethod(markov_class,(t_method)markov_subdiv,gensym("subdiv"),A_FLOAT,0);
  class_addmethod(markov_class,(t_method)markov_tempo,gensym("tempo"),A_FLOAT,0);
  class_addmethod(markov_class,(t_method)markov_set_length,gensym("set_length"),A_FLOAT,0);
  class_addmethod(markov_class,(t_method)markov_manual_override,gensym("manual_override"),A_FLOAT,0);
  class_addmethod(markov_class,(t_method)markov_values,gensym("values"),A_GIMME,0);
  class_addmethod(markov_class,(t_method)markov_event_odds,gensym("event_odds"),A_GIMME,0);
  class_addbang(markov_class,(t_method)markov_bang);
  post("%s %s",OBJECT_NAME, LYONPOTPOURRI_MSG);
}
コード例 #18
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");
}
コード例 #19
0
ファイル: keyboard_layout.c プロジェクト: ma4u/pd-macambira
//----------------------------------------------------------------------------------------------
void keyboard_layout_setup(void) {
    keyboard_layout_class = class_new(gensym("keyboard_layout"),
                                      (t_newmethod)keyboard_layout_new,
                                      NULL,
                                      sizeof(t_keyboard_layout),
                                      0, A_GIMME, 0);

    class_addbang(keyboard_layout_class, (t_method)keyboard_layout_bang);
    class_addanything(keyboard_layout_class, (t_method)keyboard_layout_anything);

    class_addmethod(keyboard_layout_class, (t_method)keyboard_layout_menu,
                    gensym("menu"), 0);

    post("f0.keyboard_layout v1.1-ub; distributed under GNU GPL license");
}
コード例 #20
0
ファイル: mem_1.c プロジェクト: Francescoziello/SMERM
void mem_1_setup (void)
{
    /* gensym e una funzione di pd che consente di
	verificare vi sia una sola copia di stringa ovvero
	ritorna l'unica copia che ha oppure la crea */
	
    mem_1_class = class_new(gensym("mem_1"),
		mem_1_constructor, (t_method)NULL,
		sizeof(t_mem_1), CLASS_DEFAULT, 0);

    class_addfloat(mem_1_class, float_callback);
    class_addbang(mem_1_class, bang_callback);
    
	post("mem_1 loaded");
}
コード例 #21
0
ファイル: counter.c プロジェクト: Angeldude/pd
void counter_setup(void)
{
    counter_class = class_new(gensym("counter"), (t_newmethod)counter_new, 0,
    	    sizeof(t_counter), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
    class_addbang(counter_class, (t_method)counter_bang);
    class_addmethod(counter_class, (t_method)counter_dir, gensym("fl1"), A_FLOAT, 0);
    class_addmethod(counter_class, (t_method)counter_low, gensym("fl2"), A_FLOAT, 0);
    class_addmethod(counter_class, (t_method)counter_high, gensym("fl3"), A_FLOAT, 0);
    class_addmethod(counter_class, (t_method)counter_reset, gensym("reset"), A_GIMME, 0);
    class_addmethod(counter_class, (t_method)counter_clear, gensym("clear"), A_GIMME, 0);

#if PD_MINOR_VERSION < 37 

#endif
}
コード例 #22
0
ファイル: gauss.c プロジェクト: mullerjs/Stochastic_externals
// setup routine
void gauss_setup(void)
{
    post("gauss, outputs a number based on gaussian distribution, version 0.1");
    post("by Jeremy Muller, 2015\n");

    gauss_class = class_new(gensym("gauss"),
        (t_newmethod)gauss_new, 0,
        sizeof(t_gauss),
        CLASS_DEFAULT,
        A_DEFFLOAT,
        A_DEFFLOAT, 0);

    class_addbang(gauss_class, bangGenerateNum);
    class_sethelpsymbol(gauss_class, gensym("help-gauss"));
}
コード例 #23
0
ファイル: listUnfold.c プロジェクト: Angeldude/pd
void listUnfold_setup(void) {
	
	post("WARNING: listUnfold is deprecated, please use list_unfold instead.");
	
  listUnfold_class = class_new(gensym("listUnfold"),
        (t_newmethod)listUnfold_new,
        (t_method)listUnfold_free, sizeof(t_listUnfold),
        CLASS_DEFAULT, 
        A_GIMME, 0);

  class_addbang  (listUnfold_class, listUnfold_bang);
  class_addanything (listUnfold_class, listUnfold_anything);
  //class_addlist (listUnfold_class, listUnfold_list);
  
}
コード例 #24
0
ファイル: radial_beamform.c プロジェクト: CNMAT/CNMAT-Externs
void radial_beamform_setup(void)
{
   radial_beamform_class = class_new(gensym("sh_radial_beamform~"), (t_newmethod)radialBeamformNew, 
         (t_method) radialBeamformFree, sizeof(RadialBeamform), CLASS_DEFAULT, A_GIMME, 0);
   class_addmethod(radial_beamform_class, nullfn, gensym("signal"), 0);
   class_addmethod(radial_beamform_class, (t_method) radialBeamformDsp, gensym ("dsp"), 0);
   class_addmethod(radial_beamform_class, (t_method)radialBeamformSetDeltan, gensym("delta_n"), A_GIMME, 0);
   class_addmethod(radial_beamform_class, (t_method)radialBeamformSetDeltan0, gensym("delta_n0"), A_GIMME, 0);
   class_addmethod(radial_beamform_class, (t_method)radialBeamformSetWNG, gensym("wng"), A_GIMME, 0);
   class_addmethod(radial_beamform_class, (t_method)radialBeamformSetV, gensym("v"), 0);
   class_addmethod(radial_beamform_class, (t_method)radialBeamformSetP, gensym("p"), 0);
   class_addmethod(radial_beamform_class, (t_method)radialBeamformSetn, gensym("n"), A_GIMME, 0);
   class_addmethod(radial_beamform_class, (t_method)radialBeamformReset, gensym("reset"), 0);
   class_addbang(radial_beamform_class, (t_method)radialBeamformInfo);
}
コード例 #25
0
ファイル: x_time.c プロジェクト: porres/pure-data
static void delay_setup(void)
{
    delay_class = class_new(gensym("delay"), (t_newmethod)delay_new,
        (t_method)delay_free, sizeof(t_delay), 0,
            A_DEFFLOAT, A_DEFFLOAT, A_DEFSYM, 0);
    class_addcreator((t_newmethod)delay_new, gensym("del"),
        A_DEFFLOAT, A_DEFFLOAT, A_DEFSYM, 0);
    class_addbang(delay_class, delay_bang);
    class_addmethod(delay_class, (t_method)delay_stop, gensym("stop"), 0);
    class_addmethod(delay_class, (t_method)delay_ft1,
        gensym("ft1"), A_FLOAT, 0);
    class_addmethod(delay_class, (t_method)delay_tempo,
        gensym("tempo"), A_FLOAT, A_SYMBOL, 0);
    class_addfloat(delay_class, (t_method)delay_float);
}
コード例 #26
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"));
}
コード例 #27
0
ファイル: Histo.c プロジェクト: amurtet/pd-cyclone
void Histo_setup(void)
{
    Histo_class = class_new(gensym("Histo"),
			    (t_newmethod)Histo_new,
			    (t_method)Histo_free,
			    sizeof(t_Histo), 0, A_DEFFLOAT, 0);
    class_addcreator((t_newmethod)Histo_new, gensym("histo"), A_DEFFLOAT, 0);
    class_addcreator((t_newmethod)Histo_new, gensym("cyclone/histo"), A_DEFFLOAT, 0);
    class_addbang(Histo_class, Histo_bang);
    class_addfloat(Histo_class, Histo_float);
    class_addmethod(Histo_class, (t_method)Histo_ft1,
		    gensym("ft1"), A_FLOAT, 0);
    class_addmethod(Histo_class, (t_method)Histo_clear,
		    gensym("clear"), 0);
}
コード例 #28
0
void weightedinterpolation_setup(void) {
  weightedinterpolation_class = class_new(gensym("weightedinterpolation"), 
											(t_newmethod)weightedinterpolation_new, 
											(t_method)weightedinterpolation_free, 
											sizeof(t_weightedinterpolation), 
											CLASS_DEFAULT, A_GIMME, 0);

  class_addbang(weightedinterpolation_class, weightedinterpolation_bang);
  class_addmethod(weightedinterpolation_class, (t_method)weightedinterpolation_read, gensym("read"), A_DEFSYM, 0);
  class_addmethod(weightedinterpolation_class, (t_method)weightedinterpolation_cursorxy, gensym("cursor"), A_DEFFLOAT, A_DEFFLOAT, 0);
  class_addmethod(weightedinterpolation_class, (t_method)weightedinterpolation_power, gensym("power"), A_DEFFLOAT, 0);
  class_addmethod(weightedinterpolation_class, (t_method)weightedinterpolation_dmin, gensym("dmin"), A_DEFFLOAT, 0);

  class_sethelpsymbol(weightedinterpolation_class, gensym("help-weightedinterpolation"));
}
コード例 #29
0
ファイル: prepend.c プロジェクト: Angeldude/pd
void prepend_setup(void)
{
    prepend_class = class_new(gensym("prepend"),
			      (t_newmethod)prepend_new,
			      (t_method)prepend_free,
			      sizeof(t_prepend), 0,
			      A_GIMME, 0);
    class_addbang(prepend_class, prepend_bang);
    class_addfloat(prepend_class, prepend_float);
    class_addsymbol(prepend_class, prepend_symbol);
    class_addlist(prepend_class, prepend_list);
    class_addanything(prepend_class, prepend_anything);
    class_addmethod(prepend_class, (t_method)prepend_set,
		    gensym("set"), A_GIMME, 0);
}
コード例 #30
0
ファイル: tabwrite~.c プロジェクト: BurntBrunch/rockbox-fft
void tabwrite_tilde_setup(void)
{
    tabwrite_tilde_class = class_new(gensym("tabwrite~"),
    	(t_newmethod)tabwrite_tilde_new, (t_method)tabwrite_tilde_free,
    	sizeof(t_tabwrite_tilde), 0, A_DEFSYM, 0);
    CLASS_MAINSIGNALIN(tabwrite_tilde_class, t_tabwrite_tilde, x_f);
    class_addmethod(tabwrite_tilde_class, (t_method)tabwrite_tilde_dsp,
    	gensym("dsp"), 0);
    class_addmethod(tabwrite_tilde_class, (t_method)tabwrite_tilde_set,
    	gensym("set"), A_SYMBOL, 0);
    class_addmethod(tabwrite_tilde_class, (t_method)tabwrite_tilde_stop,
    	gensym("stop"), 0);
    class_addbang(tabwrite_tilde_class, tabwrite_tilde_bang);
    class_addfloat(tabwrite_tilde_class, tabwrite_tilde_float);
}