Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -1,6 +1,8 @@ | ||
| 1 | 1 | #! /usr/bin/env python |
| 2 | 2 | # -*- coding: utf-8 -*- |
| 3 | 3 | |
| 4 | +from __future__ import unicode_literals | |
| 5 | + | |
| 4 | 6 | from aubio import note2midi, freq2note |
| 5 | 7 | import unittest |
| 6 | 8 | |
| @@ -14,13 +16,13 @@ list_of_known_notes = ( · 7 unmodified lines | ||
| 14 | 16 | ( 'A4', 69 ), |
| 15 | 17 | ( 'A#4', 70 ), |
| 16 | 18 | ( 'Bb4', 70 ), |
| 17 | − ( u'B♭4', 70 ), | |
| 19 | + ( 'B♭4', 70 ), | |
| 18 | 20 | ( 'G8', 115 ), |
| 19 | − ( u'G♯8', 116 ), | |
| 21 | + ( 'G♯8', 116 ), | |
| 20 | 22 | ( 'G9', 127 ), |
| 21 | − ( u'G\udd2a2', 45 ), | |
| 22 | − ( u'B\ufffd2', 45 ), | |
| 23 | − ( u'A♮2', 45 ), | |
| 23 | + ( 'G\udd2a2', 45 ), | |
| 24 | + ( 'B\ufffd2', 45 ), | |
| 25 | + ( 'A♮2', 45 ), | |
| 24 | 26 | ) |
| 25 | 27 | |
| 26 | 28 | class note2midi_good_values(unittest.TestCase): |