- Timestamp:
- Aug 9, 2005, 8:35:14 PM (20 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:
- b1f723d
- Parents:
- a29ad46
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/onsetdetection.c ¶
ra29ad46 r5cf415f 208 208 switch(type) { 209 209 /* for both energy and hfc, only fftgrain->norm is required */ 210 case energy:211 break; 212 case hfc:210 case aubio_onset_energy: 211 break; 212 case aubio_onset_hfc: 213 213 break; 214 214 /* the other approaches will need some more memory spaces */ 215 case complexdomain:215 case aubio_onset_complex: 216 216 o->oldmag = new_fvec(rsize,channels); 217 217 /** bug: must be complex array */ … … 221 221 o->theta2 = new_fvec(rsize,channels); 222 222 break; 223 case phase:223 case aubio_onset_phase: 224 224 o->dev1 = new_fvec(rsize,channels); 225 225 o->theta1 = new_fvec(rsize,channels); … … 228 228 o->threshold = 0.1; 229 229 break; 230 case specdiff:230 case aubio_onset_specdiff: 231 231 o->oldmag = new_fvec(rsize,channels); 232 232 o->dev1 = new_fvec(rsize,channels); … … 234 234 o->threshold = 0.1; 235 235 break; 236 case kl:236 case aubio_onset_kl: 237 237 o->oldmag = new_fvec(rsize,channels); 238 238 break; 239 case mkl:239 case aubio_onset_mkl: 240 240 o->oldmag = new_fvec(rsize,channels); 241 241 break; … … 249 249 250 250 switch(type) { 251 case energy:251 case aubio_onset_energy: 252 252 o->funcpointer = aubio_onsetdetection_energy; 253 253 break; 254 case hfc:254 case aubio_onset_hfc: 255 255 o->funcpointer = aubio_onsetdetection_hfc; 256 256 break; 257 case complexdomain:257 case aubio_onset_complex: 258 258 o->funcpointer = aubio_onsetdetection_complex; 259 259 break; 260 case phase:260 case aubio_onset_phase: 261 261 o->funcpointer = aubio_onsetdetection_phase; 262 262 break; 263 case specdiff:263 case aubio_onset_specdiff: 264 264 o->funcpointer = aubio_onsetdetection_specdiff; 265 265 break; 266 case kl:266 case aubio_onset_kl: 267 267 o->funcpointer = aubio_onsetdetection_kl; 268 268 break; 269 case mkl:269 case aubio_onset_mkl: 270 270 o->funcpointer = aubio_onsetdetection_mkl; 271 271 break; … … 281 281 switch(o->type) { 282 282 /* for both energy and hfc, only fftgrain->norm is required */ 283 case energy:284 break; 285 case hfc:283 case aubio_onset_energy: 284 break; 285 case aubio_onset_hfc: 286 286 break; 287 287 /* the other approaches will need some more memory spaces */ 288 case complexdomain:288 case aubio_onset_complex: 289 289 AUBIO_FREE(o->meas); 290 290 del_fvec(o->oldmag); … … 293 293 del_fvec(o->theta2); 294 294 break; 295 case phase:295 case aubio_onset_phase: 296 296 del_fvec(o->dev1); 297 297 del_fvec(o->theta1); … … 299 299 del_aubio_hist(o->histog); 300 300 break; 301 case specdiff:301 case aubio_onset_specdiff: 302 302 del_fvec(o->oldmag); 303 303 del_fvec(o->dev1); -
TabularUnified src/onsetdetection.h ¶
ra29ad46 r5cf415f 50 50 /** onsetdetection types */ 51 51 typedef enum { 52 energy,/**< energy based */53 54 hfc,/**< high frequency content */55 complexdomain,/**< complex domain */56 phase,/**< phase fast */57 kl, /**< Kullback Liebler (Hainsworth et al., Onset detection in musical audio signals) */58 mkl /**< modified Kullback Liebler (Hainsworth et al., Onset detection in musical audio signals) */52 aubio_onset_energy, /**< energy based */ 53 aubio_onset_specdiff, /**< spectral diff */ 54 aubio_onset_hfc, /**< high frequency content */ 55 aubio_onset_complex, /**< complex domain */ 56 aubio_onset_phase, /**< phase fast */ 57 aubio_onset_kl, /**< Kullback Liebler (Hainsworth et al., Onset detection in musical audio signals) */ 58 aubio_onset_mkl /**< modified Kullback Liebler (Hainsworth et al., Onset detection in musical audio signals) */ 59 59 } aubio_onsetdetection_type; 60 60
Note: See TracChangeset
for help on using the changeset viewer.