Changeset b2e706f for tests


Ignore:
Timestamp:
Oct 22, 2009, 3:23:04 AM (15 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, pitchshift, sampler, timestretch, yinfft+
Children:
21f0655
Parents:
fc0262f
Message:

tests/src/test-mfcc.c: simplify using cvec_set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/test-mfcc.c

    rfc0262f rb2e706f  
    1212  fvec_t *out = new_fvec (n_coefs, channels);     /* input buffer */
    1313  smpl_t samplerate = 16000.;
    14   uint_t i = 0;
    1514
    1615  /* allocate fft and other memory space */
    1716  aubio_mfcc_t *o = new_aubio_mfcc (win_s, n_filters, n_coefs, samplerate);
    1817
    19   for (i = 0; i < in->length; i ++) {
    20     in->norm[0][i] = 1.;
    21   }
     18  cvec_set (in, 1.);
    2219
    2320  aubio_mfcc_do (o, in, out);
Note: See TracChangeset for help on using the changeset viewer.