Notehead

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

Bases: NoteheadSymbol

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

appliesToRests

applyToTieStrategy

One of 'first', or 'all'

exclusive

Only one of a given class

Methods Summary

applyToPitch(n, idx, parent)

asScoringNotehead()

Attributes Documentation

appliesToRests = False
applyToTieStrategy = 'all'

One of ‘first’, or ‘all’

exclusive = False

Only one of a given class

Methods Documentation

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

None

asScoringNotehead()[source]
Return type:

Notehead