def get_frames(self):
nb_frames = self.input_totalframes // self.output_blocksize<EOL>if self.input_totalframes % self.output_blocksize == <NUM_LIT:0>:<EOL><INDENT>nb_frames -= <NUM_LIT:1>  <EOL><DEDENT>for index in xrange(<NUM_LIT:0>,<EOL>nb_frames * self.output_blocksize,<EOL>self.output_blocksize):<EOL><INDENT>yield (self.samples[index:index + self.output_blocksize], False)<EOL><DEDENT>yield (self.samples[nb_frames * self.output_blocksize:], True)<EOL>
Define an iterator that will return frames at the given blocksize