diff bin/musicPad @ 1858:7772cc48e016

reformat all python Ignore-this: 1135b78893f8b3d31badddda7f45678f
author drewp@bigasterisk.com
date Tue, 21 May 2019 23:56:12 +0000
parents d8202a0a7fd5
children 3c523c71da29
line wrap: on
line diff
--- a/bin/musicPad	Tue May 21 23:55:35 2019 +0000
+++ b/bin/musicPad	Tue May 21 23:56:12 2019 +0000
@@ -11,7 +11,7 @@
 log = logging.getLogger()
 
 introPad = 4
-postPad = 9 # 5 + autostop + 4
+postPad = 9  # 5 + autostop + 4
 
 playlist = Playlist.fromShow(showconfig.getGraph(), showconfig.showUri())
 for p in playlist.allSongPaths():
@@ -22,18 +22,16 @@
     try:
         os.makedirs(outputDir)
     except OSError:
-        pass # exists
+        pass  # exists
     outputPath = os.path.join(outputDir, os.path.basename(p))
     outputWave = wave.open(outputPath, 'w')
     outputWave.setparams(inputWave.getparams())
 
     bytesPerSecond = (inputWave.getnchannels() * inputWave.getsampwidth() *
                       inputWave.getframerate())
-    
+
     outputWave.writeframesraw("\x00" * (bytesPerSecond * introPad))
     outputWave.writeframesraw(inputWave.readframes(inputWave.getnframes()))
     outputWave.writeframesraw("\x00" * (bytesPerSecond * postPad))
     outputWave.close()
     log.info("wrote %s", outputPath)
-
-