onset.h File Reference
Onset detection driver.
More...
Go to the source code of this file.
Detailed Description
Onset detection driver.
The following routines compute the onset detection function and detect peaks in these functions. When onsets are found above a given silence threshold, and after a minimum inter-onset interval, the output vector returned by aubio_onset is filled with 1. Otherwise, the output vector remains 0.
The peak-picking threshold, the silence threshold, and the minimum inter-onset interval can be adjusted during the execution of the aubio_onset routine using the corresponding functions.
Function Documentation
execute onset detection
- Parameters:
-
| o | onset detection object as returned by new_aubio_onset |
| input | new audio vector of length hop_size |
| onset | output vector, 1 if onset is found, 0 otherwise |
set minimum inter onset interval
- Parameters:
-
| o | onset detection object as returned by new_aubio_onset |
| minioi | minimum number of frames between onsets (in multiple of hop_size/samplerare) |
set onset detection silence threshold
- Parameters:
-
| o | onset detection object as returned by new_aubio_onset |
| silence | new silence detection threshold |
set onset detection peak picking threshold
- Parameters:
-
| o | onset detection object as returned by new_aubio_onset |
| threshold | new peak-picking threshold |
delete onset detection object
- Parameters:
-
| o | onset detection object to delete |
create onset detection object
- Parameters:
-
| type_onset | onset detection type as specified in onsetdetection.h |
| buf_size | buffer size for phase vocoder |
| hop_size | hop size for phase vocoder |
| channels | number of channels |