Duration token

Abjad notes, rests, chords, tuplets and other durated components accept duration input in a couple of different formats.

  • Abjad Rational instances
  • Python pairs
  • Python int and long instances

For example:

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

And:

abjad> note = Note(0, (3, 8))
../../../../_images/example24.png

And:

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

The Abjad duration token generalizes these different types of input.

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

Note

Abjad does not count the Python float among the valid types of duration token.

Previous topic

Assignability

Next topic

Prolation

This Page