Notehead

class maelzel.core.symbols.Notehead(shape='', color='', parenthesis=False, size=None, hidden=False)[source]

Bases: NoteheadAttachedSymbol

Customizes the notehead shape, color, parenthesis and size

Parameters:
  • shape – one of ‘cross’, ‘harmonic’, ‘triangleup’, ‘xcircle’, ‘triangle’, ‘rhombus’, ‘square’, ‘rectangle’. You can also add parenthesis to the shape, as ‘(x)’ or even ‘()’ to indicate a normal, parenthesized notehead

  • color – a css color (str)

  • parenthesis – if True, parenthesize the notehead

  • size (Optional[float]) – a size factor (1.0 means the size corresponding to the staff size, 2. indicates a notehead twice as big)

Attributes Summary

Methods Summary

applyToPitch(n, idx, parent)

rtype:

None

asScoringNotehead()

rtype:

Notehead

Attributes Documentation

appliesToRests = False
applyToTieStrategy = 'all'
exclusive = False

Methods Documentation

applyToPitch(n, idx, parent)[source]
Return type:

None

asScoringNotehead()[source]
Return type:

Notehead