#[unsafe(no_mangle)]pub unsafe extern "C" fn pyin(
timestamp: *mut *mut c_double,
f0: *mut *mut c_double,
voiced_flag: *mut *mut bool,
voiced_prob: *mut *mut c_double,
n_frames: *mut c_uint,
input: *const c_double,
length: c_uint,
sr: c_uint,
fmin: c_double,
fmax: c_double,
frame_length: c_uint,
win_length: c_uint,
hop_length: c_uint,
resolution: c_double,
fill_unvoiced: c_double,
center: bool,
pad_mode: c_uint,
) -> isizeExpand description
C lang FFI for pYIN
detailed documentation is in PYINExecutor
§Note
- If
win_lengthis0, use default value (frame_length / 2) - If
hop_lengthis0, use default value (frame_length / 4) - If
resolution<= 0, use default value (0.1) - If
pad_modeis 0, zero padding. If 1, reflection padding
§Safety
The caller must call free on f0, voiced_flag, voiced_prob to prevent a memory leak.