'Returns how many steps long this sequence is.
Returns:
Length of the sequence in quantized steps.'

@property
def num_steps(self):

    steps = 0
    for event in self:
        if (event.event_type == PerformanceEvent.TIME_SHIFT):
            steps += event.event_value
    return steps
