Changeset 21234ee for src/spectral/specdesc.h
- Timestamp:
- Dec 18, 2013, 8:07:27 AM (10 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:
- 6465d7f
- Parents:
- 1573b16 (diff), c3c6305 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/specdesc.h
r1573b16 r21234ee 1 1 /* 2 Copyright (C) 2003-20 09Paul Brossier <piem@aubio.org>2 Copyright (C) 2003-2013 Paul Brossier <piem@aubio.org> 3 3 4 4 This file is part of aubio. … … 20 20 21 21 /** \file 22 22 23 23 Spectral description functions 24 24 25 25 All of the following spectral description functions take as arguments the FFT 26 26 of a windowed signal (as created with aubio_pvoc). They output one smpl_t per 27 27 buffer (stored in a vector of size [1]). 28 28 29 29 \section specdesc Spectral description functions 30 30 … … 35 35 These functions are designed to raise at notes attacks in music signals. 36 36 37 \b \p energy : Energy based onset detection function 38 37 \b \p energy : Energy based onset detection function 38 39 39 This function calculates the local energy of the input spectral frame. 40 40 41 41 \b \p hfc : High Frequency Content onset detection function 42 42 43 43 This method computes the High Frequency Content (HFC) of the input spectral 44 44 frame. The resulting function is efficient at detecting percussive onsets. … … 47 47 Musical Signal. PhD dissertation, University of Bristol, UK, 1996. 48 48 49 \b \p complex : Complex Domain Method onset detection function 50 49 \b \p complex : Complex Domain Method onset detection function 50 51 51 Christopher Duxbury, Mike E. Davies, and Mark B. Sandler. Complex domain 52 52 onset detection for musical signals. In Proceedings of the Digital Audio 53 53 Effects Conference, DAFx-03, pages 90-93, London, UK, 2003. 54 54 55 \b \p phase : Phase Based Method onset detection function 55 \b \p phase : Phase Based Method onset detection function 56 56 57 57 Juan-Pablo Bello, Mike P. Davies, and Mark B. Sandler. Phase-based note onset … … 60 60 Hong-Kong, 2003. 61 61 62 \b \p specdiff : Spectral difference method onset detection function 62 \b \p specdiff : Spectral difference method onset detection function 63 63 64 64 Jonhatan Foote and Shingo Uchihashi. The beat spectrum: a new approach to … … 66 66 (ICME 2001), pages 881884, Tokyo, Japan, August 2001. 67 67 68 \b \p kl : Kullback-Liebler onset detection function 69 68 \b \p kl : Kullback-Liebler onset detection function 69 70 70 Stephen Hainsworth and Malcom Macleod. Onset detection in music audio 71 71 signals. In Proceedings of the International Computer Music Conference 72 72 (ICMC), Singapore, 2003. 73 73 74 \b \p mkl : Modified Kullback-Liebler onset detection function 74 \b \p mkl : Modified Kullback-Liebler onset detection function 75 75 76 76 Paul Brossier, ``Automatic annotation of musical audio for interactive … … 78 78 music, Queen Mary University of London, London, UK, 2006. 79 79 80 \b \p specflux : Spectral Flux 80 \b \p specflux : Spectral Flux 81 81 82 82 Simon Dixon, Onset Detection Revisited, in ``Proceedings of the 9th 83 83 International Conference on Digital Audio Effects'' (DAFx-06), Montreal, 84 Canada, 2006. 84 Canada, 2006. 85 85 86 86 \subsection shapedesc Spectral shape descriptors … … 93 93 href="http://www.ircam.fr/anasyn/peeters/ARTICLES/Peeters_2003_cuidadoaudiofeatures.pdf">pdf</a>) 94 94 95 \b \p centroid : Spectral centroid 95 \b \p centroid : Spectral centroid 96 96 97 97 The spectral centroid represents the barycenter of the spectrum. 98 98 99 99 \e Note: This function returns the result in bin. To get the spectral 100 centroid in Hz, aubio_bintofreq() should be used. 100 centroid in Hz, aubio_bintofreq() should be used. 101 101 102 \b \p spread : Spectral spread 102 \b \p spread : Spectral spread 103 103 104 104 The spectral spread is the variance of the spectral distribution around its … … 126 126 Wikipedia. 127 127 128 \b \p slope : Spectral slope 128 \b \p slope : Spectral slope 129 129 130 130 The spectral slope represents decreasing rate of the spectral amplitude, … … 133 133 \b \p decrease : Spectral decrease 134 134 135 The spectral decrease is another representation of the decreasing rate, 135 The spectral decrease is another representation of the decreasing rate, 136 136 based on perceptual criteria. 137 137 … … 146 146 147 147 148 #ifndef ONSETDETECTION_H149 #define ONSETDETECTION_H148 #ifndef _AUBIO_SPECDESC_H 149 #define _AUBIO_SPECDESC_H 150 150 151 151 #ifdef __cplusplus … … 156 156 typedef struct _aubio_specdesc_t aubio_specdesc_t; 157 157 158 /** execute spectral description function on a spectral frame 158 /** execute spectral description function on a spectral frame 159 159 160 160 Generic function to compute spectral detescription. 161 161 162 162 \param o spectral description object as returned by new_aubio_specdesc() 163 163 \param fftgrain input signal spectrum as computed by aubio_pvoc_do … … 168 168 fvec_t * desc); 169 169 170 /** creation of a spectral description object 170 /** creation of a spectral description object 171 171 172 172 \param method spectral description method … … 181 181 aubio_specdesc_t *new_aubio_specdesc (char_t * method, uint_t buf_size); 182 182 183 /** deletion of a spectral descriptor 183 /** deletion of a spectral descriptor 184 184 185 185 \param o spectral descriptor object as returned by new_aubio_specdesc() … … 192 192 #endif 193 193 194 #endif /* ONSETDETECTION_H */194 #endif /* _AUBIO_SPECDESC_H */
Note: See TracChangeset
for help on using the changeset viewer.