VoiceInterface

class abjad.voice.interface.interface.VoiceInterface(_client)

Bases: abjad.core.interface._Interface, abjad.core.formatcontributor._FormatContributor

Manage LilyPond and Abjad voice settings.

abjad> t = Voice(construct.scale(4))
abjad> t[0].voice      
<VoiceInterface>
explicit

Read-only reference to first Abjad Voice in parentage of client.

  • If no explicit Abjad Voice in parentage of client, return None.
abjad> t.voice.explicit
Voice{4}
number

Read / write LilyPond number of this voice.

  • Default value: None.
  • Allowed values: 1, 2, 3, 4, None.
abjad> t.voice.number = 1
abjad> t.voice.number
1
abjad> print t.format
\new Voice {
        \voiceOne
        c'8
        d'8
        e'8
        f'8
}

Previous topic

TupletNumberInterface

Next topic

Beam

This Page