Exemplo n.º 1
0
    # 9:8 (16th notes)
    # 012345678
    # *--***-*-
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(9),
                         sustain_mask=abjad.sustain_every(indices=[1, 2, 6, 8],
                                                          period=9)),
    None,
    # stage 5
    # 9:8 (16th notes)
    # 012345678
    # *-.*-.**-
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(9),
        sustain_mask=abjad.sustain_every(indices=[1, 4, 8], period=9),
        silence_mask=abjad.silence_every(indices=[2, 5], period=9),
    ),
    # stage 6
    # 9:8 (16th notes)
    # 012345678
    # *-.*-.**-
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(9),
        sustain_mask=abjad.sustain_every(indices=[1, 4, 8], period=9),
        silence_mask=abjad.silence_every(indices=[2, 5], period=9),
    ),
    None
]
Exemplo n.º 2
0
     )
 ),
 None,
 # stage 5
 # 7:8 (16th notes)
 # 0123456
 # *-.*-*.
 subdividers.Identity(
     multiplier=2,
     rotation_cycle=range(7),
     sustain_mask=abjad.sustain_every(
         indices=[1, 4],
         period=7
     ),
     silence_mask=abjad.silence_every(
         indices=[2, 6],
         period=7
     )
 ),
 # stage 6
 # 7:8 (16th notes)
 # 0123456
 # *-.*-*.
 subdividers.Identity(
     multiplier=2,
     rotation_cycle=range(7),
     sustain_mask=abjad.sustain_every(
         indices=[1, 4],
         period=7
     ),
     silence_mask=abjad.silence_every(
         indices=[2, 6],
Exemplo n.º 3
0
    # 7:8 (16th notes)
    # 0123456
    # **-*---
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(7),
                         sustain_mask=abjad.sustain_every(indices=[2, 4, 5, 6],
                                                          period=7)),
    None,
    # stage 5
    # 7:8 (16th notes)
    # 0123456
    # *-.*-*.
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(7),
                         sustain_mask=abjad.sustain_every(indices=[1, 4],
                                                          period=7),
                         silence_mask=abjad.silence_every(indices=[2, 6],
                                                          period=7)),
    # stage 6
    # 7:8 (16th notes)
    # 0123456
    # *-.*-*.
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(7),
                         sustain_mask=abjad.sustain_every(indices=[1, 4],
                                                          period=7),
                         silence_mask=abjad.silence_every(indices=[2, 6],
                                                          period=7)),
    None
]
Exemplo n.º 4
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

Identity = subdividers.Identity

# 11:8
# 0123456789a
# .*-..**.*--

period = 11
rotation_cycle = range(period)
sustain_mask = abjad.sustain_every(indices=[2, 9, 10], period=period)
silence_mask = abjad.silence_every(indices=[0, 3, 4, 7], period=period)

subdividers = [None, None]

for i in range(4):
    subdividers.append(
        Identity(
            rotation_cycle=rotation_cycle,
            sustain_mask=sustain_mask,
            silence_mask=silence_mask
        )
    )

subdividers.append(None)
Exemplo n.º 5
0
    # 012345678
    # *--***-*-
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(9),
        sustain_mask=abjad.sustain_every(indices=[1, 2, 6, 8], period=9)
    ),
    None,
    # stage 5
    # 9:8 (16th notes)
    # 012345678
    # *-.*-.**-
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(9),
        sustain_mask=abjad.sustain_every(indices=[1, 4, 8], period=9),
        silence_mask=abjad.silence_every(indices=[2, 5], period=9),
    ),
    # stage 6
    # 9:8 (16th notes)
    # 012345678
    # *-.*-.**-
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(9),
        sustain_mask=abjad.sustain_every(indices=[1, 4, 8], period=9),
        silence_mask=abjad.silence_every(indices=[2, 5], period=9),
    ),
    None
]
Exemplo n.º 6
0
    # 10:8
    # 0123456789
    # *-**-*-*--
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(10),
                         sustain_mask=abjad.sustain_every(
                             indices=[1, 4, 6, 8, 9], period=10)),
    None,
    # stage 5 same as left_hand
    # 10:8
    # 0123456789
    # *-.*.*-*-.
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(10),
                         sustain_mask=abjad.sustain_every(indices=[1, 6, 8],
                                                          period=10),
                         silence_mask=abjad.silence_every(indices=[2, 4, 9],
                                                          period=10)),
    # stage 6 same as left_hand
    # 10:8
    # 0123456789
    # *-.*.*-*-.
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(10),
                         sustain_mask=abjad.sustain_every(indices=[1, 6, 8],
                                                          period=10),
                         silence_mask=abjad.silence_every(indices=[2, 4, 9],
                                                          period=10)),
    None
]
Exemplo n.º 7
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

Identity = subdividers.Identity

# 13:8
# 0123456789abc
# *-.*-..*.*--.

period = 13
rotation_cycle = range(period)
sustain_mask = abjad.sustain_every(indices=[1, 5, 10, 11], period=period)
silence_mask = abjad.silence_every(indices=[2, 5, 6, 8], period=period)

subdividers = [None, None]

for i in range(4):
    subdividers.append(
        Identity(
            rotation_cycle=rotation_cycle,
            sustain_mask=sustain_mask,
            silence_mask=silence_mask
        )
    )

subdividers.append(None)
Exemplo n.º 8
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

Identity = subdividers.Identity

# 11:8
# 0123456789a
# .*-..**.*--

period = 11
rotation_cycle = range(period)
sustain_mask = abjad.sustain_every(indices=[2, 9, 10], period=period)
silence_mask = abjad.silence_every(indices=[0, 3, 4, 7], period=period)

subdividers = [None, None]

for i in range(4):
    subdividers.append(
        Identity(rotation_cycle=rotation_cycle,
                 sustain_mask=sustain_mask,
                 silence_mask=silence_mask))

subdividers.append(None)
Exemplo n.º 9
0
    # 1:1 (16th notes)
    # 01234567
    # *-**-*--
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(8),
                         sustain_mask=abjad.sustain_every(indices=[1, 4, 6],
                                                          period=8)),
    None,
    # stage 5 same as left_hand
    # 1:1 (16th notes)
    # 01234567
    # .**.-*-.
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(8),
                         sustain_mask=abjad.sustain_every(indices=[4, 6],
                                                          period=8),
                         silence_mask=abjad.silence_every(indices=[0, 3, 7],
                                                          period=8)),
    # stage 6 same as left_hand
    # 1:1 (16th notes)
    # 01234567
    # .**.-*-.
    subdividers.Identity(multiplier=2,
                         rotation_cycle=range(8),
                         sustain_mask=abjad.sustain_every(indices=[4, 6],
                                                          period=8),
                         silence_mask=abjad.silence_every(indices=[0, 3, 7],
                                                          period=8)),
    None
]
Exemplo n.º 10
0
     )
 ),
 None,
 # stage 5 same as left_hand
 # 10:8
 # 0123456789
 # *-.*.*-*-.
 subdividers.Identity(
     multiplier=2,
     rotation_cycle=range(10),
     sustain_mask=abjad.sustain_every(
         indices=[1, 6, 8],
         period=10
     ),
     silence_mask=abjad.silence_every(
         indices=[2, 4, 9],
         period=10
     )
 ),
 # stage 6 same as left_hand
 # 10:8
 # 0123456789
 # *-.*.*-*-.
 subdividers.Identity(
     multiplier=2,
     rotation_cycle=range(10),
     sustain_mask=abjad.sustain_every(
         indices=[1, 6, 8],
         period=10
     ),
     silence_mask=abjad.silence_every(
         indices=[2, 4, 9],
Exemplo n.º 11
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

Identity = subdividers.Identity

# 12:8
# 0123456789ab
# -..*.*--**.*

period = 12
rotation_cycle = range(period)
sustain_mask = abjad.sustain_every(indices=[0, 6, 7], period=period)
silence_mask = abjad.silence_every(indices=[1, 2, 4, 10], period=period)

subdividers = [None, None]

for i in range(4):
    subdividers.append(
        Identity(
            rotation_cycle=rotation_cycle,
            sustain_mask=sustain_mask,
            silence_mask=silence_mask
        )
    )

subdividers.append(None)