bed/Source/bed_pd.c
void *bed_new(t_symbol *s)
{
    /* Instantiate a new object */
    t_bed *x = (t_bed *)pd_new(bed_class);

    /* Parse passed argument */
    x->b_name = s;

    /* Initialize some state variables */
    x->undo_cut = 0;

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

    /* Return a pointer to the new object */
    return x;
}
/* The new and free instance routines *****************************************/
The new and free instance routines
The new and free instance routines
void *bed_new(t_symbol *s)
{
    t_bed *x = (t_bed *)pd_new(bed_class);
    x->b_name = s;
    x->undo_cut = 0;
    post("bed • Object was created");
    return x;
}
void * bed_new ( t_symbol * s ) { t_bed * x = ( t_bed * ) pd_new ( bed_class ) ; x -> b_name = s ; x -> undo_cut = 0 ; post ( " ; return x ; }
The new and free instance routines
The new and free instance routines
/* Instantiate a new object */ /* Parse passed argument */ /* Initialize some state variables */ /* Print message to Max window */ /* Return a pointer to the new object */