def get_pages_for_batch(self, batch_num, num_pages_per_batch):
    """Generates the music score pages in a single batch.

    The generator takes in a seed for the RNG for each page, and outputs all
    pages at once. The seeds for all batches are consecutive for determinism,
    starting from 0, but each seed to the Mersenne Twister RNG should result in
    completely different output.

    Args:
      batch_num: The index of the batch to output.
      num_pages_per_batch: The number of pages to generate in each batch.

    Returns:
      A list of dicts holding `svg` (XML text) and `page` (text-format
          `tensorflow.moonlight.Staff` proto).
    """
    return self.get_pages(
        range(batch_num * num_pages_per_batch,
              (batch_num + 1) * num_pages_per_batch))