instruments¶
Instruments.
Default ranges of each instrument:
>>> names = [_ for _ in dir(abjad.instruments) if _[0].isupper()]
>>> for name in names:
... class_ = abjad.__dict__[name]
... if issubclass(class_, abjad.Instrument):
... instrument = class_()
... instrument_name = instrument.__class__.__name__
... range_string = instrument.pitch_range.range_string
... print(f"{instrument_name}: {range_string}")
...
Accordion: [E1, C8]
AltoFlute: [G3, G6]
AltoSaxophone: [Db3, A5]
AltoTrombone: [A2, Bb5]
AltoVoice: [F3, G5]
BaritoneSaxophone: [C2, Ab4]
BaritoneVoice: [A2, A4]
BassClarinet: [Bb1, G5]
BassFlute: [C3, C6]
BassSaxophone: [Ab2, E4]
BassTrombone: [C2, F4]
BassVoice: [E2, F4]
Bassoon: [Bb1, Eb5]
Cello: [C2, G5]
ClarinetInA: [Db3, A6]
ClarinetInBFlat: [D3, Bb6]
ClarinetInEFlat: [F3, C7]
Contrabass: [C1, G4]
ContrabassClarinet: [Bb0, G4]
ContrabassFlute: [G2, G5]
ContrabassSaxophone: [C1, Ab3]
Contrabassoon: [Bb0, Bb4]
EnglishHorn: [E3, C6]
Flute: [C4, D7]
FrenchHorn: [B1, F5]
Glockenspiel: [G5, C8]
Guitar: [E2, E5]
Harp: [B0, G#7]
Harpsichord: [C2, C7]
Instrument: [-inf, +inf]
Marimba: [F2, C7]
MezzoSopranoVoice: [A3, C6]
Oboe: [Bb3, A6]
Percussion: [-inf, +inf]
Piano: [A0, C8]
Piccolo: [D5, C8]
SopraninoSaxophone: [Db4, F#6]
SopranoSaxophone: [Ab3, E6]
SopranoVoice: [C4, E6]
TenorSaxophone: [Ab2, E5]
TenorTrombone: [E2, Eb5]
TenorVoice: [C3, D5]
Trumpet: [F#3, D6]
Tuba: [D1, F4]
Vibraphone: [F3, F6]
Viola: [C3, D6]
Violin: [G3, G7]
Xylophone: [C4, C7]
Two instruments active on a single staff:
>>> voice_1 = abjad.Voice("e'8 g'8 f'8 a'8")
>>> voice_2 = abjad.Voice("c'2")
>>> staff = abjad.Staff([voice_1, voice_2], simultaneous=True)
>>> flute = abjad.Flute()
>>> abjad.attach(flute, voice_1[0], context="Voice")
>>> abjad.attach(abjad.VoiceNumber(1), voice_1[0])
>>> abjad.attach(abjad.VoiceNumber(2), voice_2[0])
>>> viola = abjad.Viola()
>>> abjad.attach(viola, voice_2[0], context="Voice")
>>> abjad.show(staff)
>>> for leaf in abjad.select.leaves(voice_1):
... leaf, abjad.get.effective(leaf, abjad.Instrument)
...
(Note("e'8"), Flute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C4, D7]')))
(Note("g'8"), Flute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C4, D7]')))
(Note("f'8"), Flute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C4, D7]')))
(Note("a'8"), Flute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C4, D7]')))
>>> for leaf in abjad.select.leaves(voice_2):
... leaf, abjad.get.effective(leaf, abjad.Instrument)
...
(Note("c'2"), Viola(clefs=('alto', 'treble'), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C3, D6]'), tuning=Tuning(pitches=(NamedPitch('c'), NamedPitch('g'), NamedPitch("d'"), NamedPitch("a'")))))
Classes
Instrument. |
|
String number. |
|
Tuning. |
|
- class abjad.instruments.Accordion(clefs=('treble', 'bass'), context='StaffGroup', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[E1, C8]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.AltoFlute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('g'), pitch_range=PitchRange(range_string='[G3, G6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.AltoSaxophone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('ef'), pitch_range=PitchRange(range_string='[Db3, A5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.AltoTrombone(clefs=('bass', 'tenor'), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[A2, Bb5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.AltoVoice(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[F3, G5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.BaritoneSaxophone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('ef,'), pitch_range=PitchRange(range_string='[C2, Ab4]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.BaritoneVoice(clefs=('bass',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[A2, A4]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.BassClarinet(clefs=('treble', 'bass'), context='Staff', middle_c_sounding_pitch=NamedPitch('bf,'), pitch_range=PitchRange(range_string='[Bb1, G5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.BassFlute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('c'), pitch_range=PitchRange(range_string='[C3, C6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.BassSaxophone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('bf,,'), pitch_range=PitchRange(range_string='[Ab2, E4]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.BassTrombone(clefs=('bass',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C2, F4]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.BassVoice(clefs=('bass',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[E2, F4]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Bassoon(clefs=('bass', 'tenor'), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[Bb1, Eb5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Cello(clefs=('bass', 'tenor', 'treble'), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C2, G5]'), tuning=Tuning(pitches=(NamedPitch('c,'), NamedPitch('g,'), NamedPitch('d'), NamedPitch('a'))))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.ClarinetInA(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('a'), pitch_range=PitchRange(range_string='[Db3, A6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.ClarinetInBFlat(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('bf'), pitch_range=PitchRange(range_string='[D3, Bb6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.ClarinetInEFlat(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("ef'"), pitch_range=PitchRange(range_string='[F3, C7]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Contrabass(clefs=('bass', 'treble'), context='Staff', middle_c_sounding_pitch=NamedPitch('c'), pitch_range=PitchRange(range_string='[C1, G4]'), tuning=Tuning(pitches=(NamedPitch('c,,'), NamedPitch('a,,'), NamedPitch('d,'), NamedPitch('g,'))))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.ContrabassClarinet(clefs=('treble', 'bass'), context='Staff', middle_c_sounding_pitch=NamedPitch('bf,,'), pitch_range=PitchRange(range_string='[Bb0, G4]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.ContrabassFlute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('g,'), pitch_range=PitchRange(range_string='[G2, G5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.ContrabassSaxophone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('ef,,'), pitch_range=PitchRange(range_string='[C1, Ab3]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Contrabassoon(clefs=('bass',), context='Staff', middle_c_sounding_pitch=NamedPitch('c'), pitch_range=PitchRange(range_string='[Bb0, Bb4]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.EnglishHorn(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('f'), pitch_range=PitchRange(range_string='[E3, C6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Flute(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C4, D7]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.FrenchHorn(clefs=('bass', 'treble'), context='Staff', middle_c_sounding_pitch=NamedPitch('f'), pitch_range=PitchRange(range_string='[B1, F5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Glockenspiel(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'''"), pitch_range=PitchRange(range_string='[G5, C8]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Guitar(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('c'), pitch_range=PitchRange(range_string='[E2, E5]'), tuning=Tuning(pitches=(NamedPitch('e,'), NamedPitch('a,'), NamedPitch('d'), NamedPitch('g'), NamedPitch('b'), NamedPitch("e'"))))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Harp(clefs=('treble', 'bass'), context='StaffGroup', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[B0, G#7]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Harpsichord(clefs=('treble', 'bass'), context='StaffGroup', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C2, C7]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Instrument(clefs=(), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[-inf, +inf]'))[source]¶
Instrument.
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
check_effective_context
latent
persistent
redraw
site
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Marimba(clefs=('treble', 'bass'), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[F2, C7]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.MezzoSopranoVoice(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[A3, C6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Oboe(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[Bb3, A6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Percussion(clefs=('percussion',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[-inf, +inf]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
known_percussion
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Piano(clefs=('treble', 'bass'), context='StaffGroup', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[A0, C8]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Piccolo(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c''"), pitch_range=PitchRange(range_string='[D5, C8]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.SopraninoSaxophone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("ef'"), pitch_range=PitchRange(range_string='[Db4, F#6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.SopranoSaxophone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('bf'), pitch_range=PitchRange(range_string='[Ab3, E6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.SopranoVoice(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C4, E6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.StringNumber(numbers=(1,))[source]¶
String number.
String I:
>>> abjad.StringNumber((1,)) StringNumber(numbers=(1,))
Strings II and III:
>>> abjad.StringNumber((2, 3)) StringNumber(numbers=(2, 3))
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Gets roman numerals of string number indicator.
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
Read-only properties
- roman_numerals¶
Gets roman numerals of string number indicator.
String I:
>>> indicator = abjad.StringNumber((1,)) >>> indicator.roman_numerals ('i',)
Strings II and III:
>>> indicator = abjad.StringNumber((2, 3)) >>> indicator.roman_numerals ('ii', 'iii')
- class abjad.instruments.TenorSaxophone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch('bf,'), pitch_range=PitchRange(range_string='[Ab2, E5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.TenorTrombone(clefs=('tenor', 'bass'), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[E2, Eb5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.TenorVoice(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C3, D5]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Trumpet(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[F#3, D6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Tuba(clefs=('bass',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[D1, F4]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Tuning(pitches=())[source]¶
Tuning.
Violin tuning:
>>> pitches = [abjad.NamedPitch(_) for _ in "G3 D4 A4 E5".split()] >>> abjad.Tuning(tuple(pitches)) Tuning(pitches=(NamedPitch('g'), NamedPitch("d'"), NamedPitch("a'"), NamedPitch("e''")))
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Gets tuning pitch ranges by string number.
Gets tuning pitches by string number.
Gets two-octave pitch-ranges for each pitch in this tuning.
Voices
pitch_classes
.Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
Methods
- get_pitch_ranges_by_string_number(string_number)[source]¶
Gets tuning pitch ranges by string number.
Violin tuning:
>>> pitches = [abjad.NamedPitch(_) for _ in "G3 D4 A4 E5".split()] >>> tuning = abjad.Tuning(tuple(pitches)) >>> string_number = abjad.StringNumber((2, 3)) >>> tuning.get_pitch_ranges_by_string_number(string_number) (PitchRange(range_string='[A4, A6]'), PitchRange(range_string='[D4, D6]'))
- Return type:
- get_pitches_by_string_number(string_number)[source]¶
Gets tuning pitches by string number.
Violin tuning:
>>> pitches = [abjad.NamedPitch(_) for _ in "G3 D4 A4 E5".split()] >>> tuning = abjad.Tuning(tuple(pitches)) >>> string_number = abjad.StringNumber((2, 3)) >>> tuning.get_pitches_by_string_number(string_number) (NamedPitch("a'"), NamedPitch("d'"))
- Return type:
- voice_pitch_classes(pitch_classes, allow_open_strings=True)[source]¶
Voices
pitch_classes
.>>> pitches = [abjad.NamedPitch(_) for _ in "G3 D4 A4 E5".split()] >>> tuning = abjad.Tuning(tuple(pitches)) >>> voicings = tuning.voice_pitch_classes(("a",)) >>> for voicing in voicings: ... voicing ... (NamedPitch('a'), None, None, None) (None, None, None, NamedPitch("a''")) (None, None, None, NamedPitch("a'''")) (None, None, NamedPitch("a'"), None) (None, None, NamedPitch("a''"), None) (None, None, NamedPitch("a'''"), None) (None, NamedPitch("a'"), None, None) (None, NamedPitch("a''"), None, None) (NamedPitch("a'"), None, None, None)
>>> voicings = tuning.voice_pitch_classes( ... ("a", "d"), ... allow_open_strings=False, ... ) >>> for voicing in voicings: ... voicing ... (NamedPitch('a'), None, None, NamedPitch("d'''")) (NamedPitch('a'), None, None, NamedPitch("d''''")) (NamedPitch('a'), None, NamedPitch("d''"), None) (NamedPitch('a'), None, NamedPitch("d'''"), None) (NamedPitch('a'), NamedPitch("d''"), None, None) (NamedPitch('a'), NamedPitch("d'''"), None, None) (None, None, NamedPitch("d''"), NamedPitch("a''")) (None, None, NamedPitch("d''"), NamedPitch("a'''")) (None, None, NamedPitch("a''"), NamedPitch("d'''")) (None, None, NamedPitch("a''"), NamedPitch("d''''")) (None, None, NamedPitch("d'''"), NamedPitch("a''")) (None, None, NamedPitch("d'''"), NamedPitch("a'''")) (None, None, NamedPitch("a'''"), NamedPitch("d'''")) (None, None, NamedPitch("a'''"), NamedPitch("d''''")) (None, NamedPitch("a'"), None, NamedPitch("d'''")) (None, NamedPitch("a'"), None, NamedPitch("d''''")) (None, NamedPitch("a'"), NamedPitch("d''"), None) (None, NamedPitch("a'"), NamedPitch("d'''"), None) (None, NamedPitch("d''"), None, NamedPitch("a''")) (None, NamedPitch("d''"), None, NamedPitch("a'''")) (None, NamedPitch("d''"), NamedPitch("a''"), None) (None, NamedPitch("d''"), NamedPitch("a'''"), None) (None, NamedPitch("a''"), None, NamedPitch("d'''")) (None, NamedPitch("a''"), None, NamedPitch("d''''")) (None, NamedPitch("a''"), NamedPitch("d''"), None) (None, NamedPitch("a''"), NamedPitch("d'''"), None) (None, NamedPitch("d'''"), None, NamedPitch("a''")) (None, NamedPitch("d'''"), None, NamedPitch("a'''")) (None, NamedPitch("d'''"), NamedPitch("a''"), None) (None, NamedPitch("d'''"), NamedPitch("a'''"), None) (NamedPitch("d'"), None, None, NamedPitch("a''")) (NamedPitch("d'"), None, None, NamedPitch("a'''")) (NamedPitch("d'"), None, NamedPitch("a''"), None) (NamedPitch("d'"), None, NamedPitch("a'''"), None) (NamedPitch("d'"), NamedPitch("a'"), None, None) (NamedPitch("d'"), NamedPitch("a''"), None, None) (NamedPitch("a'"), None, None, NamedPitch("d'''")) (NamedPitch("a'"), None, None, NamedPitch("d''''")) (NamedPitch("a'"), None, NamedPitch("d''"), None) (NamedPitch("a'"), None, NamedPitch("d'''"), None) (NamedPitch("a'"), NamedPitch("d''"), None, None) (NamedPitch("a'"), NamedPitch("d'''"), None, None) (NamedPitch("d''"), None, None, NamedPitch("a''")) (NamedPitch("d''"), None, None, NamedPitch("a'''")) (NamedPitch("d''"), None, NamedPitch("a''"), None) (NamedPitch("d''"), None, NamedPitch("a'''"), None) (NamedPitch("d''"), NamedPitch("a'"), None, None) (NamedPitch("d''"), NamedPitch("a''"), None, None)
Read-only properties
- pitch_ranges¶
Gets two-octave pitch-ranges for each pitch in this tuning.
>>> pitches = [abjad.NamedPitch(_) for _ in "G3 D4 A4 E5".split()] >>> tuning = abjad.Tuning(tuple(pitches)) >>> for range_ in tuning.pitch_ranges: ... range_ ... PitchRange(range_string='[G3, G5]') PitchRange(range_string='[D4, D6]') PitchRange(range_string='[A4, A6]') PitchRange(range_string='[E5, E7]')
- class abjad.instruments.Vibraphone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[F3, F6]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Viola(clefs=('alto', 'treble'), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[C3, D6]'), tuning=Tuning(pitches=(NamedPitch('c'), NamedPitch('g'), NamedPitch("d'"), NamedPitch("a'"))))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Violin(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c'"), pitch_range=PitchRange(range_string='[G3, G7]'), tuning=Tuning(pitches=(NamedPitch('g'), NamedPitch("d'"), NamedPitch("a'"), NamedPitch("e''"))))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).
- class abjad.instruments.Xylophone(clefs=('treble',), context='Staff', middle_c_sounding_pitch=NamedPitch("c''"), pitch_range=PitchRange(range_string='[C4, C7]'))[source]¶
Attributes Summary
Implement delattr(self, name).
Return self==value.
Return self>=value.
Return self>value.
Return hash(self).
Return self<=value.
Return self<value.
Return repr(self).
Implement setattr(self, name, value).
Special methods
- overridden __delattr__(name)¶
Implement delattr(self, name).
- overridden __eq__(other)¶
Return self==value.
- overridden __ge__(other)¶
Return self>=value.
- overridden __gt__(other)¶
Return self>value.
- overridden __hash__()¶
Return hash(self).
- overridden __le__(other)¶
Return self<=value.
- overridden __lt__(other)¶
Return self<value.
-
(
Instrument
).__post_init__()¶
- overridden __repr__()¶
Return repr(self).
- overridden __setattr__(name, value)¶
Implement setattr(self, name, value).