Ejemplo n.º 1
0
def illumination_06():
    """From partitioned field 2-3."""

    part = ppfs[1][2]
    part = list(sorted(part))

    contour = []
    contour.append((5, [3]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((6, [4, 5]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((22, [0, 2]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 2))
    # extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((28, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    # extrusions.append(calligraphs.ExtrusionToken(cycle, 3, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 6

    return reading, number
Ejemplo n.º 2
0
def illumination_09():
    '''From partitioned fields 4-1 and 4-2.'''

    part = ppfs[3][0] + ppfs[3][1]
    part = list(sorted(part))
    part.remove(-12)

    contour = []
    contour.append((6, [1, 2]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    #deletions.append((10, [8, 9]))
    #deletions.append((12, [8, 9]))
    deletions.append((18, [0, 1, 5, 6, 10, 11, 12]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((11, [0, 1]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((28, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 3, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 9

    return reading, number
Ejemplo n.º 3
0
def illumination_04():
    part = ppfs[1][0]
    part = list(sorted(part))

    contour =  RC(2, 0) | RC(2, 0)

    deletions = []
    deletions.append((30, [10, 11]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((16, [0, 1, 6, 7]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((28, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 3, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 4

    return reading, number
Ejemplo n.º 4
0
def illumination_03():
    part = ppfs[0][3]
    part = list(sorted(part))

    contour = None
    contour =  RC(4, 1) | RC(4, 3)

    deletions = []
    deletions.append((26, [16, 17, 18, 19]))
    deletions.append((26, [10, 11]))
    deletions.append((26, [22, 23]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((21, [0]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 2))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((36, [0]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 2))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 4, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 3
    return reading, number
Ejemplo n.º 5
0
def illumination_07():
    '''From partitioned field 3-1.'''

    part = ppfs[2][0]
    part = list(sorted(part))

    contour = []
    contour.append((5, [2, 3]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((10, [8, 9]))
    deletions.append((12, [8, 9]))
    deletions.append((16, [8, 9]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((4, [1, 3]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((28, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 3, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 7

    return reading, number
Ejemplo n.º 6
0
def illumination_15():
    '''From partitioned fields 6-2, 6-3 and 6-4.'''

    part = ppfs[5][1] + ppfs[5][2] + ppfs[5][3]
    part = list(sorted(part))
    pset = pitchtools.PitchSet(part)
    pitch_numbers = list(pset.numbers)
    pitch_numbers.remove(6)
    pitch_numbers.remove(1)
    pitch_numbers.remove(-3)
    pitch_numbers.remove(-7)
    pitch_numbers.remove(-9)
    pset = pitchtools.PitchSet(pitch_numbers)
    part = pitch_numbers

    contour = []
    contour.append((6, [1, 2]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((15, [0, 1, 2, 6, 7, 8]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((5, [0]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((15, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 2))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 4, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 15

    return reading, number
Ejemplo n.º 7
0
def illumination_11():
    '''From partitioned fields ?.'''

    part = ppfs[4][0] + ppfs[4][1] + ppfs[4][2]
    part = list(sorted(part))
    pset = pitchtools.PitchSet(part)
    pitch_numbers = list(pset.numbers)
    pitch_numbers.remove(-17)
    pitch_numbers.remove(-13)
    pitch_numbers.remove(-12)
    pitch_numbers.remove(-10)
    pset = pitchtools.PitchSet(pitch_numbers)
    part = pitch_numbers

    contour = []
    contour.append((6, [1, 2]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((12, [0, 1, 5, 6]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((24, [2, 3, 12, 13]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((28, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 3, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 11

    return reading, number
Ejemplo n.º 8
0
def illumination_17():
    '''From partitioned fields 7-3, 7-4 and 7-5.'''

    part = ppfs[6][2] + ppfs[6][3] + ppfs[6][4]
    part = list(sorted(part))
    pset = pitchtools.PitchSet(part)
    pitch_numbers = list(pset.numbers)
    pitch_numbers.remove(-7)
    pitch_numbers.remove(-5)
    pitch_numbers.remove(6)
    pitch_numbers.remove(9)
    pset = pitchtools.PitchSet(pitch_numbers)
    part = pitch_numbers

    contour = []
    contour.append((5, [1, 3]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((12, [0, 1, 7, 8, 10]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((5, [0]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((15, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 2))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 4, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 17

    return reading, number
Ejemplo n.º 9
0
def illumination_13():
    '''From partitioned fields 6-1.'''

    part = ppfs[5][0]
    part = list(sorted(part))
    #pset = pitchtools.PitchSet(part)
    #pitch_numbers = list(pset.numbers)
    #pitch_numbers.remove(25)
    #pitch_numbers.remove(6)
    #pitch_numbers.remove(-3)
    #pset = pitchtools.PitchSet(pitch_numbers)
    #part = pitch_numbers

    contour = []
    contour.append((6, [1, 2]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((12, [0, 1, 5, 6]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((5, [0]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((28, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 3, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 13

    return reading, number
Ejemplo n.º 10
0
def illumination_12():
    '''From partitioned fields 5-3, 5-4 and 5-5.'''

    part = ppfs[4][2] + ppfs[4][3] + ppfs[4][4]
    part = list(sorted(part))
    pset = pitchtools.PitchSet(part)
    pitch_numbers = list(pset.numbers)
    pitch_numbers.remove(25)
    pitch_numbers.remove(6)
    pitch_numbers.remove(-3)
    pset = pitchtools.PitchSet(pitch_numbers)
    part = pitch_numbers

    contour = []
    contour.append((5, [1, 2]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((12, [0, 1, 5, 6]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((20, [3, 4, 5, 9, 10, 11, 17, 18, 19]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((28, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 3, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 12

    return reading, number
Ejemplo n.º 11
0
def illumination_18():
    '''From partitioned fields 8-2 and 8-3.'''

    part = ppfs[7][1] + ppfs[7][2]
    part = list(sorted(part))
    pset = pitchtools.PitchSet(part)
    pitch_numbers = list(pset.numbers)
    pitch_numbers.remove(-14)
    pset = pitchtools.PitchSet(pitch_numbers)
    part = pitch_numbers

    contour = []
    contour.append((5, [1, 3]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((14, [0, 2, 3, 8, 9]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((15, [0, 1, 5, 6]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((15, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 2))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 4, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 18

    return reading, number
Ejemplo n.º 12
0
def illumination_10():
    '''From partitioned fields 4-3, 4-4 and 4-5.'''

    part = ppfs[3][2] + ppfs[3][3] + ppfs[3][4]
    part = list(sorted(part))
    part.remove(25)
    part.remove(21)
    part.remove(15)
    pset = pitchtools.PitchSet(part)

    contour = []
    contour.append((6, [1, 2]))
    contour = sievetools.cycle_tokens_to_sieve(*contour)

    deletions = []
    deletions.append((18, [0, 1, 4, 5]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((12, [0, 1, 2, 3]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    cycle = []
    cycle.append((28, [10]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 1))
    #extrusions.append(calligraphs.ExtrusionToken(cycle, 3, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 10

    return reading, number
Ejemplo n.º 13
0
def illumination_05():
    '''From partitioned field 2-2.'''

    part = ppfs[1][1]
    part = list(sorted(part))

    contour =  RC(4, 0) | RC(4, 1) | RC(4, 2)

    deletions = []
    deletions.append((14, [1, 2, 9]))
    deletions = sievetools.cycle_tokens_to_sieve(*deletions)

    extrusions = []

    cycle = []
    cycle.append((22, [0, 2]))
    cycle = sievetools.cycle_tokens_to_sieve(*cycle)
    function = lambda x: list(calligraphs.cycle_backward(x, 2))
    extrusions.append(calligraphs.ExtrusionToken(cycle, 2, function))

    reading = calligraphs.sacred_reading(part, contour, deletions, *extrusions)
    number = 5
    return reading, number