Changeset 4ed0ed1 for src/spectral


Ignore:
Timestamp:
Dec 17, 2013, 5:30:13 PM (11 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:
e84ab04
Parents:
1ece4f8
Message:

src/fmat.c: new_fmat() takes height as first argument

Location:
src/spectral
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/filterbank.c

    r1ece4f8 r4ed0ed1  
    4444
    4545  /* allocate filter tables, a matrix of length win_s and of height n_filters */
    46   fb->filters = new_fmat (win_s / 2 + 1, n_filters);
     46  fb->filters = new_fmat (n_filters, win_s / 2 + 1);
    4747
    4848  return fb;
  • src/spectral/mfcc.c

    r1ece4f8 r4ed0ed1  
    6767  mfcc->in_dct = new_fvec (n_filters);
    6868
    69   mfcc->dct_coeffs = new_fmat (n_coefs, n_filters);
     69  mfcc->dct_coeffs = new_fmat (n_filters, n_coefs);
    7070
    7171  /* compute DCT transform dct_coeffs[i][j] as
Note: See TracChangeset for help on using the changeset viewer.