Changeset f264b17 for python/demos/demo_waveform_plot.py
- Timestamp:
- Jun 22, 2016, 1:00:10 PM (8 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:
- 4b9443c4
- Parents:
- 60fc05b (diff), 6769586 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_waveform_plot.py
r60fc05b rf264b17 2 2 3 3 import sys 4 from aubio import pvoc,source4 from aubio import source 5 5 from numpy import zeros, hstack 6 6 … … 22 22 samples, read = a() 23 23 # keep some data to plot it later 24 new_maxes = (abs(samples.reshape(hop_s/ downsample, downsample))).max(axis=0)24 new_maxes = (abs(samples.reshape(hop_s//downsample, downsample))).max(axis=0) 25 25 allsamples_max = hstack([allsamples_max, new_maxes]) 26 26 total_frames += read … … 49 49 import matplotlib.pyplot as plt 50 50 if len(sys.argv) < 2: 51 print "Usage: %s <filename>" % sys.argv[0]51 print("Usage: %s <filename>" % sys.argv[0]) 52 52 else: 53 53 for soundfile in sys.argv[1:]:
Note: See TracChangeset
for help on using the changeset viewer.