Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clean up src

  • Loading branch information...
commit e4def8de76272544bea08c578e4db9ce54f0d464 1 parent c077de3
yota morimoto authored
Showing with 47 additions and 8 deletions.
  1. +5 −0 .svn/all-wcprops
  2. +35 −0 .svn/entries
  3. +7 −8 src/CAUGens.cpp
5 .svn/all-wcprops
View
@@ -0,0 +1,5 @@
+K 25
+svn:wc:ra_dav:version-url
+V 21
+/svn/!svn/ver/1/trunk
+END
35 .svn/entries
View
@@ -0,0 +1,35 @@
+10
+
+dir
+1
+https://ca4sc.googlecode.com/svn/trunk
+https://ca4sc.googlecode.com/svn
+
+
+
+2010-09-09T22:32:32.003245Z
+1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+d9b2de03-fbf2-42bd-fc9a-6d5e3df99e94
+
+README.rtf
+file
+0
+
+
+add
+
15 src/CAUGens.cpp
View
@@ -18,11 +18,12 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-// CAUGens implemented by Yota Morimoto (http://yota.tehis.net/syntax)
+// CAUGens implemented by Yota Morimoto
+// http://yota.tehis.net/
// v1.5 2012
-//CA1(x)
-//CA2(x)
-//x = cubic interpolation
+// CA1(x)
+// CA2(x)
+// x = cubic interpolation
#include "SC_PlugIn.h"
@@ -55,8 +56,7 @@ extern "C" {
}
// calc 3rd order interpolation coefs from four points
-static inline void ipol3Coef(float xm3, float xm2, float xm1, float x, float &c0, float &c1, float &c2, float &c3)
-{
+static inline void ipol3Coef(float xm3, float xm2, float xm1, float x, float &c0, float &c1, float &c2, float &c3){
c0 = xm2;
c1 = 0.5f * (xm1 - xm3);
c2 = xm3 - (2.5f * xm2) + xm1 + xm1 - 0.5f * x;
@@ -64,8 +64,7 @@ static inline void ipol3Coef(float xm3, float xm2, float xm1, float x, float &c0
}
// do 3rd order interpolation using coefs
-static inline float ipol3(float frac, float c0, float c1, float c2, float c3)
-{
+static inline float ipol3(float frac, float c0, float c1, float c2, float c3){
return ((c3 * frac + c2) * frac + c1) * frac + c0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.