From 8fa9868a8331071c6e1aedf0e09ae9e150b87ddd Mon Sep 17 00:00:00 2001 From: Gray Leonard Date: Fri, 15 Apr 2016 21:38:17 -0400 Subject: [PATCH] fix test.js --- test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.js b/test.js index 787ff8a..dc43e1f 100644 --- a/test.js +++ b/test.js @@ -35,12 +35,12 @@ var get_file_bpm = function(path, params) { aubio.aubio_source_do(source, samples, tmp_read); - aubio.aubio_pitch_do(pitch, test_fvec, out_fvec); + aubio.aubio_pitch_do(pitch, samples, out_fvec); var cur_time = total_frames / samplerate; var last_pitch = aubio.fvec_get_sample(out_fvec, 0); //console.log('pitch at %d seconds: %d Hz', cur_time, last_pitch); - aubio.aubio_tempo_do(tempo, test_fvec, out_fvec); + aubio.aubio_tempo_do(tempo, samples, out_fvec); var is_beat = aubio.fvec_get_sample(out_fvec, 0); if (is_beat) { var last_beat = aubio.aubio_tempo_get_last_s(tempo); -- 2.11.0