static void *leap_gesture_new(t_symbol *s, int argc, t_atom *argv) { t_leap_gesture *x = (t_leap_gesture *)eobj_new(leap_gesture_class); if(x) { x->f_gesture = anythingout(x); x->f_parameters = anythingout(x); ebox_attrprocess_viatoms(x, argc, argv); } return (x); }
void *loadmess_new(t_symbol *s, int argc, t_atom *argv) { int i; t_loadmess *x = NULL; t_binbuf* d; if (!(d = binbuf_via_atoms(argc,argv))) return NULL; x = (t_loadmess *)eobj_new(loadmess_class); x->l_loaded = 0; x->l_time = clock_getsystime(); x->l_argc = argc; x->l_argv = (t_atom *)calloc(x->l_argc, sizeof(t_atom)); for(i = 0; i < argc; i++) x->l_argv[i] = argv[i]; if(!x->l_argc) { x->l_out = (t_outlet *)bangout(x); } else if(x->l_argc == 1) { if(atom_gettype(argv) == A_FLOAT) x->l_out = (t_outlet *)floatout(x); else if (atom_gettype(argv) == A_SYMBOL) x->l_out = (t_outlet *)symbolout(x); } else { if(atom_gettype(argv) == A_FLOAT) x->l_out = (t_outlet *)listout(x); else if (atom_gettype(argv) == A_SYMBOL) x->l_out = (t_outlet *)anythingout(x); } return (x); }
void *filterview_new(t_symbol *s, int argc, t_atom *argv) { t_filterview *x = NULL; t_binbuf* d; long flags; if (!(d = binbuf_via_atoms(argc,argv))) return NULL; x = (t_filterview *)ebox_alloc(filterview_class); flags = 0 | EBOX_GROWINDI ; ebox_new((t_ebox *)x, flags); x->j_box.b_firstin = (t_object *)x; x->f_out_coeffs = (t_outlet *)listout(x); x->f_out_config = (t_outlet *)anythingout(x); x->f_sample_rate = sys_getsr(); x->f_frequency_factor = 0.5; binbuf_attr_process(x, d); ebox_ready((t_ebox *)x); return (x); }