io.play — Abjad v1.1.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »

# io.play

`abjad.tools.io.` `play`(expr)

  Call `play(expr)` to render Abjad expression `expr` as MIDI and then open with the cross-platform file-opener.

      abjad> t = Note(0, (1, 4))
      abjad> play(t)

  This input renders and then opens a one-note MIDI file.

  - Abjad outputs MIDI files of the format `filename.mid` under Windows.
  - Abjad outputs MIDI files of the format `filename.midi` under other operating systems.

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »