Changeset 479adba
- Timestamp:
- Dec 7, 2013, 6:30:22 PM (11 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- ce1d788
- Parents:
- 2b6139e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/onset.h
r2b6139e7 r479adba 26 26 in these functions. When onsets are found above a given silence threshold, 27 27 and after a minimum inter-onset interval, the output vector returned by 28 ::aubio_onset_dois filled with `1`. Otherwise, the output vector remains28 aubio_onset_do() is filled with `1`. Otherwise, the output vector remains 29 29 `0`. 30 30 … … 55 55 \param samplerate sampling rate of the input signal 56 56 57 \return newly created ::aubio_onset_t 58 57 59 */ 58 60 aubio_onset_t * new_aubio_onset (char_t * method, … … 61 63 /** execute onset detection 62 64 63 \param o onset detection object as returned by ::new_aubio_onset65 \param o onset detection object as returned by new_aubio_onset() 64 66 \param input new audio vector of length hop_size 65 67 \param onset output vector of length 1, containing 0 if no onset was found, … … 73 75 74 76 The final onset detection time, in samples, can be obtained with 75 ::aubio_onset_get_last_onset. It can also be derived from `offset` as77 aubio_onset_get_last(). It can also be derived from `offset` as 76 78 follows: 77 79 … … 82 84 where `total_frames` is the total number of frames processed so far, and 83 85 `delay` is the current delay of the onset object, as returned by 84 ::aubio_onset_get_delay.86 aubio_onset_get_delay(). 85 87 86 88 */ … … 89 91 /** get the time of the latest onset detected, in samples 90 92 91 \param o onset detection object as returned by ::new_aubio_onset 93 \param o onset detection object as returned by new_aubio_onset() 94 95 \return onset detection timestamps (in samples) 92 96 93 97 */ … … 96 100 /** get the time of the latest onset detected, in seconds 97 101 98 \param o onset detection object as returned by ::new_aubio_onset 102 \param o onset detection object as returned by new_aubio_onset() 103 104 \return onset detection timestamps (in seconds) 99 105 100 106 */ … … 103 109 /** get the time of the latest onset detected, in milliseconds 104 110 105 \param o onset detection object as returned by ::new_aubio_onset 111 \param o onset detection object as returned by new_aubio_onset() 112 113 \return onset detection timestamps (in milliseconds) 106 114 107 115 */ … … 110 118 /** set onset detection silence threshold 111 119 112 \param o onset detection object as returned by ::new_aubio_onset120 \param o onset detection object as returned by new_aubio_onset() 113 121 \param silence new silence detection threshold 114 122 … … 118 126 /** get onset detection function 119 127 120 \param o onset detection object as returned by ::new_aubio_onset128 \param o onset detection object as returned by new_aubio_onset() 121 129 \return the current value of the descriptor 122 130 … … 126 134 /** get thresholded onset detection function 127 135 128 \param o onset detection object as returned by ::new_aubio_onset136 \param o onset detection object as returned by new_aubio_onset() 129 137 \return the value of the thresholded descriptor 130 138 … … 134 142 /** set onset detection peak picking threshold 135 143 136 \param o onset detection object as returned by ::new_aubio_onset144 \param o onset detection object as returned by new_aubio_onset() 137 145 \param threshold new peak-picking threshold 138 146 … … 142 150 /** set minimum inter onset interval in samples 143 151 144 \param o onset detection object as returned by ::new_aubio_onset152 \param o onset detection object as returned by new_aubio_onset() 145 153 \param minioi minimum interval between two consecutive onsets (in 146 154 samples) … … 151 159 /** set minimum inter onset interval in seconds 152 160 153 \param o onset detection object as returned by ::new_aubio_onset161 \param o onset detection object as returned by new_aubio_onset() 154 162 \param minioi minimum interval between two consecutive onsets (in 155 163 seconds) … … 160 168 /** set minimum inter onset interval in milliseconds 161 169 162 \param o onset detection object as returned by ::new_aubio_onset170 \param o onset detection object as returned by new_aubio_onset() 163 171 \param minioi minimum interval between two consecutive onsets (in 164 172 milliseconds) … … 169 177 /** set minimum inter onset interval in samples 170 178 171 \param o onset detection object as returned by ::new_aubio_onset179 \param o onset detection object as returned by new_aubio_onset() 172 180 \param delay constant system delay to take back from detection time 173 181 (in samples) … … 178 186 /** set minimum inter onset interval in seconds 179 187 180 \param o onset detection object as returned by ::new_aubio_onset188 \param o onset detection object as returned by new_aubio_onset() 181 189 \param delay constant system delay to take back from detection time 182 190 (in seconds) … … 187 195 /** set minimum inter onset interval in milliseconds 188 196 189 \param o onset detection object as returned by ::new_aubio_onset197 \param o onset detection object as returned by new_aubio_onset() 190 198 \param delay constant system delay to take back from detection time 191 199 (in milliseconds) … … 196 204 /** get minimum inter onset interval in samples 197 205 198 \param o onset detection object as returned by ::new_aubio_onset206 \param o onset detection object as returned by new_aubio_onset() 199 207 \return minimum interval between two consecutive onsets (in 200 208 samples) … … 205 213 /** get minimum inter onset interval in seconds 206 214 207 \param o onset detection object as returned by ::new_aubio_onset215 \param o onset detection object as returned by new_aubio_onset() 208 216 \return minimum interval between two consecutive onsets (in 209 217 seconds) … … 214 222 /** get minimum inter onset interval in milliseconds 215 223 216 \param o onset detection object as returned by ::new_aubio_onset224 \param o onset detection object as returned by new_aubio_onset() 217 225 \return minimum interval between two consecutive onsets (in 218 226 milliseconds) … … 223 231 /** get minimum inter onset interval in samples 224 232 225 \param o onset detection object as returned by ::new_aubio_onset233 \param o onset detection object as returned by new_aubio_onset() 226 234 \return constant system delay to take back from detection time 227 235 (in samples) … … 232 240 /** get minimum inter onset interval in seconds 233 241 234 \param o onset detection object as returned by ::new_aubio_onset242 \param o onset detection object as returned by new_aubio_onset() 235 243 \return constant system delay to take back from detection time 236 244 (in seconds) … … 241 249 /** get minimum inter onset interval in milliseconds 242 250 243 \param o onset detection object as returned by ::new_aubio_onset251 \param o onset detection object as returned by new_aubio_onset() 244 252 \return constant system delay to take back from detection time 245 253 (in milliseconds)
Note: See TracChangeset
for help on using the changeset viewer.