(self)
Write some noise to give the reader something to get started.
Write some noise to give the reader something to get started.
Write some noise to give the reader something to get started .
def write_intro(self):
        """Write some noise to give the reader something to get started."""
        # We just need some bits here
        # however on a new CAS file this works like a magic-sequence...
        for b in bytearray(self.intro):
            self.write_byte(b)
        # Write seven bits, so that we are byte-aligned after the sync bit
        # (after the 256-byte pilot). Makes CAS-files easier to read in hex.
        for _ in range(7):
            self.write_bit(0)
        self.write_pause(100)
def write_intro ( self ) : # We just need some bits here # however on a new CAS file this works like a magic-sequence... for b in bytearray ( self . intro ) : self . write_byte ( b ) # Write seven bits, so that we are byte-aligned after the sync bit # (after the 256-byte pilot). Makes CAS-files easier to read in hex. for _ in range ( 7 ) : self . write_bit ( 0 ) self . write_pause ( 100 )