aubio_notes_set_release_drop method

int aubio_notes_set_release_drop(
  1. Pointer<aubio_notes_t> o,
  2. double release_drop
)

set note release drop level, in dB

This function sets the release_drop_level parameter, in dB. When a new note is found, the current level in dB is measured. If the measured level drops under that initial level - release_drop_level, then a note-off will be emitted.

Defaults to 10, in dB.

\note This parameter was added in version 0.4.8. Results obtained with earlier versions can be reproduced by setting this value to 100, so that note-off will not be played until the next note.

\param o notes detection object as returned by new_aubio_notes() \param release_drop new release drop level, in dB

\return 0 on success, non-zero otherwise

Implementation

int aubio_notes_set_release_drop(
  ffi.Pointer<aubio_notes_t> o,
  double release_drop,
) {
  return _aubio_notes_set_release_drop(
    o,
    release_drop,
  );
}