Changeset 1b88289
- Timestamp:
- Oct 7, 2009, 6:28:53 PM (15 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:
- 1294862
- Parents:
- 10a5413
- Location:
- src/onset
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/onset/onsetdetection.c
r10a5413 r1b88289 26 26 #include "onset/onsetdetection.h" 27 27 28 /** Energy based onset detection function 29 30 This function calculates the local energy of the input spectral frame. 31 32 \param o onset detection object as returned by new_aubio_onsetdetection() 33 \param fftgrain input spectral frame 34 \param onset output onset detection function 35 36 */ 37 void aubio_onsetdetection_energy(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 38 /** High Frequency Content onset detection function 39 40 This method computes the High Frequency Content (HFC) of the input spectral 41 frame. The resulting function is efficient at detecting percussive onsets. 42 43 Paul Masri. Computer modeling of Sound for Transformation and Synthesis of 44 Musical Signal. PhD dissertation, University of Bristol, UK, 1996. 45 46 \param o onset detection object as returned by new_aubio_onsetdetection() 47 \param fftgrain input spectral frame 48 \param onset output onset detection function 49 50 */ 51 void aubio_onsetdetection_hfc(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 52 /** Complex Domain Method onset detection function 53 54 Christopher Duxbury, Mike E. Davies, and Mark B. Sandler. Complex domain 55 onset detection for musical signals. In Proceedings of the Digital Audio 56 Effects Conference, DAFx-03, pages 90-93, London, UK, 2003. 57 58 \param o onset detection object as returned by new_aubio_onsetdetection() 59 \param fftgrain input spectral frame 60 \param onset output onset detection function 61 62 */ 63 void aubio_onsetdetection_complex(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 64 /** Phase Based Method onset detection function 65 66 Juan-Pablo Bello, Mike P. Davies, and Mark B. Sandler. Phase-based note onset 67 detection for music signals. In Proceedings of the IEEE International 68 Conference on Acoustics Speech and Signal Processing, pages 441444, 69 Hong-Kong, 2003. 70 71 \param o onset detection object as returned by new_aubio_onsetdetection() 72 \param fftgrain input spectral frame 73 \param onset output onset detection function 74 75 */ 76 void aubio_onsetdetection_phase(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 77 /** Spectral difference method onset detection function 78 79 Jonhatan Foote and Shingo Uchihashi. The beat spectrum: a new approach to 80 rhythm analysis. In IEEE International Conference on Multimedia and Expo 81 (ICME 2001), pages 881884, Tokyo, Japan, August 2001. 82 83 \param o onset detection object as returned by new_aubio_onsetdetection() 84 \param fftgrain input spectral frame 85 \param onset output onset detection function 86 87 */ 88 void aubio_onsetdetection_specdiff(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 89 /** Kullback-Liebler onset detection function 90 91 Stephen Hainsworth and Malcom Macleod. Onset detection in music audio 92 signals. In Proceedings of the International Computer Music Conference 93 (ICMC), Singapore, 2003. 94 95 \param o onset detection object as returned by new_aubio_onsetdetection() 96 \param fftgrain input spectral frame 97 \param onset output onset detection function 98 99 */ 100 void aubio_onsetdetection_kl(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 101 /** Modified Kullback-Liebler onset detection function 102 103 Paul Brossier, ``Automatic annotation of musical audio for interactive 104 systems'', Chapter 2, Temporal segmentation, PhD thesis, Centre for Digital 105 music, Queen Mary University of London, London, UK, 2006. 106 107 \param o onset detection object as returned by new_aubio_onsetdetection() 108 \param fftgrain input spectral frame 109 \param onset output onset detection function 110 111 */ 112 void aubio_onsetdetection_mkl(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 113 /** Spectral Flux 114 115 Simon Dixon, Onset Detection Revisited, in ``Proceedings of the 9th 116 International Conference on Digital Audio Effects'' (DAFx-06), Montreal, 117 Canada, 2006. 118 119 \param o onset detection object as returned by new_aubio_onsetdetection() 120 \param fftgrain input spectral frame 121 \param onset output onset detection function 122 123 */ 124 void aubio_onsetdetection_specflux(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 28 125 29 126 /** structure to store object state */ -
src/onset/onsetdetection.h
r10a5413 r1b88289 53 53 /** onsetdetection structure */ 54 54 typedef struct _aubio_onsetdetection_t aubio_onsetdetection_t; 55 /** Energy based onset detection function56 57 This function calculates the local energy of the input spectral frame.58 59 \param o onset detection object as returned by new_aubio_onsetdetection()60 \param fftgrain input spectral frame61 \param onset output onset detection function62 63 */64 void aubio_onsetdetection_energy(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);65 /** High Frequency Content onset detection function66 67 This method computes the High Frequency Content (HFC) of the input spectral68 frame. The resulting function is efficient at detecting percussive onsets.69 70 Paul Masri. Computer modeling of Sound for Transformation and Synthesis of71 Musical Signal. PhD dissertation, University of Bristol, UK, 1996.72 73 \param o onset detection object as returned by new_aubio_onsetdetection()74 \param fftgrain input spectral frame75 \param onset output onset detection function76 77 */78 void aubio_onsetdetection_hfc(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);79 /** Complex Domain Method onset detection function80 81 Christopher Duxbury, Mike E. Davies, and Mark B. Sandler. Complex domain82 onset detection for musical signals. In Proceedings of the Digital Audio83 Effects Conference, DAFx-03, pages 90-93, London, UK, 2003.84 85 \param o onset detection object as returned by new_aubio_onsetdetection()86 \param fftgrain input spectral frame87 \param onset output onset detection function88 89 */90 void aubio_onsetdetection_complex(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);91 /** Phase Based Method onset detection function92 93 Juan-Pablo Bello, Mike P. Davies, and Mark B. Sandler. Phase-based note onset94 detection for music signals. In Proceedings of the IEEE International95 Conference on Acoustics Speech and Signal Processing, pages 441444,96 Hong-Kong, 2003.97 98 \param o onset detection object as returned by new_aubio_onsetdetection()99 \param fftgrain input spectral frame100 \param onset output onset detection function101 102 */103 void aubio_onsetdetection_phase(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);104 /** Spectral difference method onset detection function105 106 Jonhatan Foote and Shingo Uchihashi. The beat spectrum: a new approach to107 rhythm analysis. In IEEE International Conference on Multimedia and Expo108 (ICME 2001), pages 881884, Tokyo, Japan, August 2001.109 110 \param o onset detection object as returned by new_aubio_onsetdetection()111 \param fftgrain input spectral frame112 \param onset output onset detection function113 114 */115 void aubio_onsetdetection_specdiff(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);116 /** Kullback-Liebler onset detection function117 118 Stephen Hainsworth and Malcom Macleod. Onset detection in music audio119 signals. In Proceedings of the International Computer Music Conference120 (ICMC), Singapore, 2003.121 122 \param o onset detection object as returned by new_aubio_onsetdetection()123 \param fftgrain input spectral frame124 \param onset output onset detection function125 126 */127 void aubio_onsetdetection_kl(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);128 /** Modified Kullback-Liebler onset detection function129 130 Paul Brossier, ``Automatic annotation of musical audio for interactive131 systems'', Chapter 2, Temporal segmentation, PhD thesis, Centre for Digital132 music, Queen Mary University of London, London, UK, 2006.133 134 \param o onset detection object as returned by new_aubio_onsetdetection()135 \param fftgrain input spectral frame136 \param onset output onset detection function137 138 */139 void aubio_onsetdetection_mkl(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);140 /** Spectral Flux141 142 Simon Dixon, Onset Detection Revisited, in ``Proceedings of the 9th143 International Conference on Digital Audio Effects'' (DAFx-06), Montreal,144 Canada, 2006.145 146 \param o onset detection object as returned by new_aubio_onsetdetection()147 \param fftgrain input spectral frame148 \param onset output onset detection function149 150 */151 void aubio_onsetdetection_specflux(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset);152 55 /** execute onset detection function on a spectral frame 153 56
Note: See TracChangeset
for help on using the changeset viewer.