Changeset c9a9f86 for python/demos
- Timestamp:
- May 10, 2016, 7:42:30 PM (9 years ago)
- 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:
- 29693d0
- Parents:
- 494df02
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_pitch.py
r494df02 rc9a9f86 46 46 47 47 #print pitches 48 import os.path 48 49 from numpy import array, ma 49 50 import matplotlib.pyplot as plt … … 64 65 65 66 def array_from_text_file(filename, dtype = 'float'): 66 import os.path67 from numpy import array68 67 filename = os.path.join(os.path.dirname(__file__), filename) 69 68 return array([line.split() for line in open(filename).readlines()], … … 71 70 72 71 ax2 = fig.add_subplot(312, sharex = ax1) 73 import sys, os.path74 72 ground_truth = os.path.splitext(filename)[0] + '.f0.Corrected' 75 73 if os.path.isfile(ground_truth):
Note: See TracChangeset
for help on using the changeset viewer.