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=None)

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=[])

Assign an unused midi channel given a list of used channels.

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

Note that midi channel 10 (9 in music21) is special, and thus is skipped.

Currently only 16 channels are used.

Note that the reused “usedChannels=[]” in the signature is NOT a mistake, but necessary for the case where there needs to be a global list.

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

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
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

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

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

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

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

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

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

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

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

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

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

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
>>> 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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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
>>> 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

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

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

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

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

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

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

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

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

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

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

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

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
>>> 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

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

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

Koto bases

Koto read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Koto read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

Koto methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Koto instance variables

Instance variables inherited from Music21Object:

Lute

class music21.instrument.Lute

Lute bases

Lute read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Lute read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

Lute methods

Methods inherited from Instrument:

Methods inherited from Music21Object:

Methods inherited from ProtoM21Object:

Lute instance variables

Instance variables inherited from Music21Object:

Mandolin

class music21.instrument.Mandolin

Mandolin bases

Mandolin read-only properties

Read-only properties inherited from Music21Object:

Read-only properties inherited from ProtoM21Object:

Mandolin read/write properties

Read/write properties inherited from StringInstrument:

Read/write properties inherited from Music21Object:

Mandolin methods

Methods inherited from Instrument:

Methods inherited from Music21Object: