'Increase the resolution of an event sequence.
Increases the resolution of a SimpleEventSequence object by a factor of
`k`.
Args:
k: An integer, the factor by which to increase the resolution of the
event sequence.
fill_event: Event value to use to extend each low-resolution event. If
None, each low-resolution event value will be repeated `k` times.'

def increase_resolution(self, k, fill_event=None):

    if (fill_event is None):
        fill = (lambda event: ([event] * k))
    else:
        fill = (lambda event: ([event] + ([fill_event] * (k - 1))))
    new_events = []
    for event in self._events:
        new_events += fill(event)
    self._events = new_events
    self._start_step *= k
    self._end_step *= k
    self._steps_per_bar *= k
    self._steps_per_quarter *= k
