示例#1
0
    def name(self):
        '''
        returns the name of the articulation, which is generally the
        class name without the leading letter lowercase.

        Subclasses can override this as necessary.

        >>> st = articulations.Staccato()
        >>> st.name
        'staccato'

        >>> sp = articulations.SnapPizzicato()
        >>> sp.name
        'snap pizzicato'
        '''
        className = self.__class__.__name__
        return common.camelCaseToHyphen(className, replacement=' ')
示例#2
0
    def name(self) -> str:
        '''
        returns the name of the expression, which is generally the
        class name lowercased and spaces where a new capital occurs.

        Subclasses can override this as necessary.

        >>> sc = expressions.Schleifer()
        >>> sc.name
        'schleifer'

        >>> iTurn = expressions.InvertedTurn()
        >>> iTurn.name
        'inverted turn'
        '''
        className = self.__class__.__name__
        return common.camelCaseToHyphen(className, replacement=' ')
示例#3
0
 def name(self):
     '''
     returns the name of the expression, which is generally the
     class name lowercased and spaces where a new capital occurs.
     
     Subclasses can override this as necessary.
     
     >>> sc = expressions.Schleifer()
     >>> sc.name
     'schleifer'
     
     >>> iturn = expressions.InvertedTurn()
     >>> iturn.name
     'inverted turn'
     '''
     className = self.__class__.__name__
     return common.camelCaseToHyphen(className, replacement=' ')
示例#4
0
 def name(self):
     '''
     returns the name of the articulation, which is generally the
     class name without the leading letter lowercase.
     
     Subclasses can override this as necessary.
     
     >>> st = articulations.Staccato()
     >>> st.name
     'staccato'
     
     >>> sp = articulations.SnapPizzicato()
     >>> sp.name
     'snap pizzicato'
     '''
     className = self.__class__.__name__
     return common.camelCaseToHyphen(className, replacement=' ')
示例#5
0
 def name(self):
     className = self.__class__.__name__
     return common.camelCaseToHyphen(className, replacement=' ')