# HG changeset patch # User Sean Enderby # Date 1393249393 0 # Node ID 5ca682ce339232cd98d35c36ed5a4e2486883af1 # Parent fdbef1474be94ea425266b095ead1163ba6f3003# Parent ae2225b96ae16649c10315ac8ebfa7e81f59050a Merge branch 'master' of https://github.com/jamiebullock/LibXtract diff -r fdbef1474be9 -r 5ca682ce3392 configure.ac --- 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-*) diff -r fdbef1474be9 -r 5ca682ce3392 examples/simpletest/simpletest.c --- 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);