multy64~/Source/multy64~common.c
void *multy64_common_new(t_multy64 *x, short argc, t_atom *argv)
{
#ifdef TARGET_IS_MAX
    /* Create inlets */
    dsp_setup((t_pxobject *)x, NUM_INLETS);

    /* Create signal outlets */
    outlet_new((t_object *)x, "signal");

    /* Avoid sharing memory among audio vectors */
    x->obj.z_misc |= Z_NO_INPLACE;

#elif TARGET_IS_PD
    /* Create inlets */
    inlet_new(&x->obj, &x->obj.ob_pd, gensym("signal"), gensym("signal"));

    /* Create signal outlets */
    outlet_new(&x->obj, gensym("signal"));

#endif

    /* Print message to Max window */
    post("multy64~ • Object was created");

    /* Return a pointer to the new object */
    return x;
}
/* The common 'new instance' routine ******************************************/
The common 'new instance' routine
The common ' new instance ' routine
void *multy64_common_new(t_multy64 *x, short argc, t_atom *argv)
{
#ifdef TARGET_IS_MAX
    dsp_setup((t_pxobject *)x, NUM_INLETS);
    outlet_new((t_object *)x, "signal");
    x->obj.z_misc |= Z_NO_INPLACE;
#elif TARGET_IS_PD
    inlet_new(&x->obj, &x->obj.ob_pd, gensym("signal"), gensym("signal"));
    outlet_new(&x->obj, gensym("signal"));
#endif
    post("multy64~ • Object was created");
    return x;
}
void * multy64_common_new ( t_multy64 * x , short argc , t_atom * argv ) { #ifdef TARGET_IS_MAX dsp_setup ( ( t_pxobject * ) x , NUM_INLETS ) ; outlet_new ( ( t_object * ) x , " " ) ; x -> obj . z_misc |= Z_NO_INPLACE ; #elif TARGET_IS_PD inlet_new ( & x -> obj , & x -> obj . ob_pd , gensym ( " " ) , gensym ( " " ) ) ; outlet_new ( & x -> obj , gensym ( " " ) ) ; #endif post ( " ; return x ; }
The common 'new instance' routine
The common ' new instance ' routine
/* Create inlets */ /* Create signal outlets */ /* Avoid sharing memory among audio vectors */ /* Create inlets */ /* Create signal outlets */ /* Print message to Max window */ /* Return a pointer to the new object */