Ignore:
Timestamp:
Oct 2, 2009, 2:10:25 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:
1498ced
Parents:
c0b295c
Message:

src/mathutils.c and co: use 0.0, not 0.0f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/onset/onsetdetection.c

    rc0b295c racf7d30  
    9898  uint_t nbins = fftgrain->length;
    9999  for (i=0;i<fftgrain->channels; i++)  {
    100     onset->data[i][0] = 0.0f;
     100    onset->data[i][0] = 0.0;
    101101    o->dev1->data[i][0]=0.;
    102102    for ( j=0;j<nbins; j++ )  {
     
    109109        o->dev1->data[i][j] = ABS(o->dev1->data[i][j]);
    110110      else
    111         o->dev1->data[i][j] = 0.0f;
     111        o->dev1->data[i][j] = 0.0;
    112112      /* keep a track of the past frames */
    113113      o->theta2->data[i][j] = o->theta1->data[i][j];
     
    130130  uint_t nbins = fftgrain->length;
    131131  for (i=0;i<fftgrain->channels; i++)  {
    132     onset->data[i][0] = 0.0f;
     132    onset->data[i][0] = 0.0;
    133133    for (j=0;j<nbins; j++)  {
    134134      o->dev1->data[i][j] = SQRT(
     
    138138        o->dev1->data[i][j] = ABS(o->dev1->data[i][j]);
    139139      else
    140         o->dev1->data[i][j] = 0.0f;
     140        o->dev1->data[i][j] = 0.0;
    141141      o->oldmag->data[i][j] = fftgrain->norm[i][j];
    142142    }
     
    230230      o->theta1 = new_fvec(rsize,channels);
    231231      o->theta2 = new_fvec(rsize,channels);
    232       o->histog = new_aubio_hist(0.0f, PI, 10, channels);
     232      o->histog = new_aubio_hist(0.0, PI, 10, channels);
    233233      o->threshold = 0.1;
    234234      break;
     
    236236      o->oldmag = new_fvec(rsize,channels);
    237237      o->dev1   = new_fvec(rsize,channels);
    238       o->histog = new_aubio_hist(0.0f, PI, 10, channels);
     238      o->histog = new_aubio_hist(0.0, PI, 10, channels);
    239239      o->threshold = 0.1;
    240240      break;
Note: See TracChangeset for help on using the changeset viewer.