コード例 #1
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers

subdividers = [
    None,
    None,
    subdividers.Identity(),
    subdividers.Identity(),
    subdividers.Identity(),
    subdividers.Identity(),
    None,
]
コード例 #2
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

subdividers = [
    None,
    None,
    # stage 3
    # 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,
コード例 #3
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

subdividers = [
    None,
    None,
    # stage 3
    # 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(
コード例 #4
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers

subdividers = [None, None, None, [subdividers.Identity()] * 3, None]
コード例 #5
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

subdividers = [
    None,
    None,
    # stage 3
    # 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,
コード例 #6
0
# -*- coding: utf-8 -*-
from surge.materials.segment_ii.time_signatures import time_signatures
from surge.tools.rhythmtools import subdividers
import abjad

subdividers =[
    None,
    None,
    # stage 3
    # 1:1 (16th notes)
    # 01234567
    # *--*----
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(8),
        sustain_mask=abjad.sustain_every(
            indices=[1, 2, 4, 5, 6, 7],
            period=8
        )
    ),
    None,
    # stage 5 (same as bowing)
    # 1:1 (16th notes)
    # 01234567
    # .**.-*-.
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(8),
        sustain_mask=abjad.sustain_every(
            indices=[4, 6],
            period=8
        ),
コード例 #7
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

subdividers = [
    None,
    None,
    None,
    subdividers.Even([1, 2, 3, 2], rotation_cycle=[0, 1, 2]),
    subdividers.Even([1, 2, 3, 2], rotation_cycle=[0, 1, 2]),
    subdividers.Even([1, 2, 3, 2], rotation_cycle=[0, 1, 2]),
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(11),
        sustain_mask=abjad.sustain_every(indices=[1, 2, 5, 7, 8, 10],
                                         period=11),
    ),
]
コード例 #8
0
# -*- coding: utf-8 -*-
from surge.tools.rhythmtools import subdividers
import abjad

subdividers = [
    None,
    None,
    None,
    subdividers.Even([3, 2, 1, 2], rotation_cycle=[0, 1, 2]),
    subdividers.Even([3, 2, 1, 2], rotation_cycle=[0, 1, 2]),
    subdividers.Even([3, 2, 1, 2], rotation_cycle=[0, 1, 2]),
    subdividers.Identity(
        multiplier=2,
        rotation_cycle=range(10),
        sustain_mask=abjad.sustain_every(
            indices=[0, 2, 4, 5, 6, 8, 9],
            period=10
        ),
    ),
]