From 01cc996a1d9e01ed62e4bb02c19cf089351c85f8 Mon Sep 17 00:00:00 2001
From: John Glover <glover.john@gmail.com>
Date: Thu, 23 Dec 2010 15:46:35 +0000
Subject: Minor tidy up

---
 examples/plotpeaks.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'examples')

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
-- 
cgit v1.2.3