Avoid creating a tempfile because pretty_midi can just write to a filehandle directly.
Avoid creating a tempfile because pretty_midi can just write to a filehandle directly.

Fixes #16

PiperOrigin-RevId: 333181768

magenta/note-seq,magenta/note-seq,magenta/note-seq