comparison src/vector.c @ 41:afb9e6fee244

Changes to xtract_inharmonicity - made parameters consistent with other xtractors that use peak spectrum. Fixed memory alloc bug in pd example.
author Jamie Bullock <jamie@postlude.co.uk>
date Mon, 11 Dec 2006 17:57:27 +0000
parents 39c76f4db5b7
children 84e69b155098
comparison
equal deleted inserted replaced
40:678667039077 41:afb9e6fee244
269 } 269 }
270 } 270 }
271 271
272 return (return_code ? return_code : SUCCESS); 272 return (return_code ? return_code : SUCCESS);
273 } 273 }
274 274
275 int xtract_harmonics(float *data, int N, void *argv, float *result){ 275 int xtract_harmonics(float *data, int N, void *argv, float *result){
276 276
277 int n = (N >> 1), M = n; 277 int n = (N >> 1), M = n;
278 278
279 float *freqs, *amps, f0, thresh, ratio, nearest, distance; 279 float *freqs, *amps, f0, thresh, ratio, nearest, distance;