Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitchdetection.h

    r6d4ec49 rf44b111  
    1515   along with this program; if not, write to the Free Software
    1616   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    17    */
     17*/
    1818
    1919#ifndef PITCHAUTOTCORR_H
     
    2626/** \file
    2727
    28   Generic method for pitch detection
     28  Generic method for pitch detection 
    2929
    3030  This file creates the objects required for the computation of the selected
     
    3535/** pitch detection algorithm */
    3636typedef enum {
    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 */
     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 */
    4242} aubio_pitchdetection_type;
    4343
    4444/** pitch detection output mode */
    4545typedef enum {
    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) */
     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) */
    5050} aubio_pitchdetection_mode;
    5151
     
    5454
    5555/** execute pitch detection on an input signal frame
    56 
     56 
    5757  \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 
    6060*/
    6161smpl_t aubio_pitchdetection(aubio_pitchdetection_t * p, fvec_t * ibuf);
    6262
    6363/** change yin or yinfft tolerance threshold
    64 
     64 
    6565  default is 0.15 for yin and 0.85 for yinfft
    66 
     66 
    6767*/
    6868void aubio_pitchdetection_set_yinthresh(aubio_pitchdetection_t *p, smpl_t thres);
    6969
    7070/** deletion of the pitch detection object
    71 
     71 
    7272  \param p pitch detection object as returned by new_aubio_pitchdetection
    73 
     73 
    7474*/
    7575void del_aubio_pitchdetection(aubio_pitchdetection_t * p);
    7676
    7777/** 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 
    8181  \param channels number of channels to analyse
    82   \param samplerate sampling rate of the signal
     82  \param samplerate sampling rate of the signal 
    8383  \param type set pitch detection algorithm
    8484  \param mode set pitch units for output
    85 
     85 
    8686*/
    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);
     87aubio_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);
    9393
    9494#ifdef __cplusplus
     
    9696#endif
    9797
    98 #endif /*PITCHDETECTION_H*/
     98#endif /*PITCHDETECTION_H*/ 
Note: See TracChangeset for help on using the changeset viewer.