Browse Source

Inverted commas

Pete Shadbolt 4 years ago
parent
commit
110824f724
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      spectrogram.py

+ 3
- 3
spectrogram.py View File

@@ -19,8 +19,8 @@ def make_wav(image_filename):
19 19
     image = np.sum(image, axis = 2).T[:, ::-1]
20 20
     image = image**2
21 21
 
22
-    output_file = wave.open(image_filename+'.wav', 'w')
23
-    output_file.setparams((1, 2, 44100, 0, 'NONE', 'not compressed'))
22
+    output_file = wave.open(image_filename+".wav", "w")
23
+    output_file.setparams((1, 2, 44100, 0, "NONE", "not compressed"))
24 24
 
25 25
     pb = ProgressBar().start()
26 26
     n = float(len(image))
@@ -32,7 +32,7 @@ def make_wav(image_filename):
32 32
     print "Wrote %s.wav" % image_filename
33 33
 
34 34
 
35
-if __name__ == '__main__':
35
+if __name__ == "__main__":
36 36
     import sys
37 37
     make_wav(sys.argv[1])
38 38