Changes in / [58fe197:230101d]


Ignore:
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • .appveyor.yml

    r58fe197 r230101d  
    4343  - "%PYTHONDIR%\\python.exe -c \"import struct; print(struct.calcsize('P') * 8)\""
    4444
     45  - "%PYTHONDIR%\\python.exe -m pip install --disable-pip-version-check --user --upgrade pip"
     46  - "%PYTHONDIR%\\python.exe -m pip install --upgrade setuptools"
     47
    4548  # We need wheel installed to build wheels
    4649  - "%PYTHONDIR%\\python.exe -m pip install wheel"
    4750
    4851  - "SET PATH=%PATH_EXTRAS%;%PYTHONDIR%;%PYTHONDIR%\\Scripts;%PATH%"
    49 
    50   - "pip install --disable-pip-version-check --user --upgrade pip"
    51   - "pip install --upgrade setuptools"
    5252
    5353before_build:
     
    5656build_script:
    5757  # build python module without using libaubio
    58   - "pip install -r requirements.txt"
     58  - "%PYTHONDIR%\\python.exe -m pip install -r requirements.txt"
    5959  - "python setup.py build"
    60   - "pip install ."
     60  - "%PYTHONDIR%\\python.exe -m pip install ."
    6161  - "python python\\demos\\demo_create_test_sounds.py"
    6262  - "nose2 --verbose"
  • src/io/source_wavread.c

    r58fe197 r230101d  
    196196  }
    197197
    198   if ( sr == 0 ) {
    199     AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be 0)\n", s->path);
     198  if ( (sint_t)sr <= 0 ) {
     199    AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be <= 0)\n", s->path);
    200200    goto beach;
    201201  }
  • src/notes/notes.c

    r58fe197 r230101d  
    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");
  • src/pitch/pitchyinfft.c

    r58fe197 r230101d  
    4545   160.,   200.,   250.,   315.,   400.,   500.,   630.,   800.,  1000.,  1250.,
    4646  1600.,  2000.,  2500.,  3150.,  4000.,  5000.,  6300.,  8000.,  9000., 10000.,
    47  12500., 15000., 20000., 25100
     47 12500., 15000., 20000., 25100., -1.
    4848};
    4949
     
    7373  for (i = 0; i < p->weight->length; i++) {
    7474    freq = (smpl_t) i / (smpl_t) bufsize *(smpl_t) samplerate;
    75     while (freq > freqs[j]) {
     75    while (freq > freqs[j] && freqs[j] > 0) {
     76      //AUBIO_DBG("freq %3.5f > %3.5f \tsamplerate %d (Hz) \t"
     77      //    "(weight length %d, bufsize %d) %d %d\n", freq, freqs[j],
     78      //    samplerate, p->weight->length, bufsize, i, j);
    7679      j += 1;
    7780    }
Note: See TracChangeset for help on using the changeset viewer.