Changeset 259c33b


Ignore:
Timestamp:
Dec 29, 2021, 5:51:57 PM (3 weeks ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
dd4e5d5
Parents:
f5699b9
git-author:
Paul Brossier <piem@piem.org> (01/08/19 17:05:44)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:57)
Message:

[pitch] crepe only supports samplerate==16000 and bufsize==1024 for now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch.c

    rf5699b9 r259c33b  
    228228      break;
    229229    case aubio_pitcht_crepe:
     230      // TODO add resampling and blocking
     231      if (samplerate != 16000) {
     232        AUBIO_ERROR("pitch: crepe samplerate must be 16000Hz, got %d\n",
     233            samplerate);
     234        goto beach;
     235      }
     236      if (bufsize != 1024) {
     237        AUBIO_ERROR("pitch: crepe buffer size must be 1024, got %d\n",
     238            bufsize);
     239        goto beach;
     240      }
    230241      p->buf = new_fvec (bufsize);
    231242      p->p_object = new_aubio_pitch_crepe();
Note: See TracChangeset for help on using the changeset viewer.