Changeset 8f70a18
- Timestamp:
- Jul 12, 2006, 6:25:57 PM (18 years ago)
- 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:
- 9935735
- Parents:
- 72b649d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
r72b649d r8f70a18 66 66 case aubio_win_parzen: 67 67 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)); 69 69 break; 70 70 default: … … 76 76 smpl_t aubio_unwrap2pi(smpl_t phase) { 77 77 /* 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)); 79 79 } 80 80
Note: See TracChangeset
for help on using the changeset viewer.