def __choflags__(self, lfo=None):
        """Fetch CHO condition flags."""
        flags = self.__expression__()
        if type(flags) is not int or flags < 0 or flags > M6:
            self.parseerror('Invalid CHO condition flags ' + repr(flags),
                            self.prevline)
        oflags = flags
        if lfo&0x02: # RMP0/RMP1
            flags = oflags & 0x3e
            if oflags != flags:
                self.parsewarn('Cleared invalid Ramp LFO condition flags to: '
                                 + hex(flags), self.prevline)
        else:
            flags = oflags & 0x0f
            if oflags != flags:
                self.parsewarn('Cleared invalid Sine LFO condition flags to: '
                                 + hex(flags), self.prevline)
        return flags
def __choflags__ ( self , lfo = None ) : flags = self . __expression__ ( ) if type ( flags ) is not int or flags < 0 or flags > M6 : self . parseerror ( 'Invalid CHO condition flags ' + repr ( flags ) , self . prevline ) oflags = flags if lfo & 0x02 : flags = oflags & 0x3e if oflags != flags : self . parsewarn ( 'Cleared invalid Ramp LFO condition flags to: ' + hex ( flags ) , self . prevline ) else : flags = oflags & 0x0f if oflags != flags : self . parsewarn ( 'Cleared invalid Sine LFO condition flags to: ' + hex ( flags ) , self . prevline ) return flags
Fetch CHO condition flags.