Changeset 6d4ec49 for src/pitchdetection.h
- Timestamp:
- Oct 30, 2007, 3:01:30 AM (16 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:
- 6427e6d, 82c588a
- Parents:
- 71d9f52
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/pitchdetection.h
r71d9f52 r6d4ec49 15 15 along with this program; if not, write to the Free Software 16 16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 */17 */ 18 18 19 19 #ifndef PITCHAUTOTCORR_H … … 26 26 /** \file 27 27 28 Generic method for pitch detection 28 Generic method for pitch detection 29 29 30 30 This file creates the objects required for the computation of the selected … … 35 35 /** pitch detection algorithm */ 36 36 typedef enum { 37 38 39 40 41 37 aubio_pitch_yin, /**< YIN algorithm */ 38 aubio_pitch_mcomb, /**< Multi-comb filter */ 39 aubio_pitch_schmitt, /**< Schmitt trigger */ 40 aubio_pitch_fcomb, /**< Fast comb filter */ 41 aubio_pitch_yinfft /**< Spectral YIN */ 42 42 } aubio_pitchdetection_type; 43 43 44 44 /** pitch detection output mode */ 45 45 typedef enum { 46 47 48 49 46 aubio_pitchm_freq, /**< Frequency (Hz) */ 47 aubio_pitchm_midi, /**< MIDI note (0.,127) */ 48 aubio_pitchm_cent, /**< Cent */ 49 aubio_pitchm_bin /**< Frequency bin (0,bufsize) */ 50 50 } aubio_pitchdetection_mode; 51 51 … … 54 54 55 55 /** execute pitch detection on an input signal frame 56 56 57 57 \param p pitch detection object as returned by new_aubio_pitchdetection 58 \param ibuf input signal of length hopsize 59 58 \param ibuf input signal of length hopsize 59 60 60 */ 61 61 smpl_t aubio_pitchdetection(aubio_pitchdetection_t * p, fvec_t * ibuf); 62 62 63 63 /** change yin or yinfft tolerance threshold 64 64 65 65 default is 0.15 for yin and 0.85 for yinfft 66 66 67 67 */ 68 68 void aubio_pitchdetection_set_yinthresh(aubio_pitchdetection_t *p, smpl_t thres); 69 69 70 70 /** deletion of the pitch detection object 71 71 72 72 \param p pitch detection object as returned by new_aubio_pitchdetection 73 73 74 74 */ 75 75 void del_aubio_pitchdetection(aubio_pitchdetection_t * p); 76 76 77 77 /** creation of the pitch detection object 78 79 \param bufsize size of the input buffer to analyse 80 \param hopsize step size between two consecutive analysis instant 78 79 \param bufsize size of the input buffer to analyse 80 \param hopsize step size between two consecutive analysis instant 81 81 \param channels number of channels to analyse 82 \param samplerate sampling rate of the signal 82 \param samplerate sampling rate of the signal 83 83 \param type set pitch detection algorithm 84 84 \param mode set pitch units for output 85 85 86 86 */ 87 aubio_pitchdetection_t * new_aubio_pitchdetection(uint_t bufsize, 88 uint_t hopsize,89 90 91 92 87 aubio_pitchdetection_t * new_aubio_pitchdetection(uint_t bufsize, 88 uint_t hopsize, 89 uint_t channels, 90 uint_t samplerate, 91 aubio_pitchdetection_type type, 92 aubio_pitchdetection_mode mode); 93 93 94 94 #ifdef __cplusplus … … 96 96 #endif 97 97 98 #endif /*PITCHDETECTION_H*/ 98 #endif /*PITCHDETECTION_H*/
Note: See TracChangeset
for help on using the changeset viewer.