summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJohn Glover <glover.john@gmail.com>2010-12-23 15:46:35 +0000
committerJohn Glover <glover.john@gmail.com>2010-12-23 15:46:35 +0000
commit01cc996a1d9e01ed62e4bb02c19cf089351c85f8 (patch)
treee0fd32f69d5dfbbf2277b882b3dda70b479bcc65 /examples
parent6bbda1201c3834d43e6e6b4654ea58a4ac672f9b (diff)
downloadsimpl-01cc996a1d9e01ed62e4bb02c19cf089351c85f8.tar.gz
simpl-01cc996a1d9e01ed62e4bb02c19cf089351c85f8.tar.bz2
simpl-01cc996a1d9e01ed62e4bb02c19cf089351c85f8.zip
Minor tidy up
Diffstat (limited to 'examples')
-rw-r--r--examples/plotpeaks.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/plotpeaks.py b/examples/plotpeaks.py
index 1c5769f..e8de386 100644
--- a/examples/plotpeaks.py
+++ b/examples/plotpeaks.py
@@ -19,12 +19,12 @@ import matplotlib.pyplot as plt
from scipy.io.wavfile import read
input_file = '../tests/audio/flute.wav'
-audio_in_data = read(input_file)
-audio_in = simpl.asarray(audio_in_data[1]) / 32768.0 # values between -1 and 1
-sample_rate = audio_in_data[0]
+audio_data = read(input_file)
+audio = simpl.asarray(audio_data[1]) / 32768.0 # values between -1 and 1
+sample_rate = audio_data[0]
# take just the first few frames
-audio = audio_in[0:4096]
+audio = audio[0:4096]
# peak detection using the SndObj library
pd = simpl.SndObjPeakDetection()
pd.max_peaks = 20