Ignore:
Timestamp:
Oct 15, 2009, 6:54:23 PM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
515c7b2
Parents:
cd77c15
Message:

src/pitch: use a string to set pitch method, add a new function to set pitch unit, keep pitch enums private, update pitch methods where they are used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitchdetection.h

    rcd77c15 rfe163ad  
    3232
    3333*/
    34 
    35 /** pitch detection algorithm */
    36 typedef 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 */
    42 } aubio_pitchdetection_type;
    43 
    44 /** pitch detection output mode */
    45 typedef 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) */
    50 } aubio_pitchdetection_mode;
    5134
    5235/** pitch detection object */
     
    8568
    8669*/
    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 pitch_type,
    92     aubio_pitchdetection_mode pitch_mode);
     70aubio_pitchdetection_t *new_aubio_pitchdetection (char_t * pitch_mode,
     71    uint_t bufsize, uint_t hopsize, uint_t channels, uint_t samplerate);
     72
     73/** set the output unit of the pitch detection object */
     74uint_t aubio_pitchdetection_set_unit (aubio_pitchdetection_t *p, char_t * pitch_unit);
    9375
    9476#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.