Changeset 9279ba0
- Timestamp:
- May 10, 2019, 10:40:29 AM (6 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/timestretch, fix/ffmpeg5, master
- Children:
- 08d07ce
- Parents:
- c62243f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/effects/test-timestretch.c
rc62243f r9279ba0 1 1 #define AUBIO_UNSTABLE 1 2 2 #include <aubio.h> 3 #include "aubio_priv.h"4 3 #include "utils_tests.h" 5 4 … … 129 128 if (aubio_timestretch_get_transpose(p) != 0) return 1; 130 129 if (aubio_timestretch_set_transpose(p, 2.)) return 1; 131 if ( ABS(aubio_timestretch_get_transpose(p) - 2.) > 1.e-6) return 1;130 if (fabs(aubio_timestretch_get_transpose(p) - 2.) >= 1e-6) return 1; 132 131 if (!aubio_timestretch_set_transpose(p, 200.)) return 1; 133 132 if (!aubio_timestretch_set_transpose(p, -200.)) return 1; … … 136 135 if (aubio_timestretch_get_pitchscale(p) != 1) return 1; 137 136 if (aubio_timestretch_set_pitchscale(p, 2.)) return 1; 138 if ( ABS(aubio_timestretch_get_pitchscale(p) - 2.) > 1.e-6) return 1;137 if (fabs(aubio_timestretch_get_pitchscale(p) - 2.) >= 1e-6) return 1; 139 138 if (!aubio_timestretch_set_pitchscale(p, 0.)) return 1; 140 139 if (!aubio_timestretch_set_pitchscale(p, 6.)) return 1; … … 142 141 if (aubio_timestretch_get_stretch(p) != stretch) return 1; 143 142 if (aubio_timestretch_set_stretch(p, 2.)) return 1; 144 if ( ABS(aubio_timestretch_get_stretch(p) - 2.) > 1.e-6) return 1;143 if (fabs(aubio_timestretch_get_stretch(p) - 2.) >= 1e-6) return 1; 145 144 if (!aubio_timestretch_set_stretch(p, 0.)) return 1; 146 145 if (!aubio_timestretch_set_stretch(p, 41.)) return 1;
Note: See TracChangeset
for help on using the changeset viewer.