(self, milliseconds)
Write a pause of given length to the tape.
Write a pause of given length to the tape.
Write a pause of given length to the tape .
def write_pause(self, milliseconds):
        """Write a pause of given length to the tape."""
        length = int(milliseconds * self.framerate / 1000)
        zero = {1: b'\x7f', 2: b'\x00\x00'}
        self.wav.write(zero[self.sampwidth] * self.nchannels * length)
        self.wav_pos += length
def write_pause ( self , milliseconds ) : length = int ( milliseconds * self . framerate / 1000 ) zero = { 1 : b'\x7f' , 2 : b'\x00\x00' } self . wav . write ( zero [ self . sampwidth ] * self . nchannels * length ) self . wav_pos += length