class_docstr: Stores a polyphonic sequence as a stream of single-note events.
  
  Events are PolyphonicEvent tuples that encode event type and pitch.
class_docstr_tok: ["Stores","a","polyphonic","sequence","as","a","stream","of","single-note","events",".","Events","are","PolyphonicEvent","tuples","that","encode","event","type","and","pitch","."]
docstr: Returns the event at the given index.
docstr_tok: ["Returns","the","event","at","the","given","index","."]
code: def __getitem__(self, i):
      """Returns the event at the given index."""
      return self._events[i]
  
imports: from __future__ import division
  import collections
  import copy
  from magenta.pipelines import statistics
  from note_seq import constants
  from note_seq import events_lib
  from note_seq import sequences_lib
  from note_seq.protobuf import music_pb2
  from six.moves import range
  import tensorflow.compat.v1
label_desc: Use image node_id 10 for calling the PolyphonicSequence obj's underlying member method code with example usage: obj.__getitem__(i) and returns: self