~ubuntu-branches/ubuntu/wily/pd-smlib/wily

« back to all changes in this revision

Viewing changes to lmax.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:
7
7
typedef struct _lmax
8
8
{
9
9
    t_object x_obj;
10
 
        float m_max;
11
 
        float m_leak;
12
 
        float m_c_leak;
 
10
        t_float m_max;
 
11
        t_float m_leak;
 
12
        t_float m_c_leak;
13
13
} t_lmax;
14
14
 
15
15
 
21
21
 
22
22
static void lmax_setHalfDecay(t_lmax *x, t_float halfDecayTime)
23
23
{
24
 
        x->m_c_leak=(float)powf(.5,(1.0f/halfDecayTime));
25
 
        x->m_leak=1.0f-x->m_c_leak;
 
24
        x->m_c_leak=(t_float)powf(.5,(1.0/halfDecayTime));
 
25
        x->m_leak=1.0-x->m_c_leak;
26
26
}
27
27
 
28
28
static void lmax_clear(t_lmax *x)