code: def pad(self, pad_length):
          
          self.pianoroll = np.pad(
              self.pianoroll, ((0, pad_length), (0, 0)), 'constant')
docs: Pad the pianoroll with zeros at the end along the time axis.
  
          Parameters
          ----------
          pad_length : int
              The length to pad with zeros along the time axis.