Changeset 18278232


Ignore:
Timestamp:
Jan 8, 2019, 5:05:44 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe_org
Children:
ba740ea
Parents:
84f369c
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch.c

    r84f369c r18278232  
    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.