Skip to content

Commit

Permalink
switch to signalinlet_new()
Browse files Browse the repository at this point in the history
… I didn’t know it existed and was doing this “manually”
  • Loading branch information
Sebastian Shader authored and Sebastian Shader committed May 2, 2015
1 parent f1ee4ee commit 1b4299f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
9 changes: 3 additions & 6 deletions nrcombf~.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,10 @@ static void *nrcombf_new(t_symbol *s, int argc, t_atom *argv)
sarg = atom_getsymbolarg(i, argc, argv);
if (!strcmp(sarg->s_name, "-n")) norm = 1;
}
pd_float((t_pd *)inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal,
&s_signal), time);
pd_float((t_pd *)inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal,
&s_signal),fb);
signalinlet_new(&x->x_obj, time);
signalinlet_new(&x->x_obj, fb);
if(!norm)
pd_float((t_pd *)inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal,
&s_signal), 1.f);
signalinlet_new(&x->x_obj, 1.0);
outlet_new(&x->x_obj, &s_signal);
x->x_f = 0;
x->c_n = 0;
Expand Down
9 changes: 3 additions & 6 deletions rcombf~.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,10 @@ static void *rcombf_new(t_symbol *s, int argc, t_atom *argv)
sarg = atom_getsymbolarg(i, argc, argv);
if (!strcmp(sarg->s_name, "-n")) norm = 1;
}
pd_float((t_pd *)inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal,
&s_signal), time);
pd_float((t_pd *)inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal,
&s_signal),fb);
signalinlet_new(&x->x_obj, time);
signalinlet_new(&x->x_obj, fb);
if(!norm)
pd_float((t_pd *)inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal,
&s_signal), 1.f);
signalinlet_new(&x->x_obj, 1.0);
outlet_new(&x->x_obj, &s_signal);
x->x_f = 0;
x->c_n = 0;
Expand Down
3 changes: 1 addition & 2 deletions voisim~.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ static void *vosim_new(t_symbol *s, int argc, t_atom *argv) {
t_vosim *x = (t_vosim *)pd_new(vosim_class);
x->x_f = 0.0;
x->x_conv = 1.0;
pd_float((t_pd *)inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal,
&s_signal), atom_getfloatarg(2, argc, argv));
signalinlet_new(&x->x_obj, atom_getfloatarg(2, argc, argv));
x->decay = atom_getfloatarg(0, argc, argv);
if(argc > 1) x->duty = atom_getfloatarg(1, argc, argv);
else x->duty = 1;
Expand Down

0 comments on commit 1b4299f

Please sign in to comment.