~ubuntu-branches/ubuntu/trusty/pd-smlib/trusty

« back to all changes in this revision

Viewing changes to vstd.c

  • Committer: Package Import Robot
  • Author(s): Hans-Christoph Steiner
  • Date: 2012-09-25 12:20:08 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120925122008-jhr5hyl3juh91eyv
Tags: 0.12.2-1
* updated to upstream version v0.12.2
* removed patches since they are in new upstream release
* bumped standards version to 3.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
static void vstd_perform(t_vstd *x, t_symbol *s, int argc, t_atom *argv)
14
14
{
15
 
        float sumsq=0.0f;
16
 
        float sum=0.0f;
 
15
        t_float sumsq=0.0f;
 
16
        t_float sum=0.0f;
17
17
        int i;
18
18
        for (i = 0; i < argc; i++)
19
19
        {
20
 
                float tmp=atom_getfloat(&argv[i]);
 
20
                t_float tmp=atom_getfloat(&argv[i]);
21
21
                sumsq+= tmp*tmp;
22
22
                sum+=tmp;
23
23
        }
24
24
        sumsq/=argc;
25
25
        sum/=argc;
26
 
        outlet_float(x->x_obj.ob_outlet, (float)sqrtf(sumsq-sum*sum));
 
26
        outlet_float(x->x_obj.ob_outlet, (t_float)sqrtf(sumsq-sum*sum));
27
27
}
28
28
 
29
29
static void *vstd_new( t_float halfDecayTime)