(self)
return result
Return a Python list of the time step at each event in this sequence.
Return a Python list of the time step at each event in this sequence.
Return a Python list of the time step at each event in this sequence .
def steps(self):
    """Return a Python list of the time step at each event in this sequence."""
    step = self.start_step
    result = []
    for event in self:
      result.append(step)
      if event.event_type == PolyphonicEvent.STEP_END:
        step += 1
    return result
def steps ( self ) : step = self . start_step result = [ ] for event in self : result . append ( step ) if event . event_type == PolyphonicEvent . STEP_END : step += 1 return result