Mercurial > hg > libxtract
changeset 224:5ca682ce3392
Merge branch 'master' of https://github.com/jamiebullock/LibXtract
author | Sean Enderby <sean.enderby@gmail.com> |
---|---|
date | Mon, 24 Feb 2014 13:43:13 +0000 |
parents | fdbef1474be9 (current diff) ae2225b96ae1 (diff) |
children | 62e797c2974a |
files | |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Mon Feb 24 13:00:25 2014 +0000 +++ b/configure.ac Mon Feb 24 13:43:13 2014 +0000 @@ -265,7 +265,7 @@ ;; *-*-linux*) PD_CFLAGS+=" -DUNIX -Wall -Wimplicit -Wunused -Wmissing-prototypes -fPIC" - PD_LDFLAGS+=" -shared -export_dynamic" + PD_LDFLAGS+=" -shared -export_dynamic -undefined dynamic_lookup" PD_SUFFIX=pd_linux ;; sparc-sun-*)
--- a/examples/simpletest/simpletest.c Mon Feb 24 13:00:25 2014 +0000 +++ b/examples/simpletest/simpletest.c Mon Feb 24 13:43:13 2014 +0000 @@ -78,7 +78,7 @@ wavetable[i] = ((phase / (double)PERIOD) * 2) - 1.; break; case NOISE: - wavetable[i] = (arc4random_uniform(1000) / 500.0) - 1; + wavetable[i] = ((random() % 1000) / 500.0) - 1; break; } } @@ -114,7 +114,9 @@ xtract_mel_filter mel_filters; fill_wavetable(344.53125f, NOISE); // 344.53125f = 128 samples @ 44100 Hz + /* print_wavetable(); + */ /* get the F0 */ xtract[XTRACT_WAVELET_F0](wavetable, BLOCKSIZE, &samplerate, &f0); @@ -136,7 +138,7 @@ { printf("\nUnable to get lowest value, all values below threshold?\n\n"); } - exit(0); + /* create the window function */ window = xtract_init_window(BLOCKSIZE, XTRACT_HANN); xtract_windowed(wavetable, BLOCKSIZE, window, windowed);