void play_tilde_setup(void) { play_class = class_new(gensym("play~"), (t_newmethod)play_new, (t_method)play_free, sizeof(t_play), 0, A_DEFSYM, A_DEFFLOAT, 0); arsic_setup(play_class, play_dsp, SIC_FLOATTOSIGNAL); class_addmethod(play_class, (t_method)play_set, gensym("set"), A_SYMBOL, 0); }
void wave_tilde_setup(void) { wave_class = class_new(gensym("wave~"), (t_newmethod)wave_new, (t_method)wave_free, sizeof(t_wave), 0, A_DEFSYM, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0); arsic_setup(wave_class, wave_dsp, SIC_FLOATTOSIGNAL); class_addmethod(wave_class, (t_method)wave_set, gensym("set"), A_SYMBOL, 0); class_addmethod(wave_class, (t_method)wave_interp, gensym("interp"), A_FLOAT, 0); }
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); }
void record_tilde_setup(void) { record_class = class_new(gensym("record~"), (t_newmethod)record_new, (t_method)record_free, sizeof(t_record), 0, A_DEFSYM, A_DEFFLOAT, 0); arsic_setup(record_class, record_dsp, record_float); class_addmethod(record_class, (t_method)record_startpoint, gensym("ft-2"), A_FLOAT, 0); class_addmethod(record_class, (t_method)record_endpoint, gensym("ft-1"), A_FLOAT, 0); class_addmethod(record_class, (t_method)record_append, gensym("append"), A_FLOAT, 0); class_addmethod(record_class, (t_method)record_loop, gensym("loop"), A_FLOAT, 0); class_addmethod(record_class, (t_method)record_set, gensym("set"), A_SYMBOL, 0); class_addmethod(record_class, (t_method)record_reset, gensym("reset"), 0); // logpost(NULL, 4, "this is cyclone/record~ %s, %dth %s build", // CYCLONE_VERSION, CYCLONE_BUILD, CYCLONE_RELEASE); }