# Path: bl/utils.py
# def getClock(clock=None):
#     if clock is None:
#         from bl.scheduler import BeatClock
#         return BeatClock.defaultClock
#     return clock


from bl.utils import getClock
#from twisted.python import log


class LoopRecorder(object):
    """
    A LoopRecorder is a simple object for recording arbitrary events as a loop
    over the a duration given in measures.

    Up to 10 recorded loops can be fetched from a FIFO buffer.  When a new loop
    is recorded it is added to the buffer and the oldest is removed if capacity
    exceeds 10.
    """

    def __init__(self, measures=1, clock=None, meter=None):

# Path: bl/utils.py
# def getClock(clock=None):
#     if clock is None:
#         from bl.scheduler import BeatClock
#         return BeatClock.defaultClock
#     return clock


# Path: bl/recorder.py
from bl.utils import getClock

#from twisted.python import log


class LoopRecorder(object):
    """
    A LoopRecorder is a simple object for recording arbitrary events as a loop
    over the a duration given in measures.

    Up to 10 recorded loops can be fetched from a FIFO buffer.  When a new loop
    is recorded it is added to the buffer and the oldest is removed if capacity
    exceeds 10.
    """

    def __init__(self, measures=1, clock=None, meter=None):

        self.clock = getClock(clock)