Changeset 804c8eb for tests/src


Ignore:
Timestamp:
Nov 26, 2018, 11:48:35 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
099776d
Parents:
88a4d8a
Message:

[tests] increase tss coverage

Location:
tests/src/spectral
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/src/spectral/test-dct.c

    r88a4d8a r804c8eb  
    1010  // create dct object
    1111  aubio_dct_t * dct = new_aubio_dct(win_s);
     12  aubio_dct_t * tmp;
     13
     14  if (new_aubio_dct(0)) return 1;
    1215
    1316  fvec_t * in = new_fvec (win_s); // input buffer
    1417  fvec_t * dctout = new_fvec (win_s); // output buffer
    1518  fvec_t * out = new_fvec (win_s); // input buffer
     19
     20  if ((tmp = new_aubio_dct(1)) == 0) return 1;
     21  aubio_dct_do(tmp, dctout, out);
     22  aubio_dct_rdo(tmp, dctout, out);
     23  del_aubio_dct(tmp);
    1624
    1725  if (!dct || !in || !dctout) {
  • tests/src/spectral/test-tss.c

    r88a4d8a r804c8eb  
    3535  }
    3636
     37  aubio_tss_set_alpha(tss, 4.);
     38  aubio_tss_set_beta(tss, 3.);
     39  aubio_tss_set_threshold(tss, 3.);
     40
    3741  del_aubio_pvoc(pv);
    3842  del_aubio_pvoc(pvt);
Note: See TracChangeset for help on using the changeset viewer.