class_docstr: Encodes list/array format piece into pianorolls and decodes into midi.
code: def __init__(
      self,
      shortest_duration=0.125,
      min_pitch=36,
      max_pitch=81,
      separate_instruments=True,
      num_instruments=None,
      quantization_level=None,
  ):
      assert num_instruments is not None
      self.shortest_duration = shortest_duration
      self.min_pitch = min_pitch
      self.max_pitch = max_pitch
      self.separate_instruments = separate_instruments
      self.num_instruments = num_instruments
      self.quantization_level = quantization_level
      if quantization_level is None:
          quantization_level = self.shortest_duration
  
file_path: magenta/magenta/models/coconet/lib_pianoroll.py
imports: import numpy
  import pretty_midi
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new PianorollEncoderDecoder object from inherited base classes: object with example: obj = PianorollEncoderDecoder(shortest_duration, min_pitch, max_pitch, separate_instruments, num_instruments, quantization_level)