From: Paul Brossier Date: Fri, 15 Apr 2016 23:46:57 +0000 (+0200) Subject: index.js: add sink, onset, and pitch X-Git-Tag: v0.0.1~1^2~1 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=b7dc25e5a0341d04215f4486e861b07508167ffc;p=node-aubio.git index.js: add sink, onset, and pitch --- diff --git a/index.js b/index.js index 9a67b56..e52f194 100644 --- a/index.js +++ b/index.js @@ -41,6 +41,52 @@ var aubio = ffi.Library('libaubio', { "aubio_source_close": [ "int", [ "pointer" ]], "del_aubio_source": [ "void", [ "pointer" ]], + // sink + "new_aubio_sink": [ "pointer", [ "string", "int" ]], + "aubio_sink_preset_samplerate": [ "void", [ "pointer", "int" ]], + "aubio_sink_preset_channels": [ "void", [ "pointer", "int" ]], + "aubio_sink_get_samplerate": [ "int", [ "pointer" ]], + "aubio_sink_get_channels": [ "int", [ "pointer" ]], + "aubio_sink_do": ["void", ["pointer", "pointer", "int"]], + "aubio_sink_do_multi": ["void", ["pointer", "pointer", "int"]], + "aubio_sink_close": [ "int", [ "pointer" ]], + "del_aubio_sink": [ "void", [ "pointer" ]], + + // onset + "new_aubio_onset": [ "pointer", [ "string", "int", "int", "int"]], + "aubio_onset_do": [ "void", [ "pointer", "pointer", "pointer"]], + "aubio_onset_get_last": [ "int", ["pointer"]], + "aubio_onset_get_last_s": [ "float", ["pointer"]], + "aubio_onset_get_last_ms": [ "float", ["pointer"]], + "aubio_onset_set_silence": [ "int", ["pointer", "float"]], + "aubio_onset_get_silence": [ "float", ["pointer"]], + "aubio_onset_get_descriptor": [ "float", ["pointer"]], + "aubio_onset_get_thresholded_descriptor": [ "float", ["pointer"]], + "aubio_onset_set_threshold": [ "int", ["pointer", "float"]], + "aubio_onset_set_minioi": [ "int", ["pointer", "int"]], + "aubio_onset_set_minioi_s": [ "int", ["pointer", "int"]], + "aubio_onset_set_minioi_ms": [ "int", ["pointer", "float"]], + "aubio_onset_set_delay": [ "int", ["pointer", "int"]], + "aubio_onset_set_delay_s": [ "int", ["pointer", "int"]], + "aubio_onset_set_delay_ms": [ "int", ["pointer", "float"]], + "aubio_onset_get_minioi": [ "int", ["pointer"]], + "aubio_onset_get_minioi_s": [ "float", ["pointer"]], + "aubio_onset_get_minioi_ms": [ "float", ["pointer"]], + "aubio_onset_get_delay": [ "int", ["pointer"]], + "aubio_onset_get_delay_s": [ "float", ["pointer"]], + "aubio_onset_get_delay_ms": [ "float", ["pointer"]], + "aubio_onset_get_threshold": [ "float", ["pointer"]], + "del_aubio_onset": [ "void", ["pointer"]], + + // pitch + "new_aubio_pitch": [ "pointer", [ "string", "int", "int", "int"]], + "aubio_pitch_do": ["void", ["pointer", "pointer", "pointer"]], + "aubio_pitch_set_tolerance": [ "int", ["pointer", "int"]], + "aubio_pitch_set_unit": ["int", ["pointer", "string"]], + "aubio_pitch_set_silence": ["int", ["pointer", "float"]], + "aubio_pitch_get_silence": ["float", ["pointer"]], + "aubio_pitch_get_confidence": ["float", ["pointer"]], + "del_aubio_pitch": [ "void", ["pointer"]], // fvec "new_fvec": [ "pointer", [ "int" ]],