Changeset e7a7794 for python/aubio/plot
- Timestamp:
- Sep 26, 2009, 6:34:28 AM (15 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:
- 9a91031
- Parents:
- 342e3807
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/plot/notes.py
r342e3807 re7a7794 43 43 44 44 def plotnote_withends(la,plot_title=None) : 45 import numarray45 from numpy import array 46 46 import Gnuplot, Gnuplot.funcutils 47 47 d=[] 48 x_widths = numarray.array(la[:,1]-la[:,0])/2.48 x_widths = array(la[:,1]-la[:,0])/2. 49 49 d.append(Gnuplot.Data( 50 50 la[:,0]+x_widths, # x centers … … 58 58 def plotnote_withoutends(la,plot_title=None) : 59 59 """ bug: fails drawing last note """ 60 import numarray60 from numpy import array 61 61 import Gnuplot, Gnuplot.funcutils 62 62 d=[] 63 x_widths = numarray.array(la[1:,0]-la[:-1,0])/2;63 x_widths = array(la[1:,0]-la[:-1,0])/2; 64 64 d.append(Gnuplot.Data( 65 65 la[:-1,0]+x_widths, # x centers
Note: See TracChangeset
for help on using the changeset viewer.