Changeset 7a04950


Ignore:
Timestamp:
May 10, 2005, 4:36:37 PM (20 years ago)
Author:
Paul Brossier <piem@altern.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:
d072c13
Parents:
603fca4
Message:

added pitchfcomb and pitchschmitt

Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    r603fca4 r7a04950  
    1818        pitchmcomb.h \
    1919        pitchyin.h \
     20        pitchschmitt.h \
     21        pitchfcomb.h \
    2022        filter.h
    2123
     
    5153        pitchyin.c \
    5254        pitchyin.h \
     55        pitchschmitt.c \
     56        pitchschmitt.h \
     57        pitchfcomb.c \
     58        pitchfcomb.h \
    5359        filter.c \
    5460        filter.h
  • src/aubio.h

    r603fca4 r7a04950  
    6767#include "tss.h"
    6868#include "resample.h"
    69 
    7069#include "peakpick.h"
    7170#include "biquad.h"
     
    7473#include "pitchmcomb.h"
    7574#include "pitchyin.h"
     75#include "pitchschmitt.h"
     76#include "pitchfcomb.h"
    7677
    7778#ifdef __cplusplus
  • src/pitchmcomb.c

    r603fca4 r7a04950  
    342342}
    343343
     344
     345void del_aubio_pitchmcomb (aubio_pitchmcomb_t *p) {
     346  uint_t i;
     347  del_fvec(p->newmag);
     348  del_fvec(p->newmag);
     349  del_fvec(p->newmag);
     350  AUBIO_FREE(p->peaks);
     351  for (i=0;i<p->ncand;i++) {
     352    AUBIO_FREE(p->candidates[i]);
     353  }
     354  AUBIO_FREE(p->candidates);
     355  AUBIO_FREE(p);
     356}
  • src/pitchmcomb.h

    r603fca4 r7a04950  
    3636uint_t aubio_pitch_cands(aubio_pitchmcomb_t * p, cvec_t * fftgrain, smpl_t * cands);
    3737aubio_pitchmcomb_t * new_aubio_pitchmcomb(uint_t size, uint_t channels);
     38void del_aubio_pitchmcomb(aubio_pitchmcomb_t *p);
    3839
    3940#ifdef __cplusplus
  • swig/aubio.i

    r603fca4 r7a04950  
    163163smpl_t aubio_pitchmcomb_detect(aubio_pitchmcomb_t * p, cvec_t * fftgrain);
    164164uint_t aubio_pitch_cands(aubio_pitchmcomb_t * p, cvec_t * fftgrain, smpl_t * cands);
     165void del_aubio_pitchmcomb (aubio_pitchmcomb_t *p);
    165166
    166167/* pitch yin */
     
    168169void aubio_pitchyin_getcum(fvec_t *yin);
    169170uint_t aubio_pitchyin_getpitch(fvec_t *yin);
     171
     172/* pitch schmitt */
     173aubio_pitchschmitt_t * new_aubio_pitchschmitt (uint_t size, uint_t samplerate);
     174smpl_t aubio_pitchschmitt_detect (aubio_pitchschmitt_t *p, fvec_t * input);
     175void del_aubio_pitchschmitt (aubio_pitchschmitt_t *p);
     176
     177/* pitch fcomb */
     178aubio_pitchfcomb_t * new_aubio_pitchfcomb (uint_t size, uint_t samplerate);
     179smpl_t aubio_pitchfcomb_detect (aubio_pitchfcomb_t *p, fvec_t * input);
     180void del_aubio_pitchfcomb (aubio_pitchfcomb_t *p);
    170181
    171182/* peakpicker */
Note: See TracChangeset for help on using the changeset viewer.