(self, s)
return self.encode_note_sequence(ns)
Transform a MusicXML filename into a list of score event index tuples.

    Args:
      s: Path to the MusicXML file.

    Returns:
      ids: List of score event index tuples.
Transform a MusicXML filename into a list of score event index tuples.
Transform a MusicXML filename into a list of score event index tuples .
def encode(self, s):
    """Transform a MusicXML filename into a list of score event index tuples.

    Args:
      s: Path to the MusicXML file.

    Returns:
      ids: List of score event index tuples.
    """
    if s:
      ns = note_seq.musicxml_file_to_sequence_proto(s)
    else:
      ns = note_seq.NoteSequence()
    return self.encode_note_sequence(ns)
def encode ( self , s ) : if s : ns = note_seq . musicxml_file_to_sequence_proto ( s ) else : ns = note_seq . NoteSequence ( ) return self . encode_note_sequence ( ns )