Changeset 67e16c2 for python/demos
- Timestamp:
- May 10, 2016, 7:35:29 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:
- 494df02
- Parents:
- d0faeca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_spectrogram.py
rd0faeca r67e16c2 67 67 if len(sys.argv) < 2: 68 68 print "Usage: %s <filename>" % sys.argv[0] 69 else:70 for soundfile in sys.argv[1:]:71 fig = get_spectrogram(soundfile)72 # display graph73 fig.show()74 #outimage = os.path.basename(soundfile) + '.png'75 #print ("writing: " + outimage)76 #plt.savefig(outimage)77 plt.close()69 else: 70 for soundfile in sys.argv[1:]: 71 fig = get_spectrogram(soundfile) 72 # display graph 73 fig.show() 74 #outimage = os.path.basename(soundfile) + '.png' 75 #print ("writing: " + outimage) 76 #plt.savefig(outimage) 77 plt.close()
Note: See TracChangeset
for help on using the changeset viewer.