[PD-cvs] externals/grill/xsample/source groove.cpp,1.29,1.30
Thomas Grill
xovo at users.sourceforge.net
Wed Jan 26 06:13:26 CET 2005
Update of /cvsroot/pure-data/externals/grill/xsample/source
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26750/source
Modified Files:
groove.cpp
Log Message:
minor updates
Index: groove.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/xsample/source/groove.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** groove.cpp 8 Jan 2005 04:59:44 -0000 1.29
--- groove.cpp 26 Jan 2005 05:13:21 -0000 1.30
***************
*** 7,10 ****
--- 7,14 ----
*/
+ #ifdef _MSC_VER
+ #define _USE_MATH_DEFINES
+ #endif
+
#include "main.h"
#include <math.h>
***************
*** 144,151 ****
t_sample xgroove::fade_hsine[XZONE_TABLE+1];
- #ifndef PI
- #define PI 3.14159265358979f
- #endif
-
void xgroove::setup(t_classid c)
{
--- 148,151 ----
***************
*** 174,181 ****
// quarter sine wave
! fade_qsine[i] = sin(x*(PI/2));
// half sine wave
! fade_hsine[i] = (sin(x*PI-PI/2)+1.f)*0.5f;
}
}
--- 174,181 ----
// quarter sine wave
! fade_qsine[i] = sin(x*(M_PI/2));
// half sine wave
! fade_hsine[i] = (sin(x*M_PI-M_PI/2)+1.f)*0.5f;
}
}
More information about the Pd-cvs
mailing list