(self, ids, strip_extraneous=False)
return tmp_file_path
Transform a sequence of event indices into a performance MIDI file.

    Args:
      ids: List of performance event indices.
      strip_extraneous: Whether to strip EOS and padding from the end of `ids`.

    Returns:
      Path to the temporary file where the MIDI was saved.
Transform a sequence of event indices into a performance MIDI file.
Transform a sequence of event indices into a performance MIDI file .
def decode(self, ids, strip_extraneous=False):
    """Transform a sequence of event indices into a performance MIDI file.

    Args:
      ids: List of performance event indices.
      strip_extraneous: Whether to strip EOS and padding from the end of `ids`.

    Returns:
      Path to the temporary file where the MIDI was saved.
    """
    ns = self.decode_to_note_sequence(ids, strip_extraneous=strip_extraneous)

    _, tmp_file_path = tempfile.mkstemp('_decode.mid')
    note_seq.sequence_proto_to_midi_file(ns, tmp_file_path)

    return tmp_file_path
def decode ( self , ids , strip_extraneous = False ) : ns = self . decode_to_note_sequence ( ids , strip_extraneous = strip_extraneous ) _ , tmp_file_path = tempfile . mkstemp ( '_decode.mid' ) note_seq . sequence_proto_to_midi_file ( ns , tmp_file_path ) return tmp_file_path