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

« back to all changes in this revision

Viewing changes to lrange.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 _lrange
8
8
{
9
9
    t_object x_obj;
10
 
        float m_min;
11
 
        float m_max;
12
 
        float m_c_leak;
13
 
        float m_leak;
 
10
        t_float m_min;
 
11
        t_float m_max;
 
12
        t_float m_c_leak;
 
13
        t_float m_leak;
14
14
} t_lrange;
15
15
 
16
16
 
23
23
 
24
24
static void lrange_setHalfDecay(t_lrange *x, t_float halfDecayTime)
25
25
{
26
 
        x->m_c_leak=(float)powf(.5,(1.0f/halfDecayTime));
 
26
        x->m_c_leak=(t_float)powf(.5,(1.0f/halfDecayTime));
27
27
        x->m_leak=1.0f-x->m_c_leak;
28
28
}
29
29