Changeset 67e16c2 for python/demos


Ignore:
Timestamp:
May 10, 2016, 7:35:29 PM (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:
494df02
Parents:
d0faeca
Message:

python/demos/demo_spectrogram.py: fix indent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/demos/demo_spectrogram.py

    rd0faeca r67e16c2  
    6767    if len(sys.argv) < 2:
    6868        print "Usage: %s <filename>" % sys.argv[0]
    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()
     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.