Mercurial > hg > libxtract
changeset 177:ea68ff490a71
Remove extraneous print statement
author | Jamie Bullock <jamie@jamiebullock.com> |
---|---|
date | Wed, 19 Jun 2013 15:54:52 -0700 |
parents | f94410db4014 |
children | a44feda65b99 |
files | examples/simpletest/simpletest.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/simpletest/simpletest.c Wed Jun 19 15:30:04 2013 -0700 +++ b/examples/simpletest/simpletest.c Wed Jun 19 15:54:52 2013 -0700 @@ -104,7 +104,7 @@ xtract_mel_filter mel_filters; fill_wavetable(344.53125f, SINE); // 344.53125f = 128 samples @ 44100 Hz - print_wavetable(); +// print_wavetable(); /* get the F0 */ xtract[XTRACT_WAVELET_F0](wavetable, BLOCKSIZE, &samplerate, &f0); @@ -122,11 +122,10 @@ /* get the spectrum */ argd[0] = SAMPLERATE / (double)BLOCKSIZE; argd[1] = XTRACT_MAGNITUDE_SPECTRUM; - argd[2] = 1.f; /* DC component - we expect this to zero for square wave */ + argd[2] = 0.f; /* DC component - we expect this to zero for square wave */ argd[3] = 0.f; /* No Normalisation */ xtract_init_fft(BLOCKSIZE, XTRACT_SPECTRUM); - printf("windowed: %p, spectrum: %p\n", (void *)windowed, (void *)spectrum); xtract[XTRACT_SPECTRUM](windowed, BLOCKSIZE, &argd[0], spectrum); xtract[XTRACT_SPECTRAL_CENTROID](spectrum, BLOCKSIZE, NULL, ¢roid);