~ubuntu-branches/debian/sid/python-pyo/sid

« back to all changes in this revision

Viewing changes to src/engine/interpolation.c

  • Committer: Package Import Robot
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2014-04-13 00:15:48 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20140413001548-yz0sd86hboij8exu
Tags: 0.6.9-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    MYFLT x2 = buf[index+1];
39
39
    
40
40
    frac2 = (1.0 - MYCOS(frac * M_PI)) * 0.5;
41
 
    return (x1 * (1.0 - frac2) + x2 * frac2);
 
41
    return (x1 + (x2 - x1) * frac2);
42
42
}
43
43
 
44
44
MYFLT cubic(MYFLT *buf, int index, MYFLT frac, int size) {