makeChord

maelzel.scoring.makeChord(pitches, duration, offset=None, annotation='', dynamic='', fixed=False, **kws)[source]

Utility function to create a chord Notation

Parameters:
  • pitches (Sequence[Union[int, float, str]]) – the pitches as midinotes or notenames. If given a note as str, the note in question is fixed at the given enharmonic representation.

  • duration (Union[float, int, Fraction]) – the duration of this Notation. Use 0 to create a chord grace note

  • offset (Union[float, int, Fraction, None]) – the offset of this Notation (None to leave unset)

  • annotation (str | Text) – a text annotation

  • dynamic – a dynamic for this chord

  • fixed – if True, fix the spelling of any pitch given as notename

  • **kws – any keyword accepted by Notation

Return type:

Notation

Returns:

the created Notation