music21.percussion

PercussionChord

class music21.percussion.PercussionChord(notes: Union[None, str, Sequence[str], Sequence[Pitch], Sequence[NotRest], Sequence[int]] = None, **keywords)

ChordBase and :class:`~music21.note.NotRest subclass that is NOT a Chord because one or more notes is an Unpitched object.

>>> pChord = percussion.PercussionChord([note.Unpitched('D4'), note.Note('E5')])
>>> pChord.isChord
False

Has notes, just like any ChordBase:

>>> pChord.notes
(<music21.note.Unpitched object at 0x...>, <music21.note.Note E>)

Assign them to another PercussionChord:

>>> pChord2 = percussion.PercussionChord()
>>> pChord2.notes = pChord.notes
>>> pChord2.notes
(<music21.note.Unpitched object at 0x...>, <music21.note.Note E>)

Don’t attempt setting anything but Note or Unpitched objects as notes:

>>> pChord2.notes = [note.Rest()]
Traceback (most recent call last):
TypeError: every element of notes must be a note.Note or note.Unpitched object

PercussionChord bases

PercussionChord read-only properties

Read-only properties inherited from GeneralNote:

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

PercussionChord read/write properties

PercussionChord.notes

Read/write properties inherited from ChordBase:

Read/write properties inherited from NotRest:

Read/write properties inherited from GeneralNote:

Read/write properties inherited from Music21Object:

PercussionChord methods

Methods inherited from ChordBase:

Methods inherited from NotRest:

Methods inherited from GeneralNote:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

PercussionChord instance variables

Instance variables inherited from ChordBase:

Instance variables inherited from NotRest:

Instance variables inherited from GeneralNote:

Instance variables inherited from Music21Object: