Changeset 8f70a18 for src/mathutils.c


Ignore:
Timestamp:
Jul 12, 2006, 6:25:57 PM (13 years ago)
Author:
Paul Brossier <piem@altern.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
9935735
Parents:
72b649d
Message:

use math aliases in mathutils
use math aliases in mathutils

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r72b649d r8f70a18  
    6666    case aubio_win_parzen:
    6767      for (i=0;i<size;i++)
    68         w[i] = 1.0 - fabsf((2*i-size)/(size+1.0));
     68        w[i] = 1.0 - ABS((2*i-size)/(size+1.0));
    6969      break;
    7070    default:
     
    7676smpl_t aubio_unwrap2pi(smpl_t phase) {
    7777  /* mod(phase+pi,-2pi)+pi */
    78   return phase + TWO_PI * (1. + floorf(-(phase+PI)/TWO_PI));
     78  return phase + TWO_PI * (1. + FLOOR(-(phase+PI)/TWO_PI));
    7979}
    8080
Note: See TracChangeset for help on using the changeset viewer.