music21.instrument

This module represents instruments through objects that contain general information such as Metadata for instrument names, classifications, transpositions and default MIDI program numbers. It also contains information specific to each instrument or instrument family, such as string pitches, etc. Information about instrumental ensembles is also included here though it may later be separated out into its own ensemble.py module.

Instrument

class music21.instrument.Instrument(instrumentName: str | None = None, **keywords)

Base class for all musical instruments. Designed for subclassing, though usually a more specific instrument class (such as StringInstrument) would be better to subclass.

Some defined attributes for instruments include:

  • partId

  • partName

  • partAbbreviation

  • instrumentId

  • instrumentName

  • instrumentAbbreviation

  • midiProgram (0-indexed)

  • midiChannel (0-indexed)

  • lowestNote (a note object or a string for _written_ pitch)

  • highestNote (a note object or a string for _written_ pitch)

  • transposition (an interval object)

  • inGMPercMap (bool – if it uses the GM percussion map)

  • soundfontFn (filepath to a sound font, optional)

Instrument bases

Instrument read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Instrument read/write properties

Read/write properties inherited from Music21Object:

Instrument methods

Instrument.autoAssignMidiChannel(usedChannels: list[int], maxMidi=16)

Assign an unused midi channel given a list of used channels. Music21 uses 0-indexed MIDI channels.

assigns the number to self.midiChannel and returns it as an int.

Note that the Percussion MIDI channel (9 in music21, 10 in 1-16 numbering) is special, and thus is skipped.

>>> used = [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11]
>>> i = instrument.Violin()
>>> i.autoAssignMidiChannel(used)
12
>>> i.midiChannel
12

Note that used is unchanged after calling this and would need to be updated manually

>>> used
[0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11]

Unpitched percussion will be set to 9, so long as it’s not in the filter list:

>>> used = [0]
>>> i = instrument.Maracas()
>>> i.autoAssignMidiChannel(used)
9
>>> i.midiChannel
9
>>> used = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>>> i = instrument.Woodblock()
>>> i.autoAssignMidiChannel(used)
11
>>> i.midiChannel
11

If all 16 channels are used, an exception is raised:

>>> used2 = range(16)
>>> i = instrument.Instrument()
>>> i.autoAssignMidiChannel(used2)
Traceback (most recent call last):
music21.exceptions21.InstrumentException: we are out of midi channels! help!

Get around this by assinging higher channels:

>>> i.autoAssignMidiChannel(used2, maxMidi=32)
16
>>> i.midiChannel
16
  • Changed in v.9 – usedChannelList is required, add maxMidi as an optional parameter.

    various small tweaks for corner cases.

Instrument.bestName()

Find a viable name, looking first at instrument, then part, then abbreviations.

Instrument.instrumentIdRandomize()

Force a unique id by using an MD5

Instrument.partIdRandomize()

Force a unique id by using an MD5

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Instrument instance variables

Instance variables inherited from Music21Object:

Accordion

class music21.instrument.Accordion(**keywords)

Accordion bases

Accordion read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Accordion read/write properties

Read/write properties inherited from Music21Object:

Accordion methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Accordion instance variables

Instance variables inherited from Music21Object:

AcousticBass

class music21.instrument.AcousticBass(**keywords)

AcousticBass bases

AcousticBass read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

AcousticBass read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

AcousticBass methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

AcousticBass instance variables

Instance variables inherited from Music21Object:

AcousticGuitar

class music21.instrument.AcousticGuitar(**keywords)

AcousticGuitar bases

AcousticGuitar read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

AcousticGuitar read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

AcousticGuitar methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

AcousticGuitar instance variables

Instance variables inherited from Music21Object:

Agogo

class music21.instrument.Agogo(**keywords)

Agogo bases

Agogo read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Agogo read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

Agogo methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Agogo instance variables

Instance variables inherited from Music21Object:

Alto

class music21.instrument.Alto(**keywords)

Alto bases

Alto read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Alto read/write properties

Read/write properties inherited from Music21Object:

Alto methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Alto instance variables

Instance variables inherited from Music21Object:

AltoSaxophone

class music21.instrument.AltoSaxophone(**keywords)

AltoSaxophone bases

AltoSaxophone read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

AltoSaxophone read/write properties

Read/write properties inherited from Music21Object:

AltoSaxophone methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

AltoSaxophone instance variables

Instance variables inherited from Music21Object:

Bagpipes

class music21.instrument.Bagpipes(**keywords)

Bagpipes bases

Bagpipes read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Bagpipes read/write properties

Read/write properties inherited from Music21Object:

Bagpipes methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Bagpipes instance variables

Instance variables inherited from Music21Object:

Banjo

class music21.instrument.Banjo(**keywords)

Banjo bases

Banjo read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Banjo read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

Banjo methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Banjo instance variables

Instance variables inherited from Music21Object:

Baritone

class music21.instrument.Baritone(**keywords)

Baritone bases

Baritone read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Baritone read/write properties

Read/write properties inherited from Music21Object:

Baritone methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Baritone instance variables

Instance variables inherited from Music21Object:

BaritoneSaxophone

class music21.instrument.BaritoneSaxophone(**keywords)

BaritoneSaxophone bases

BaritoneSaxophone read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

BaritoneSaxophone read/write properties

Read/write properties inherited from Music21Object:

BaritoneSaxophone methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

BaritoneSaxophone instance variables

Instance variables inherited from Music21Object:

Bass

class music21.instrument.Bass(**keywords)

Bass bases

Bass read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Bass read/write properties

Read/write properties inherited from Music21Object:

Bass methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Bass instance variables

Instance variables inherited from Music21Object:

BassClarinet

class music21.instrument.BassClarinet(**keywords)
>>> bcl = instrument.BassClarinet()
>>> bcl.instrumentName
'Bass clarinet'
>>> bcl.midiProgram
71
>>> 'WoodwindInstrument' in bcl.classes
True

BassClarinet bases

BassClarinet read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

BassClarinet read/write properties

Read/write properties inherited from Music21Object:

BassClarinet methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

BassClarinet instance variables

Instance variables inherited from Music21Object:

BassDrum

class music21.instrument.BassDrum(**keywords)

BassDrum bases

BassDrum read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

BassDrum read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

BassDrum methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

BassDrum instance variables

Instance variables inherited from Music21Object:

BassTrombone

class music21.instrument.BassTrombone(**keywords)

BassTrombone bases

BassTrombone read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

BassTrombone read/write properties

Read/write properties inherited from Music21Object:

BassTrombone methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

BassTrombone instance variables

Instance variables inherited from Music21Object:

Bassoon

class music21.instrument.Bassoon(**keywords)

Bassoon bases

Bassoon read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Bassoon read/write properties

Read/write properties inherited from Music21Object:

Bassoon methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Bassoon instance variables

Instance variables inherited from Music21Object:

BongoDrums

class music21.instrument.BongoDrums(**keywords)

BongoDrums bases

BongoDrums read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

BongoDrums read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

BongoDrums methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

BongoDrums instance variables

Instance variables inherited from Music21Object:

BrassInstrument

class music21.instrument.BrassInstrument(**keywords)

BrassInstrument bases

BrassInstrument read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

BrassInstrument read/write properties

Read/write properties inherited from Music21Object:

BrassInstrument methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

BrassInstrument instance variables

Instance variables inherited from Music21Object:

Castanets

class music21.instrument.Castanets(**keywords)

Castanets bases

Castanets read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Castanets read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

Castanets methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Castanets instance variables

Instance variables inherited from Music21Object:

Celesta

class music21.instrument.Celesta(**keywords)

Celesta bases

Celesta read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Celesta read/write properties

Read/write properties inherited from Music21Object:

Celesta methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Celesta instance variables

Instance variables inherited from Music21Object:

Choir

class music21.instrument.Choir(**keywords)

Choir bases

Choir read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Choir read/write properties

Read/write properties inherited from Music21Object:

Choir methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Choir instance variables

Instance variables inherited from Music21Object:

ChurchBells

class music21.instrument.ChurchBells(**keywords)

ChurchBells bases

ChurchBells read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

ChurchBells read/write properties

Read/write properties inherited from Music21Object:

ChurchBells methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

ChurchBells instance variables

Instance variables inherited from Music21Object:

Clarinet

class music21.instrument.Clarinet(**keywords)

Clarinet bases

Clarinet read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Clarinet read/write properties

Read/write properties inherited from Music21Object:

Clarinet methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Clarinet instance variables

Instance variables inherited from Music21Object:

Clavichord

class music21.instrument.Clavichord(**keywords)

Clavichord bases

Clavichord read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Clavichord read/write properties

Read/write properties inherited from Music21Object:

Clavichord methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Clavichord instance variables

Instance variables inherited from Music21Object:

Conductor

class music21.instrument.Conductor(**keywords)

Presently used only for tracking the MIDI track containing tempo, key signature, and related metadata.

Conductor bases

Conductor read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Conductor read/write properties

Read/write properties inherited from Music21Object:

Conductor methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Conductor instance variables

Instance variables inherited from Music21Object:

CongaDrum

class music21.instrument.CongaDrum(**keywords)

CongaDrum bases

CongaDrum read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

CongaDrum read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

CongaDrum methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

CongaDrum instance variables

Instance variables inherited from Music21Object:

Contrabass

class music21.instrument.Contrabass(**keywords)

For the Contrabass (or double bass), the stringPitches attribute refers to the sounding pitches of each string; whereas the lowestNote attribute refers to the lowest written note.

Contrabass bases

Contrabass read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Contrabass read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

Contrabass methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Contrabass instance variables

Instance variables inherited from Music21Object:

Contrabassoon

class music21.instrument.Contrabassoon(**keywords)

Contrabassoon bases

Contrabassoon read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Contrabassoon read/write properties

Read/write properties inherited from Music21Object:

Contrabassoon methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Contrabassoon instance variables

Instance variables inherited from Music21Object:

Cowbell

class music21.instrument.Cowbell(**keywords)

Cowbell bases

Cowbell read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Cowbell read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

Cowbell methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Cowbell instance variables

Instance variables inherited from Music21Object:

CrashCymbals

class music21.instrument.CrashCymbals(**keywords)

CrashCymbals bases

CrashCymbals read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

CrashCymbals read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

CrashCymbals methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

CrashCymbals instance variables

Instance variables inherited from Music21Object:

Cymbals

class music21.instrument.Cymbals(**keywords)

Cymbals bases

Cymbals read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Cymbals read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

Cymbals methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Cymbals instance variables

Instance variables inherited from Music21Object:

Dulcimer

class music21.instrument.Dulcimer(**keywords)

Dulcimer bases

Dulcimer read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Dulcimer read/write properties

Read/write properties inherited from Music21Object:

Dulcimer methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Dulcimer instance variables

Instance variables inherited from Music21Object:

ElectricBass

class music21.instrument.ElectricBass(**keywords)

ElectricBass bases

ElectricBass read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

ElectricBass read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

ElectricBass methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

ElectricBass instance variables

Instance variables inherited from Music21Object:

ElectricGuitar

class music21.instrument.ElectricGuitar(**keywords)

ElectricGuitar bases

ElectricGuitar read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

ElectricGuitar read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

ElectricGuitar methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

ElectricGuitar instance variables

Instance variables inherited from Music21Object:

ElectricOrgan

class music21.instrument.ElectricOrgan(**keywords)

ElectricOrgan bases

ElectricOrgan read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

ElectricOrgan read/write properties

Read/write properties inherited from Music21Object:

ElectricOrgan methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

ElectricOrgan instance variables

Instance variables inherited from Music21Object:

ElectricPiano

class music21.instrument.ElectricPiano(**keywords)
>>> p = instrument.ElectricPiano()
>>> p.instrumentName
'Electric Piano'
>>> p.midiProgram
2

ElectricPiano bases

ElectricPiano read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

ElectricPiano read/write properties

Read/write properties inherited from Music21Object:

ElectricPiano methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

ElectricPiano instance variables

Instance variables inherited from Music21Object:

EnglishHorn

class music21.instrument.EnglishHorn(**keywords)

EnglishHorn bases

EnglishHorn read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

EnglishHorn read/write properties

Read/write properties inherited from Music21Object:

EnglishHorn methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

EnglishHorn instance variables

Instance variables inherited from Music21Object:

FingerCymbals

class music21.instrument.FingerCymbals(**keywords)

FingerCymbals bases

FingerCymbals read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

FingerCymbals read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

FingerCymbals methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

FingerCymbals instance variables

Instance variables inherited from Music21Object:

Flute

class music21.instrument.Flute(**keywords)

Flute bases

Flute read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Flute read/write properties

Read/write properties inherited from Music21Object:

Flute methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Flute instance variables

Instance variables inherited from Music21Object:

FretlessBass

class music21.instrument.FretlessBass(**keywords)

FretlessBass bases

FretlessBass read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

FretlessBass read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

FretlessBass methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

FretlessBass instance variables

Instance variables inherited from Music21Object:

Glockenspiel

class music21.instrument.Glockenspiel(**keywords)

Glockenspiel bases

Glockenspiel read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Glockenspiel read/write properties

Read/write properties inherited from Music21Object:

Glockenspiel methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Glockenspiel instance variables

Instance variables inherited from Music21Object:

Gong

class music21.instrument.Gong(**keywords)

Gong bases

Gong read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Gong read/write properties

Read/write properties inherited from Music21Object:

Gong methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Gong instance variables

Instance variables inherited from Music21Object:

Guitar

class music21.instrument.Guitar(**keywords)

Guitar bases

Guitar read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Guitar read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

Guitar methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Guitar instance variables

Instance variables inherited from Music21Object:

Handbells

class music21.instrument.Handbells(**keywords)

Handbells bases

Handbells read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Handbells read/write properties

Read/write properties inherited from Music21Object:

Handbells methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Handbells instance variables

Instance variables inherited from Music21Object:

Harmonica

class music21.instrument.Harmonica(**keywords)

Harmonica bases

Harmonica read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Harmonica read/write properties

Read/write properties inherited from Music21Object:

Harmonica methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Harmonica instance variables

Instance variables inherited from Music21Object:

Harp

class music21.instrument.Harp(**keywords)

Harp bases

Harp read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Harp read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

Harp methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Harp instance variables

Instance variables inherited from Music21Object:

Harpsichord

class music21.instrument.Harpsichord(**keywords)

Harpsichord bases

Harpsichord read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Harpsichord read/write properties

Read/write properties inherited from Music21Object:

Harpsichord methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Harpsichord instance variables

Instance variables inherited from Music21Object:

HiHatCymbal

class music21.instrument.HiHatCymbal(**keywords)

HiHatCymbal bases

HiHatCymbal read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

HiHatCymbal read/write properties

Read/write properties inherited from UnpitchedPercussion:

Read/write properties inherited from Music21Object:

HiHatCymbal methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

HiHatCymbal instance variables

Instance variables inherited from Music21Object:

Horn

class music21.instrument.Horn(**keywords)
>>> hn = instrument.Horn()
>>> hn.instrumentName
'Horn'
>>> hn.midiProgram
60
>>> 'BrassInstrument' in hn.classes
True

Horn bases

Horn read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Horn read/write properties

Read/write properties inherited from Music21Object:

Horn methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Horn instance variables

Instance variables inherited from Music21Object:

Kalimba

class music21.instrument.Kalimba(**keywords)

Kalimba bases

Kalimba read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Kalimba read/write properties

Read/write properties inherited from Music21Object:

Kalimba methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Kalimba instance variables

Instance variables inherited from Music21Object:

KeyboardInstrument

class music21.instrument.KeyboardInstrument(**keywords)

KeyboardInstrument bases

KeyboardInstrument read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

KeyboardInstrument read/write properties

Read/write properties inherited from Music21Object:

KeyboardInstrument methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

KeyboardInstrument instance variables

Instance variables inherited from Music21Object:

Koto

class music21.instrument.Koto(**keywords)

Koto bases

Koto read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object