- Timestamp:
- Oct 17, 2013, 2:46:47 PM (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:
- 7fc5ba2
- Parents:
- c52b483
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_waveform_plot.py
rc52b483 r7079887 5 5 from numpy import zeros, hstack 6 6 7 def get_waveform_plot(filename, samplerate = 0, block_size = 4096, ax = None ):7 def get_waveform_plot(filename, samplerate = 0, block_size = 4096, ax = None, downsample = 2**4): 8 8 import matplotlib.pyplot as plt 9 9 if not ax: … … 13 13 14 14 allsamples_max = zeros(0,) 15 downsample = 2**4# to plot n samples / hop_s15 downsample = downsample # to plot n samples / hop_s 16 16 17 17 a = source(filename, samplerate, hop_s) # source file
Note: See TracChangeset
for help on using the changeset viewer.