Changeset 9b7f238 for python


Ignore:
Timestamp:
Apr 19, 2016, 12:45:12 AM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
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:
0229e51
Parents:
e76842e
Message:

tests/test_note2midi.py: use unicode_literals, preparing for python3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_note2midi.py

    re76842e r9b7f238  
    11#! /usr/bin/env python
    22# -*- coding: utf-8 -*-
     3
     4from __future__ import unicode_literals
    35
    46from aubio import note2midi, freq2note
     
    1517        ( 'A#4', 70 ),
    1618        ( 'Bb4', 70 ),
    17         ( u'B♭4', 70 ),
     19        ( 'B♭4', 70 ),
    1820        ( 'G8', 115 ),
    19         ( u'G♯8', 116 ),
     21        ( 'G♯8', 116 ),
    2022        ( '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 ),
    2426        )
    2527
Note: See TracChangeset for help on using the changeset viewer.