class_docstr: Class for RNN-NADE sequence generation models.
docstr: Generate a pianoroll track from a primer pianoroll track.
  
  Args:
    num_steps: The integer length in steps of the final track, after
        generation. Includes the primer.
    primer_sequence: The primer sequence, a PianorollSequence object.
    beam_size: An integer, beam size to use when generating tracks via
        beam search.
    branch_factor: An integer, beam search branch factor to use.
    steps_per_iteration: The number of steps to take per beam search
        iteration.
  Returns:
    The generated PianorollSequence object (which begins with the provided
    primer track).
docstr_tok: ["Generate","a","pianoroll","track","from","a","primer","pianoroll","track",".","Args",":","num_steps",":","The","integer","length","in","steps","of","the","final","track",",","after","generation",".","Includes","the","primer",".","primer_sequence",":","The","primer","sequence",",","a","PianorollSequence","object",".","beam_size",":","An","integer",",","beam","size","to","use","when","generating","tracks","via","beam","search",".","branch_factor",":","An","integer",",","beam","search","branch","factor","to","use",".","steps_per_iteration",":","The","number","of","steps","to","take","per","beam","search","iteration",".","Returns",":","The","generated","PianorollSequence","object","(","which","begins","with","the","provided","primer","track",")","."]
code: def generate_pianoroll_sequence(
      self,
      num_steps,
      primer_sequence,
      beam_size=1,
      branch_factor=1,
      steps_per_iteration=1,
  ):
      """Generate a pianoroll track from a primer pianoroll track.
  
      Args:
        num_steps: The integer length in steps of the final track, after
            generation. Includes the primer.
        primer_sequence: The primer sequence, a PianorollSequence object.
        beam_size: An integer, beam size to use when generating tracks via
            beam search.
        branch_factor: An integer, beam search branch factor to use.
        steps_per_iteration: The number of steps to take per beam search
            iteration.
      Returns:
        The generated PianorollSequence object (which begins with the provided
        primer track).
      """
      return self._generate_events(
          num_steps=num_steps,
          primer_events=primer_sequence,
          temperature=None,
          beam_size=beam_size,
          branch_factor=branch_factor,
          steps_per_iteration=steps_per_iteration,
      )
  
file_path: magenta/magenta/models/pianoroll_rnn_nade/pianoroll_rnn_nade_model.py
imports: from magenta.contrib import training
  from magenta.models.pianoroll_rnn_nade import pianoroll_rnn_nade_graph
  from magenta.models.shared import events_rnn_model
  import note_seq
  from note_seq.protobuf import generator_pb2
label_desc: Use image node_id 3 for calling the PianorollRnnNadeModel obj's underlying member method code with example usage: obj.generate_pianoroll_sequence(num_steps, primer_sequence, beam_size, branch_factor, steps_per_iteration) and returns: self