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


import random
from bl.ugen import N
    for note in notes:
        notes2.append(note)
        for i in range(f):
            notes2.append(N)
    return notes2


def cut(notes, aprob=0.25, bprob=0.25):
    size = len(notes)
    m = size / 2
    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:

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


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

    for note in notes:
        notes2.append(note)
        for i in range(f):
            notes2.append(N)
    return notes2


def cut(notes, aprob=0.25, bprob=0.25):
    size = len(notes)
    m = size / 2
    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])