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=' ')
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=' ')
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=' ')
def name(self): className = self.__class__.__name__ return common.camelCaseToHyphen(className, replacement=' ')