Changeset 053495b


Ignore:
Timestamp:
Jul 31, 2015, 10:05:17 PM (9 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:
ce6f652
Parents:
a1718fc
Message:

src/*.c: fix some useless float conversion

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    ra1718fc r053495b  
    141141    case aubio_win_parzen:
    142142      for (i=0;i<size;i++)
    143         w[i] = 1.0 - ABS((2.*i-size)/(size+1.0));
     143        w[i] = 1.0 - ABS((2.f*i-size)/(size+1.0f));
    144144      break;
    145145    default:
  • src/spectral/specdesc.c

    ra1718fc r053495b  
    119119    onset->data[0] +=
    120120      SQRT (ABS (SQR (o->oldmag->data[j]) + SQR (fftgrain->norm[j])
    121             - 2. * o->oldmag->data[j] * fftgrain->norm[j]
     121            - 2 * o->oldmag->data[j] * fftgrain->norm[j]
    122122            * COS (o->dev1->data[j] - fftgrain->phas[j])));
    123123    /* swap old phase data (need to remember 2 frames behind)*/
  • src/tempo/beattracking.c

    ra1718fc r053495b  
    331331  if (counter == 1 && flagstep == 1) {
    332332    //check for consistency between previous beatperiod values
    333     if (ABS (2. * rp - rp1 - rp2) < bt->g_var) {
     333    if (ABS (2 * rp - rp1 - rp2) < bt->g_var) {
    334334      //if true, can activate context dependent model
    335335      flagconst = 1;
Note: See TracChangeset for help on using the changeset viewer.