~ubuntu-branches/ubuntu/raring/pd-smlib/raring

« back to all changes in this revision

Viewing changes to vfmod.c

  • Committer: Package Import Robot
  • Author(s): Hans-Christoph Steiner
  • Date: 2012-09-25 12:20:08 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20120925122008-1915rs1wniolkddt
Tags: upstream-0.12.2
ImportĀ upstreamĀ versionĀ 0.12.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
typedef struct _vfmod
10
10
{
11
11
    t_object x_obj;
12
 
        float m_y;
 
12
        t_float m_y;
13
13
} t_vfmod;
14
14
 
15
15
 
16
16
static void vfmod_perform(t_vfmod *x, t_symbol *s, int argc, t_atom *argv)
17
17
{
18
18
        int i;
19
 
        float y;
 
19
        t_float y;
20
20
        t_atom *ap,*app;
21
21
    ap = (t_atom *)getbytes(sizeof(t_atom)*argc);
22
22
        app=ap;
25
25
                y=1.0f;
26
26
        for (i = 0; i < argc; i++)
27
27
        {
28
 
                SETFLOAT(app, (float)fmod(atom_getfloat(argv++),y));
 
28
                SETFLOAT(app, (t_float)fmod(atom_getfloat(argv++),y));
29
29
                app++;
30
30
        }
31
31
        outlet_list(x->x_obj.ob_outlet,gensym("list"),argc,ap);