- Timestamp:
- Sep 2, 2015, 12:14:34 PM (9 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:
- e06ac8f
- Parents:
- 0683ee2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitch/pitchyinfft.h
r0683ee2 ra82cedc 20 20 21 21 /** \file 22 22 23 23 Pitch detection using a spectral implementation of the YIN algorithm 24 24 25 25 This algorithm was derived from the YIN algorithm. In this implementation, a 26 26 Fourier transform is used to compute a tapered square difference function, 27 27 which allows spectral weighting. Because the difference function is tapered, 28 28 the selection of the period is simplified. 29 29 30 30 Paul Brossier, [Automatic annotation of musical audio for interactive 31 31 systems](http://aubio.org/phd/), Chapter 3, Pitch Analysis, PhD thesis, … … 46 46 typedef struct _aubio_pitchyinfft_t aubio_pitchyinfft_t; 47 47 48 /** execute pitch detection on an input buffer 49 48 /** execute pitch detection on an input buffer 49 50 50 \param o pitch detection object as returned by new_aubio_pitchyinfft 51 51 \param samples_in input signal vector (length as specified at creation time) 52 52 \param cands_out pitch period candidates, in samples 53 53 54 54 */ 55 55 void aubio_pitchyinfft_do (aubio_pitchyinfft_t * o, fvec_t * samples_in, fvec_t * cands_out); 56 56 /** creation of the pitch detection object 57 57 58 58 \param samplerate samplerate of the input signal 59 \param buf_size size of the input buffer to analyse 60 59 \param buf_size size of the input buffer to analyse 60 61 61 */ 62 62 aubio_pitchyinfft_t *new_aubio_pitchyinfft (uint_t samplerate, uint_t buf_size); 63 63 /** deletion of the pitch detection object 64 64 65 65 \param o pitch detection object as returned by new_aubio_pitchyinfft() 66 66 67 67 */ 68 68 void del_aubio_pitchyinfft (aubio_pitchyinfft_t * o); 69 69 70 /** get tolerance parameter for YIN algorithm 71 72 \param o YIN pitch detection object 70 /** get tolerance parameter for YIN algorithm 71 72 \param o YIN pitch detection object 73 73 74 74 \return tolerance parameter for minima selection [default 0.15] … … 77 77 smpl_t aubio_pitchyinfft_get_tolerance (aubio_pitchyinfft_t * o); 78 78 79 /** set tolerance parameter for YIN algorithm 80 81 \param o YIN pitch detection object 79 /** set tolerance parameter for YIN algorithm 80 81 \param o YIN pitch detection object 82 82 \param tol tolerance parameter for minima selection [default 0.15] 83 83
Note: See TracChangeset
for help on using the changeset viewer.