xmos / audio_test_tools

Useful tools for testing audio processing code
Other
2 stars 4 forks source link

Always round down in audio_generation.py #121

Closed oscarbailey-xmos closed 4 years ago

oscarbailey-xmos commented 4 years ago

There are several places in audio_generation.py where floats are rounded to the nearest int rather than rounding down - rounding should be consistent https://github.com/xmos/audio_test_tools/pull/120#pullrequestreview-364871475

oscarbailey-xmos commented 4 years ago

Python rounds down when using int() https://stackoverflow.com/questions/9404967/taking-the-floor-of-a-float#9405029