Changeset 4afeac2


Ignore:
Timestamp:
Oct 29, 2018, 11:54:56 PM (14 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
44582b0
Parents:
40136171
Message:

[py] [test] make sure freq2note rounds to nearest integer midi note

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_note2midi.py

    r40136171 r4afeac2  
    112112class freq2note_simple_test(unittest.TestCase):
    113113
    114     def test_freq2note(self):
     114    def test_freq2note_above(self):
    115115        " make sure freq2note(441) == A4 "
    116116        self.assertEqual("A4", freq2note(441))
     117
     118    def test_freq2note_under(self):
     119        " make sure freq2note(439) == A4 "
     120        self.assertEqual("A4", freq2note(439))
    117121
    118122if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.