(self, sequences=None)
return list(map(self.encoder.encode, sequences))
Turn sequences into pianorolls.

    Args:
      sequences: the collection of sequences to convert. If not given, the
          entire dataset is converted.

    Returns:
      A list of multi-instrument pianorolls, each shaped
          (duration, pitches, instruments)
Turn sequences into pianorolls.
Turn sequences into pianorolls .
def get_pianorolls(self, sequences=None):
    """Turn sequences into pianorolls.

    Args:
      sequences: the collection of sequences to convert. If not given, the
          entire dataset is converted.

    Returns:
      A list of multi-instrument pianorolls, each shaped
          (duration, pitches, instruments)
    """
    if sequences is None:
      sequences = self.get_sequences()
    return list(map(self.encoder.encode, sequences))
def get_pianorolls ( self , sequences = None ) : if sequences is None : sequences = self . get_sequences ( ) return list ( map ( self . encoder . encode , sequences ) )