- Timestamp:
- Mar 3, 2013, 4:44:18 AM (12 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:
- b173ca1
- Parents:
- f72364d
- Location:
- src/pitch
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitch.h
rf72364d r69b11d8 32 32 This file creates the objects required for the computation of the selected 33 33 pitch detection algorithm and output the results, in midi note or Hz. 34 35 \example pitch/test-pitch.c 34 36 35 37 */ -
src/pitch/pitchfcomb.h
rf72364d r69b11d8 28 28 This file was derived from the tuneit project, written by Mario Lang to 29 29 detect the fundamental frequency of a sound. 30 31 see http://delysid.org/tuneit.html 30 31 See http://delysid.org/tuneit.html 32 33 \example pitch/test-pitchfcomb.c 32 34 33 35 */ … … 43 45 typedef struct _aubio_pitchfcomb_t aubio_pitchfcomb_t; 44 46 45 /** execute pitch detection on an input buffer 46 47 /** execute pitch detection on an input buffer 48 47 49 \param p pitch detection object as returned by new_aubio_pitchfcomb 48 \param input input signal window (length as specified at creation time) 50 \param input input signal window (length as specified at creation time) 49 51 \param output pitch candidates in bins 50 52 51 53 */ 52 54 void aubio_pitchfcomb_do (aubio_pitchfcomb_t * p, fvec_t * input, … … 54 56 55 57 /** creation of the pitch detection object 56 57 \param buf_size size of the input buffer to analyse 58 \param hop_size step size between two consecutive analysis instant 59 58 59 \param buf_size size of the input buffer to analyse 60 \param hop_size step size between two consecutive analysis instant 61 60 62 */ 61 63 aubio_pitchfcomb_t *new_aubio_pitchfcomb (uint_t buf_size, uint_t hop_size); 62 64 63 65 /** deletion of the pitch detection object 64 66 65 67 \param p pitch detection object as returned by new_aubio_pitchfcomb 66 68 67 69 */ 68 70 void del_aubio_pitchfcomb (aubio_pitchfcomb_t * p); -
src/pitch/pitchmcomb.h
rf72364d r69b11d8 24 24 25 25 This fundamental frequency estimation algorithm implements spectral 26 flattening, multi-comb filtering and peak histogramming. 26 flattening, multi-comb filtering and peak histogramming. 27 27 28 28 This method was designed by Juan P. Bello and described in: … … 31 31 Music''. PhD thesis, Centre for Digital Music, Queen Mary University of 32 32 London, London, UK, 2003. 33 34 \example pitch/test-pitchmcomb.c 33 35 34 36 */ … … 45 47 46 48 /** execute pitch detection on an input spectral frame 47 49 48 50 \param p pitch detection object as returned by new_aubio_pitchmcomb 49 \param fftgrain input signal spectrum as computed by aubio_pvoc_do 50 51 \param in_fftgrain input signal spectrum as computed by aubio_pvoc_do 52 \param out_cands pitch candidate frequenciess, in bins 53 51 54 */ 52 void aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, cvec_t * fftgrain,53 fvec_t * out put);55 void aubio_pitchmcomb_do (aubio_pitchmcomb_t * p, cvec_t * in_fftgrain, 56 fvec_t * out_cands); 54 57 55 58 /** creation of the pitch detection object 56 57 \param buf_size size of the input buffer to analyse 58 \param hop_size step size between two consecutive analysis instant 59 \param samplerate sampling rate of the signal 60 59 60 \param buf_size size of the input buffer to analyse 61 \param hop_size step size between two consecutive analysis instant 62 61 63 */ 62 64 aubio_pitchmcomb_t *new_aubio_pitchmcomb (uint_t buf_size, uint_t hop_size); 63 65 64 66 /** deletion of the pitch detection object 65 67 66 68 \param p pitch detection object as returned by new_aubio_pitchfcomb 67 69 68 70 */ 69 71 void del_aubio_pitchmcomb (aubio_pitchmcomb_t * p); … … 73 75 #endif 74 76 75 #endif /*PITCHMCOMB_H*/77 #endif /* PITCHMCOMB_H */ -
src/pitch/pitchschmitt.h
rf72364d r69b11d8 19 19 */ 20 20 21 /** \file 21 /** \file 22 22 23 Pitch detection using a Schmitt trigger 24 23 Pitch detection using a Schmitt trigger 24 25 25 This pitch extraction method implements a Schmitt trigger to estimate the 26 26 period of a signal. … … 28 28 This file was derived from the tuneit project, written by Mario Lang to 29 29 detect the fundamental frequency of a sound. 30 31 see http://delysid.org/tuneit.html 30 31 See http://delysid.org/tuneit.html 32 33 \example pitch/test-pitchschmitt.c 32 34 33 35 */ … … 43 45 typedef struct _aubio_pitchschmitt_t aubio_pitchschmitt_t; 44 46 45 /** execute pitch detection on an input buffer 46 47 \param p pitch detection object as returned by new_aubio_pitchschmitt 48 \param input input signal window (length as specified at creation time)49 \param output pitch period estimates, in samples50 47 /** execute pitch detection on an input buffer 48 49 \param p pitch detection object as returned by new_aubio_pitchschmitt 50 \param samples_in input signal vector (length as specified at creation time) 51 \param cands_out pitch period estimates, in samples 52 51 53 */ 52 void aubio_pitchschmitt_do (aubio_pitchschmitt_t * p, fvec_t * in,53 fvec_t * out);54 void aubio_pitchschmitt_do (aubio_pitchschmitt_t * p, fvec_t * samples_in, 55 fvec_t * cands_out); 54 56 55 57 /** creation of the pitch detection object 56 57 \param buf_size size of the input buffer to analyse 58 58 59 \param buf_size size of the input buffer to analyse 60 59 61 */ 60 62 aubio_pitchschmitt_t *new_aubio_pitchschmitt (uint_t buf_size); 61 63 62 64 /** deletion of the pitch detection object 63 64 \param p pitch detection object as returned by new_aubio_pitchschmitt 65 65 66 \param p pitch detection object as returned by new_aubio_pitchschmitt 67 66 68 */ 67 69 void del_aubio_pitchschmitt (aubio_pitchschmitt_t * p); -
src/pitch/pitchyin.h
rf72364d r69b11d8 19 19 */ 20 20 21 /** \file 22 21 /** \file 22 23 23 Pitch detection using the YIN algorithm 24 24 25 25 This algorithm was developped by A. de Cheveigne and H. Kawahara and 26 26 published in: 27 27 28 28 De Cheveigné, A., Kawahara, H. (2002) "YIN, a fundamental frequency 29 estimator for speech and music", J. Acoust. Soc. Am. 111, 1917-1930. 30 29 estimator for speech and music", J. Acoust. Soc. Am. 111, 1917-1930. 30 31 31 see http://recherche.ircam.fr/equipes/pcm/pub/people/cheveign.html 32 32 … … 44 44 45 45 /** creation of the pitch detection object 46 47 \param buf_size size of the input buffer to analyse 48 46 47 \param buf_size size of the input buffer to analyse 48 49 49 */ 50 50 aubio_pitchyin_t *new_aubio_pitchyin (uint_t buf_size); 51 51 52 52 /** deletion of the pitch detection object 53 54 \param ppitch detection object as returned by new_aubio_pitchyin()55 53 54 \param o pitch detection object as returned by new_aubio_pitchyin() 55 56 56 */ 57 57 void del_aubio_pitchyin (aubio_pitchyin_t * o); 58 58 59 /** execute pitch detection on an input buffer60 61 \param ppitch detection object as returned by new_aubio_pitchyin()62 \param input input signal window (length as specified at creation time)63 \param tol tolerance parameter for minima selection [default 0.85]64 59 /** execute pitch detection an input buffer 60 61 \param o pitch detection object as returned by new_aubio_pitchyin() 62 \param samples_in input signal vector (length as specified at creation time) 63 \param cands_out pitch period candidates, in samples 64 65 65 */ 66 void aubio_pitchyin_do (aubio_pitchyin_t * o, fvec_t * in, fvec_t *out);66 void aubio_pitchyin_do (aubio_pitchyin_t * o, fvec_t * samples_in, fvec_t * cands_out); 67 67 68 68 69 /** set tolerance parameter for YIN algorithm 70 71 \param o YIN pitch detection object 69 /** set tolerance parameter for YIN algorithm 70 71 \param o YIN pitch detection object 72 72 \param tol tolerance parameter for minima selection [default 0.15] 73 73 … … 75 75 uint_t aubio_pitchyin_set_tolerance (aubio_pitchyin_t * o, smpl_t tol); 76 76 77 /** get tolerance parameter for YIN algorithm 78 79 \param o YIN pitch detection object 77 /** get tolerance parameter for YIN algorithm 78 79 \param o YIN pitch detection object 80 80 \return tolerance parameter for minima selection [default 0.15] 81 81 … … 87 87 #endif 88 88 89 #endif /*PITCHYIN_H*/ 89 #endif /*PITCHYIN_H*/ -
src/pitch/pitchyinfft.h
rf72364d r69b11d8 46 46 /** execute pitch detection on an input buffer 47 47 48 \param ppitch detection object as returned by new_aubio_pitchyinfft49 \param input input signal window (length as specified at creation time)50 \param output pitch period candidates, in samples48 \param o pitch detection object as returned by new_aubio_pitchyinfft 49 \param samples_in input signal vector (length as specified at creation time) 50 \param cands_out pitch period candidates, in samples 51 51 52 52 */ 53 void aubio_pitchyinfft_do (aubio_pitchyinfft_t * p, fvec_t * in, fvec_t *out);53 void aubio_pitchyinfft_do (aubio_pitchyinfft_t * o, fvec_t * samples_in, fvec_t * cands_out); 54 54 /** creation of the pitch detection object 55 55 … … 60 60 /** deletion of the pitch detection object 61 61 62 \param ppitch detection object as returned by new_aubio_pitchyinfft()62 \param o pitch detection object as returned by new_aubio_pitchyinfft() 63 63 64 64 */ 65 void del_aubio_pitchyinfft (aubio_pitchyinfft_t * p);65 void del_aubio_pitchyinfft (aubio_pitchyinfft_t * o); 66 66 67 67 /** get tolerance parameter for YIN algorithm … … 72 72 73 73 */ 74 smpl_t aubio_pitchyinfft_get_tolerance (aubio_pitchyinfft_t * p);74 smpl_t aubio_pitchyinfft_get_tolerance (aubio_pitchyinfft_t * o); 75 75 76 76 /** set tolerance parameter for YIN algorithm … … 80 80 81 81 */ 82 uint_t aubio_pitchyinfft_set_tolerance (aubio_pitchyinfft_t * p, smpl_t tol);82 uint_t aubio_pitchyinfft_set_tolerance (aubio_pitchyinfft_t * o, smpl_t tol); 83 83 84 84 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.