changeset 23:8319429b20da

fix variable name
author Dan Stowell <danstowell@users.sourceforge.net>
date Wed, 13 Feb 2013 16:45:35 +0000
parents c7fa1f02f5f8
children 34b4b44299be 372ee94cc82e
files smacpy.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/smacpy.py	Sat Jan 26 21:14:25 2013 +0000
+++ b/smacpy.py	Wed Feb 13 16:45:35 2013 +0000
@@ -101,7 +101,7 @@
 	def file_to_features(self, wavpath):
 		"Reads through a mono WAV file, converting each frame to the required features. Returns a 2D array."
 		if verbose: print("Reading %s" % wavpath)
-		if not os.path.isfile(wavpath): raise ValueError("path %s not found" % path)
+		if not os.path.isfile(wavpath): raise ValueError("path %s not found" % wavpath)
 		sf = Sndfile(wavpath, "r")
 		#if (sf.channels != 1) and verbose: print(" Sound file has multiple channels (%i) - channels will be mixed to mono." % sf.channels)
 		if sf.samplerate != fs:         raise ValueError("wanted sample rate %g - got %g." % (fs, sf.samplerate))