Changeset 25f280f for src


Ignore:
Timestamp:
Aug 6, 2018, 2:03:48 PM (16 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
99c7aa2
Parents:
e8fcc9a
Message:

src/notes/notes.c: bail out if pitch creation failed (see #188)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/notes/notes.c

    re8fcc9a r25f280f  
    8484
    8585  o->pitch = new_aubio_pitch (pitch_method, o->pitch_buf_size, o->hop_size, o->samplerate);
     86  if (o->pitch == NULL) goto fail;
    8687  if (o->pitch_tolerance != 0.) aubio_pitch_set_tolerance (o->pitch, o->pitch_tolerance);
    8788  aubio_pitch_set_unit (o->pitch, "midi");
Note: See TracChangeset for help on using the changeset viewer.