# Path: bl/ugen.py
# N = _Nothing()


import random
from bl.ugen import N
    if random.random() <= bprob:
        if random.random() <= 0.5:  # half chop
            slice = _cut(notes[m:])
            notes = notes[:m] + slice
        else:  # quarter chop
            s = m + m / 2
            if random.random() <= bprob:
                slice = _cut(notes[s:])
                notes = notes[:s] + slice
            else:
                slice = _cut(notes[m:s])
                notes = notes[:m] + slice + notes[s:]

    if random.random() <= aprob:
        if random.random() <= 0.5:
            slice = _cut(notes[:m])
            notes = slice + notes[m:]
        else:
            s = m / 2
            if random.random() <= bprob:
                slice = _cut(notes[:s])
                notes = slice + notes[s:]
            else:
                slice = _cut(notes[s:m])
                notes = notes[:s] + slice + notes[m:]
    return notes


def _cut(notes):
    size = len(notes)

# Path: bl/ugen.py
# N = _Nothing()


# Path: bl/nostalgia/bcut.py
import random
from bl.ugen import N

    if random.random() <= bprob:
        if random.random() <= 0.5:  # half chop
            slice = _cut(notes[m:])
            notes = notes[:m] + slice
        else:  # quarter chop
            s = m + m / 2
            if random.random() <= bprob:
                slice = _cut(notes[s:])
                notes = notes[:s] + slice
            else:
                slice = _cut(notes[m:s])
                notes = notes[:m] + slice + notes[s:]

    if random.random() <= aprob:
        if random.random() <= 0.5:
            slice = _cut(notes[:m])
            notes = slice + notes[m:]
        else:
            s = m / 2
            if random.random() <= bprob:
                slice = _cut(notes[:s])
                notes = slice + notes[s:]
            else:
                slice = _cut(notes[s:m])
                notes = notes[:s] + slice + notes[m:]
    return notes


def _cut(notes):
    size = len(notes)

    if notes[0] == N: