Changes in python/demos/demo_onset_plot.py [7e9e311:8b884ef]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/demos/demo_onset_plot.py
r7e9e311 r8b884ef 34 34 while True: 35 35 samples, read = s() 36 is_onset = o(samples) 37 if is_onset: 38 this_onset = o.get_last_onset() 39 print "%f" % (this_onset / float(samplerate)) 40 onsets.append(this_onset) 36 if o(samples): 37 print "%f" % (o.get_last_s()) 38 onsets.append(o.get_last()) 41 39 # keep some data to plot it later 42 40 new_maxes = (abs(samples.reshape(hop_s/downsample, downsample))).max(axis=0)
Note: See TracChangeset
for help on using the changeset viewer.