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.

Previous topic

io.pdf

Next topic

io.show

This Page