Changeset 7b7a58e for src/mathutils.c


Ignore:
Timestamp:
Sep 16, 2017, 11:55:51 PM (7 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:
bfbfafa
Parents:
b99e2a5 (diff), cfb7fb7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into dct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    rb99e2a5 r7b7a58e  
    2929typedef enum
    3030{
     31  aubio_win_ones,
    3132  aubio_win_rectangle,
    3233  aubio_win_hamming,
     
    6465      AUBIO_ERR ("window type can not be null.\n");
    6566      return 1;
    66   } else if (strcmp (window_type, "rectangle") == 0)
     67  } else if (strcmp (window_type, "ones") == 0)
     68      wintype = aubio_win_ones;
     69  else if (strcmp (window_type, "rectangle") == 0)
    6770      wintype = aubio_win_rectangle;
    6871  else if (strcmp (window_type, "hamming") == 0)
     
    8992  }
    9093  switch(wintype) {
     94    case aubio_win_ones:
     95      fvec_ones(win);
     96      break;
    9197    case aubio_win_rectangle:
    92       for (i=0;i<size;i++)
    93         w[i] = 0.5;
     98      fvec_set_all(win, .5);
    9499      break;
    95100    case aubio_win_hamming:
Note: See TracChangeset for help on using the changeset viewer.