(self)
Starts the models internal composition over at beat 0, with no notes.

    Also resets statistics about whether the composition is in the middle of a
    melodic leap.
Starts the models internal composition over at beat 0, with no notes.
Starts the models internal composition over at beat 0 with no notes .
def reset_composition(self):
    """Starts the models internal composition over at beat 0, with no notes.

    Also resets statistics about whether the composition is in the middle of a
    melodic leap.
    """
    self.beat = 0
    self.composition = []
    self.composition_direction = 0
    self.leapt_from = None
    self.steps_since_last_leap = 0
def reset_composition ( self ) : self . beat = 0 self . composition = [ ] self . composition_direction = 0 self . leapt_from = None self . steps_since_last_leap = 0