[Libxtract-commits] SF.net SVN: libxtract: [103] trunk
Status: Alpha
Brought to you by:
postlude
From: <dan...@us...> - 2007-10-09 13:48:00
|
Revision: 103 http://libxtract.svn.sourceforge.net/libxtract/?rev=103&view=rev Author: danstowell Date: 2007-10-09 06:47:58 -0700 (Tue, 09 Oct 2007) Log Message: ----------- Fixed bug in xtract_init_mfcc() - iteration to decide filter peak positions only filled in freq_bands+1 values, when it should fill in freq_bands+2 Modified Paths: -------------- trunk/ChangeLog trunk/src/init.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-10-08 10:32:16 UTC (rev 102) +++ trunk/ChangeLog 2007-10-09 13:47:58 UTC (rev 103) @@ -1,3 +1,7 @@ +2007-10-09 Dan Stowell + * version 0.5.1 + * Fixed bug in xtract_init_mfcc() which accidentally missed filling in the very top filter frequency value + 2007-10-06 Jamie Bullock <ja...@po...> * version 0.5.0 * Removed fftw_plan creation from inner loop of functions that use fft Modified: trunk/src/init.c =================================================================== --- trunk/src/init.c 2007-10-08 10:32:16 UTC (rev 102) +++ trunk/src/init.c 2007-10-09 13:47:58 UTC (rev 103) @@ -69,15 +69,15 @@ fft_peak[0] = lin_peak[0] / nyquist * M; - for (n = 1; n <= freq_bands; n++){ - /*roll out peak locations - mel, linear and linear on fft window scale */ + for (n = 1; n < freq_bands + 2; n++){ + //roll out peak locations - mel, linear and linear on fft window scale mel_peak[n] = mel_peak[n - 1] + freq_bw_mel; lin_peak[n] = 700 * (exp(mel_peak[n] / 1127) -1); fft_peak[n] = lin_peak[n] / nyquist * M; } for (n = 0; n < freq_bands; n++){ - /*roll out normalised gain of each peak*/ + //roll out normalised gain of each peak if (style == XTRACT_EQUAL_GAIN){ height = 1; norm_fact = norm; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |