def writeRoutineStartCode(self, buff): inits = getInitVals(self.params) code = ("%(name)s = microphone.AdvAudioCapture(name='%(name)s', " "saveDir=wavDirName, stereo=%(stereo)s)\n") buff.writeIndented(code % inits)
def writeRoutineStartCode(self, buff): inits = getInitVals(self.params) buff.writeIndented( "%s = microphone.AdvAudioCapture(name='%s', saveDir=wavDirName, stereo=%s)\n" % (inits['name'], inits['name'], inits['stereo']))