Changeset 53d1497


Ignore:
Timestamp:
Dec 7, 2013, 8:55:37 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
846330f
Parents:
0aa5208
Message:

src/pitch/pitch.c: add aliases for freq (hertz, Hz, and f0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch.c

    r0aa5208 r53d1497  
    237237  if (strcmp (pitch_unit, "freq") == 0)
    238238    pitch_mode = aubio_pitchm_freq;
     239  else if (strcmp (pitch_unit, "hertz") == 0)
     240    pitch_mode = aubio_pitchm_freq;
     241  else if (strcmp (pitch_unit, "Hz") == 0)
     242    pitch_mode = aubio_pitchm_freq;
     243  else if (strcmp (pitch_unit, "f0") == 0)
     244    pitch_mode = aubio_pitchm_freq;
    239245  else if (strcmp (pitch_unit, "midi") == 0)
    240246    pitch_mode = aubio_pitchm_midi;
Note: See TracChangeset for help on using the changeset viewer.