def CheckDivisions(self, measure_div):
        '''
        Method which is called from voice/measure to update the divisions for each note which are stored at
        measure level, but needed at lilypond time to figure out lilypond notation
        :param measure_div: number of divisions per note. Indicator of how big or small a quarter note is
        :return: None, side effect
        '''
        if hasattr(self, "val_type"):
            self.divisions = 1
        else:
            self.divisions = measure_div
def CheckDivisions ( self , measure_div ) : if hasattr ( self , "val_type" ) : self . divisions = 1 else : self . divisions = measure_div
Method which is called from voice/measure to update the divisions for each note which are stored at
        measure level, but needed at lilypond time to figure out lilypond notation
        :param measure_div: number of divisions per note. Indicator of how big or small a quarter note is
        :return: None, side effect