Changes in src/tempo/tempo.h [deb1fd4:6f42c16]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tempo/tempo.h
rdeb1fd4 r6f42c16 31 31 */ 32 32 33 #ifndef _AUBIO_TEMPO_H34 #define _AUBIO_TEMPO_H33 #ifndef AUBIO_TEMPO_H 34 #define AUBIO_TEMPO_H 35 35 36 36 #ifdef __cplusplus … … 51 51 52 52 */ 53 aubio_tempo_t * new_aubio_tempo (c har_t * method,53 aubio_tempo_t * new_aubio_tempo (const char_t * method, 54 54 uint_t buf_size, uint_t hop_size, uint_t samplerate); 55 55 … … 61 61 62 62 */ 63 void aubio_tempo_do (aubio_tempo_t *o, fvec_t * input, fvec_t * tempo);63 void aubio_tempo_do (aubio_tempo_t *o, const fvec_t * input, fvec_t * tempo); 64 64 65 65 /** get the time of the latest beat detected, in samples … … 121 121 */ 122 122 smpl_t aubio_tempo_get_threshold(aubio_tempo_t * o); 123 124 /** get current beat period in samples 125 126 \param bt beat tracking object 127 128 Returns the currently observed period, in samples, or 0 if no consistent 129 value is found. 130 131 */ 132 smpl_t aubio_tempo_get_period (aubio_tempo_t * bt); 133 134 /** get current beat period in seconds 135 136 \param bt beat tracking object 137 138 Returns the currently observed period, in seconds, or 0 if no consistent 139 value is found. 140 141 */ 142 smpl_t aubio_tempo_get_period_s (aubio_tempo_t * bt); 123 143 124 144 /** get current tempo … … 140 160 */ 141 161 smpl_t aubio_tempo_get_confidence(aubio_tempo_t * o); 162 163 /* set number of tatum per beat 164 165 \param o beat tracking object 166 \param signature number of tatum per beat (between 1 and 64) 167 168 */ 169 uint_t aubio_tempo_set_tatum_signature(aubio_tempo_t *o, uint_t signature); 170 171 /* check whether a tatum was detected in the current frame 172 173 \param o beat tracking object 174 175 \return 2 if a beat was detected, 1 if a tatum was detected, 0 otherwise 176 177 */ 178 uint_t aubio_tempo_was_tatum(aubio_tempo_t *o); 179 180 /* get position of last_tatum, in samples 181 182 \param o beat tracking object 183 184 */ 185 smpl_t aubio_tempo_get_last_tatum(aubio_tempo_t *o); 186 187 /** get current delay 188 189 \param o beat tracking object 190 191 \return current delay, in samples 192 193 */ 194 uint_t aubio_tempo_get_delay(aubio_tempo_t * o); 195 196 /** get current delay in seconds 197 198 \param o beat tracking object 199 200 \return current delay, in seconds 201 202 */ 203 smpl_t aubio_tempo_get_delay_s(aubio_tempo_t * o); 204 205 /** get current delay in ms 206 207 \param o beat tracking object 208 209 \return current delay, in milliseconds 210 211 */ 212 smpl_t aubio_tempo_get_delay_ms(aubio_tempo_t * o); 213 214 /** set current delay 215 216 \param o beat tracking object 217 \param delay delay to set tempo to, in samples 218 219 \return `0` if successful, non-zero otherwise 220 221 */ 222 uint_t aubio_tempo_set_delay(aubio_tempo_t * o, sint_t delay); 223 224 /** set current delay in seconds 225 226 \param o beat tracking object 227 \param delay delay to set tempo to, in seconds 228 229 \return `0` if successful, non-zero otherwise 230 231 */ 232 uint_t aubio_tempo_set_delay_s(aubio_tempo_t * o, smpl_t delay); 233 234 /** set current delay 235 236 \param o beat tracking object 237 \param delay delay to set tempo to, in samples 238 239 \return `0` if successful, non-zero otherwise 240 241 */ 242 uint_t aubio_tempo_set_delay_ms(aubio_tempo_t * o, smpl_t delay); 142 243 143 244 /** delete tempo detection object … … 152 253 #endif 153 254 154 #endif /* _AUBIO_TEMPO_H */255 #endif /* AUBIO_TEMPO_H */
Note: See TracChangeset
for help on using the changeset viewer.