(self)
Generates lines of ASCII-encoded hexadecimal strings.

        Yields:
          One line of a hex string.
Generates lines of ASCII-encoded hexadecimal strings.
Generates lines of ASCII - encoded hexadecimal strings .
def to_lines(self):
        """Generates lines of ASCII-encoded hexadecimal strings.

        Yields:
          One line of a hex string.
        """
        for id in range(0, 64):
            hexstrs = [bytes(util.bytes_to_hex(
                bytes(self.get_properties(id))), encoding='ascii')]
            for note in range(0, 32):
                pitch, waveform, volume, effect = self.get_note(id, note)
                hexstrs.append(bytes(util.bytes_to_hex(
                    bytes([pitch, waveform << 4 | volume])), encoding='ascii'))
                hexstrs.append(bytes(util.bytes_to_hex(
                    bytes([effect]))[1], encoding='ascii'))
            yield b''.join(hexstrs) + b'\n'
def to_lines ( self ) : for id in range ( 0 , 64 ) : hexstrs = [ bytes ( util . bytes_to_hex ( bytes ( self . get_properties ( id ) ) ) , encoding = 'ascii' ) ] for note in range ( 0 , 32 ) : pitch , waveform , volume , effect = self . get_note ( id , note ) hexstrs . append ( bytes ( util . bytes_to_hex ( bytes ( [ pitch , waveform << 4 | volume ] ) ) , encoding = 'ascii' ) ) hexstrs . append ( bytes ( util . bytes_to_hex ( bytes ( [ effect ] ) ) [ 1 ] , encoding = 'ascii' ) ) yield b'' . join ( hexstrs ) + b'\n'