Pitch token input

Abjad notes and chords accept all of the following as pitch input:

  1. Python int and long instances
  2. Python float instances
  3. Abjad Pitch instances

For example:

abjad> note = Note(0, (1, 4))
../../../../_images/pitch_token1.png

And:

abjad> note = Note(5.5, (1, 4))
../../../../_images/pitch_token2.png

And:

abjad> note = Note(Pitch(13), (1, 4))
../../../../_images/pitch_token3.png

The Abjad pitch token generalizes these four types of input.

Examples in the documentation that ask for valid pitch token input accept any of the types of input show here.

Note

Abjad accepts only those float instances evenly divisible by 0.5 as valid pitch token instances because Abjad implements accidental drawing symbols to the level of the quartertone only.

Previous topic

Overview

Next topic

Notehead token input

This Page