aubio_pitch_set_unit method

int aubio_pitch_set_unit(
  1. Pointer<aubio_pitch_t> o,
  2. Pointer<char_t> mode
)

set the output unit of the pitch detection object

\param o pitch detection object as returned by new_aubio_pitch() \param mode set pitch units for output

mode can be one of "Hz", "midi", "cent", or "bin". Defaults to "Hz".

\return 0 if successfull, non-zero otherwise

Implementation

int aubio_pitch_set_unit(
  ffi.Pointer<aubio_pitch_t> o,
  ffi.Pointer<char_t> mode,
) {
  return _aubio_pitch_set_unit(
    o,
    mode,
  );
}