diff options
Diffstat (limited to 'connes~.c')
-rw-r--r-- | connes~.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -20,14 +20,25 @@ */ #include "m_pd.h" -#include "windowFunctions.h" #include <stdlib.h> -#ifdef NT + +#ifdef _MSC_VER #pragma warning( disable : 4244 ) #pragma warning( disable : 4305 ) #endif + #define DEFBLOCKSIZE 64 +void fillConnes(float *vec, int n) { + int i; + float xShift = (float)n / 2; + float x; + for (i = 0; i < n; i++) { + x = (i - xShift) / xShift; + vec[i] = (float)((1 - (x * x)) * (1 - (x * x))); + } +} + static t_class *connes_class; typedef struct _connes { |