Changeset 4f2c28c for python/demos
- Timestamp:
- Dec 18, 2013, 6:42:17 AM (11 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:
- 6ede3ab
- Parents:
- e5656036
- Location:
- python/demos
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_mel-energy.py
re5656036 r4f2c28c 62 62 ax.yaxis.set_visible(False) 63 63 ax.axis(xmax = all_desc_times[-1], xmin = all_desc_times[0]) 64 ax.annotate('band %d' % i, xy=(-10, 10), xycoords='axes points',64 ax.annotate('band %d' % i, xy=(-10, 0), xycoords='axes points', 65 65 horizontalalignment='right', verticalalignment='bottom', 66 size = 'xx-small', 66 67 ) 67 68 set_xlabels_sample2time( ax, all_desc_times[-1], samplerate) -
python/demos/demo_pitch.py
re5656036 r4f2c28c 57 57 58 58 fig = plt.figure() 59 59 60 ax1 = fig.add_subplot(311) 60 61 ax1 = get_waveform_plot(filename, samplerate = samplerate, block_size = hop_s, ax = ax1) 61 ax1.set_xticklabels([]) 62 plt.setp(ax1.get_xticklabels(), visible = False) 63 ax1.set_xlabel('') 62 64 63 65 def array_from_text_file(filename, dtype = 'float'): … … 88 90 #ax2.axis( ymin = 0.9 * cleaned_pitches.min(), ymax = 1.1 * cleaned_pitches.max() ) 89 91 #ax2.axis( ymin = 55, ymax = 70 ) 90 ax2.set_xticklabels([]) 92 plt.setp(ax2.get_xticklabels(), visible = False) 93 ax2.set_ylabel('f0 (Hz)') 91 94 92 95 # plot confidence … … 97 100 ax3.plot(times, [tolerance]*len(confidences)) 98 101 ax3.axis( xmin = times[0], xmax = times[-1]) 102 ax3.set_ylabel('condidence') 103 set_xlabels_sample2time(ax3, times[-1], samplerate) 99 104 plt.show() 100 set_xlabels_sample2time(ax3, times[-1], samplerate) 101 #plt.savefig(os.path.basename(filename) + '.png', dpi=200) 105 #plt.savefig(os.path.basename(filename) + '.svg') -
python/demos/demo_specdesc.py
re5656036 r4f2c28c 72 72 ax.yaxis.set_visible(False) 73 73 ax.axis(xmax = all_desc_times[-1], xmin = all_desc_times[0]) 74 ax.annotate(method, xy=(-10, 10), xycoords='axes points',74 ax.annotate(method, xy=(-10, 0), xycoords='axes points', 75 75 horizontalalignment='right', verticalalignment='bottom', 76 76 )
Note: See TracChangeset
for help on using the changeset viewer.