Duration token
==============


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

* Abjad :class:`Rational <abjad.rational.rational.Rational>` instances
* Python pairs
* Python `int` and `long` instances

For example:

::

	abjad> note = Note(0, Rational(1, 4))

.. image:: images/example1.png

And:

::

	abjad> note = Note(0, (3, 8))

.. image:: images/example2.png

And:

::

	abjad> note = Note(0, 1)

.. image:: images/example3.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.


