Changeset c0b295c for src/mathutils.c


Ignore:
Timestamp:
Oct 2, 2009, 2:05:23 AM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
acf7d30
Parents:
38e9732
Message:

src/mathutils.c: rename fvec_dc_removal to fvec_min_removal

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r38e9732 rc0b295c  
    181181}
    182182
    183 void fvec_dc_removal(fvec_t * mag) {
    184     smpl_t mini = 0.;
    185     uint_t length = mag->length, i=0, j;
    186     mini = fvec_min(mag);
    187     for (j=0;j<length;j++) {
     183void
     184fvec_min_removal (fvec_t * o)
     185{
     186  uint_t i, j;
     187  smpl_t mini = fvec_min (mag);
     188  for (i = 0; i < o->channels; i++) {
     189    for (j = 0; j < o->length; j++) {
    188190      mag->data[i][j] -= mini;
    189191    }
     192  }
    190193}
    191194
Note: See TracChangeset for help on using the changeset viewer.