Ignore:
Timestamp:
Aug 9, 2005, 7:56:21 PM (19 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:
a29ad46
Parents:
28d8c4a
Message:

rename file_ to aubio_sndfile, protect aubio_pitdetection_{mode,type} enumerators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitchdetection.c

    r28d8c4a r5e9c68a  
    6262        p->bufsize = bufsize;
    6363        switch(p->type) {
    64                 case aubio_yin:
     64                case aubio_pitch_yin:
    6565                        p->buf      = new_fvec(bufsize,channels);
    6666                        p->yin      = new_fvec(bufsize/2,channels);
    6767                        p->callback = aubio_pitchdetection_yin;
    6868                        break;
    69                 case aubio_mcomb:
     69                case aubio_pitch_mcomb:
    7070                        p->pv       = new_aubio_pvoc(bufsize, hopsize, channels);
    7171                        p->fftgrain = new_cvec(bufsize, channels);
     
    7373                        p->callback = aubio_pitchdetection_mcomb;
    7474                        break;
    75                 case aubio_fcomb:
     75                case aubio_pitch_fcomb:
    7676                        p->buf      = new_fvec(bufsize,channels);
    7777                        p->fcomb    = new_aubio_pitchfcomb(bufsize,samplerate);
    7878                        p->callback = aubio_pitchdetection_fcomb;
    7979                        break;
    80                 case aubio_schmitt:
     80                case aubio_pitch_schmitt:
    8181                        p->buf      = new_fvec(bufsize,channels);
    8282                        p->schmitt  = new_aubio_pitchschmitt(bufsize,samplerate);
     
    9191void del_aubio_pitchdetection(aubio_pitchdetection_t * p) {
    9292        switch(p->type) {
    93                 case aubio_yin:
     93                case aubio_pitch_yin:
    9494                        del_fvec(p->yin);
    9595                        del_fvec(p->buf);
    9696                        break;
    97                 case aubio_mcomb:
     97                case aubio_pitch_mcomb:
    9898                        del_aubio_pvoc(p->pv);
    9999                        del_cvec(p->fftgrain);
    100100                        del_aubio_pitchmcomb(p->mcomb);
    101101                        break;
    102                 case aubio_schmitt:
     102                case aubio_pitch_schmitt:
    103103                        del_fvec(p->buf);
    104104                        del_aubio_pitchschmitt(p->schmitt);
    105105                        break;
    106                 case aubio_fcomb:
     106                case aubio_pitch_fcomb:
    107107                        del_fvec(p->buf);
    108108                        del_aubio_pitchfcomb(p->fcomb);
Note: See TracChangeset for help on using the changeset viewer.