#     abjad.AnnotatedTimespan(_.start_offset, _.stop_offset, annotation=_.voice_name) for _ in rhythm_timespan_list
# ])
#
# abjad.show(temp_list, scale=0.7, key="annotation")
#
# raise Exception("Stop")

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 6)

pitch_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(
        counts=([15, 0, 24, 24]),
        denominator=4,
    ),
    playing_talea=rmakers.Talea(counts=([9, 8, 7]), denominator=4),
    silence_talea=rmakers.Talea(counts=([5, 1, 5, 1]), denominator=4),
)

pitch_timespan_list = pitch_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=pitch_target_timespan)

# ######
# dynamic#
# ######
dynamic_target_timespan = abjad.Timespan(0, 6)

dynamic_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(
        counts=([15, 0, 24, 24]),
from tsmakers.TaleaTimespanMaker import TaleaTimespanMaker

from chalk_line.materials.score_structure.instruments import instruments

music_specifiers = OrderedDict(
    [(f"Voice {i+1}", None) for i, name in enumerate(instruments)]
)

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, (80, 4))

rhythm_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(
        counts=([1, 9, 2, 8, 3, 7, 4, 6, 5, 5, 4, 6, 3, 7, 2, 8]), denominator=8
    ),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan
)

print("Making timespans ...")
# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 32)

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([1, 1, 1, 2]), denominator=4),
Beispiel #3
0
from abjadext import rmakers as rmakers
from tsmakers.TaleaTimespanMaker import TaleaTimespanMaker

from sim.materials.score_structure.instruments import instruments

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, 14)
# 4, 0, 1, 3
rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0]), denominator=2),
    playing_talea=rmakers.Talea(
        counts=([8, 10, 8, 6, 8, 8, 6, 8, 8, 10, 8, 8, 8, 8]), denominator=8),
    silence_talea=rmakers.Talea(counts=([0]), denominator=8),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 14)

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([14]), denominator=1),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
)
Beispiel #4
0
                                               second=5,
                                               modulus=5)

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, 22)
# 1, 3, 2
rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0, 3, 2, 0]), denominator=8),
    # synchronize_step=True, #goes down voices instead of across? maybe not consistent...
    # synchronize_groupings=True, #goes down voices instead of across? maybe not consistent...
    playing_talea=rmakers.Talea(counts=(padovan_1), denominator=4),
    playing_groupings=(
        padovan_3),  # smashes timespans together without intermittent silence
    silence_talea=rmakers.Talea(counts=(padovan_2), denominator=4),
    # fuse_groups=False, #turns groups from multiple timespans into one large timespan
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 22)

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([11]), denominator=4),
music_specifiers = OrderedDict(
    [(f"Voice {i+1}", None) for i, name in enumerate(instruments)]
)

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, (25, 4))

rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0]), denominator=8),
    playing_talea=rmakers.Talea(counts=([5, 1, 2, 5, 3, 4, 5]), denominator=4),
    # playing_groupings=([1, 2, 3, 2,]),
    silence_talea=rmakers.Talea(
        counts=(
            [
                0,
            ]
        ),
        denominator=8,
    ),
    # synchronize_step=True,
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan
)

# temp_list = abjad.TimespanList(
#     [
#         abjad.AnnotatedTimespan(_.start_offset, _.stop_offset, annotation=_.voice_name)
#         for _ in rhythm_timespan_list
                                         first=1,
                                         second=1,
                                         modulus=5)

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, 81)

rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0, 0, 0, 0]), denominator=8),
    # synchronize_step=True,
    # synchronize_groupings=True,
    playing_talea=rmakers.Talea(counts=(padovan_1), denominator=2),
    playing_groupings=(padovan_3),
    silence_talea=rmakers.Talea(counts=(padovan_2), denominator=4),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 81)

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([81]), denominator=8),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
                                         second=1,
                                         modulus=3)

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, 10)
# 1, 3, 2
rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0, 3, 2, 0]), denominator=8),
    # synchronize_step=True, #goes down voices instead of across? maybe not consistent...
    # synchronize_groupings=True, #goes down voices instead of across? maybe not consistent...
    playing_talea=rmakers.Talea(counts=(padovan_1), denominator=4),
    playing_groupings=(
        padovan_3),  # smashes timespans together without intermittent silence
    silence_talea=rmakers.Talea(counts=(padovan_2), denominator=4),
    # fuse_groups=False, #turns groups from multiple timespans into one large timespan
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 10)

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([5]), denominator=4),
from abjadext import rmakers as rmakers
from tsmakers.TaleaTimespanMaker import TaleaTimespanMaker

from adumbration.materials.score_structure.instruments import instruments

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, 12)

rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0]), denominator=8),
    playing_talea=rmakers.Talea(counts=([5, 2, 3, 1, 1]), denominator=4),
    playing_groupings=([2, 3, 2, 1]),
    silence_talea=rmakers.Talea(counts=([1, 2, 1, 3]), denominator=4),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# temp_list = abjad.TimespanList([
#     abjad.AnnotatedTimespan(_.start_offset, _.stop_offset, annotation=_.voice_name) for _ in rhythm_timespan_list
# ])
#
# abjad.show(temp_list, scale=0.7, key="annotation")

# ######
# pitch#
# ######
Beispiel #9
0
from tsmakers.TaleaTimespanMaker import TaleaTimespanMaker

from sim.materials.score_structure.instruments import instruments

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, (96, 4))

rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([18, 0, 4, 9]),
                                        denominator=16),
    playing_talea=rmakers.Talea(counts=([3, 1, 2, 2]), denominator=4),
    silence_talea=rmakers.Talea(
        counts=([3, 1, 2, 2, 4, 2, 4, 6, 5, 2, 3, 1, 6, 3, 1, 2]),
        denominator=8),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, (96, 4))

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([96]), denominator=4),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
Beispiel #10
0
padovan_1 = evans.e_dovan_cycle(n=3, iters=30, first=3, second=5, modulus=7)
padovan_2 = evans.e_dovan_cycle(n=2, iters=30, first=2, second=3, modulus=3)
padovan_3 = evans.e_dovan_cycle(n=2, iters=30, first=1, second=1, modulus=5)

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# ####### #was 225
rhythm_target_timespan = abjad.Timespan(0, (136, 4))

rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([7, 7, 2, 0]), denominator=4),
    # synchronize_step=True,
    # synchronize_groupings=True,
    playing_talea=rmakers.Talea(counts=(padovan_1), denominator=2),
    playing_groupings=(padovan_3),
    silence_talea=rmakers.Talea(counts=(padovan_2), denominator=2),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, (170, 4))

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([225]), denominator=32),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
Beispiel #11
0
padovan_1 = evans.e_dovan_cycle(n=3, iters=30, first=3, second=5, modulus=6)
padovan_2 = evans.e_dovan_cycle(n=2, iters=30, first=2, second=3, modulus=5)
padovan_3 = evans.e_dovan_cycle(n=2, iters=30, first=1, second=1, modulus=3)

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, 15)

rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0, 0, 0, 0]), denominator=4),
    synchronize_step=True,
    # synchronize_groupings=True,
    playing_talea=rmakers.Talea(counts=(padovan_1), denominator=2),
    playing_groupings=(padovan_3),
    silence_talea=rmakers.Talea(counts=(padovan_2), denominator=2),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 15)

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([15]), denominator=8),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
from tsmakers.TaleaTimespanMaker import TaleaTimespanMaker

from chalk_line.materials.score_structure.instruments import instruments

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

print("Making timespans ...")
# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, 31)

rhythm_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([4, 3, 4, 5, 4, 3, 2, 3]),
                                denominator=8),
    silence_talea=rmakers.Talea(counts=([0, 1, 0, 0, 2]), denominator=8),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 32)

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([1, 1, 1, 2]), denominator=4),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
)
Beispiel #13
0
from tsmakers.TaleaTimespanMaker import TaleaTimespanMaker

from chalk_line.materials.score_structure.instruments import instruments

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

print("Making timespans ...")
# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, 15)

rhythm_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([4, 3, 4, 5, 6, 5, 6, 4, 3, 2, 3]),
                                denominator=8),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, 15)

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([1, 1, 1, 2]), denominator=4),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),
)
Beispiel #14
0
rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0, 0, 1, 0]), denominator=2),
    playing_talea=rmakers.Talea(
        counts=(
            [
                112,
                5,
                2,
                6,
                7,
                4,
                5,
                2,
                6,
                7,
                4,
                5,
                2,
                6,
                7,
                4,
                5,
                2,
                6,
                7,
                4,
                5,
                2,
                6,
                7,
                4,
                5,
                2,
                6,
                7,
                4,
                5,
                2,
                6,
                112,
            ]
        ),
        denominator=8,
    ),
    silence_talea=rmakers.Talea(counts=([1, 3, 2, 3, 1]), denominator=8),
)
Beispiel #15
0
from tsmakers.TaleaTimespanMaker import TaleaTimespanMaker

from sim.materials.score_structure.instruments import instruments

music_specifiers = OrderedDict([(f"Voice {i+1}", None)
                                for i, name in enumerate(instruments)])

# #######
# rhythm#
# #######
rhythm_target_timespan = abjad.Timespan(0, (9, 2))

rhythm_timespan_maker = TaleaTimespanMaker(
    initial_silence_talea=rmakers.Talea(counts=([0, 0, 1, 0]), denominator=2),
    playing_talea=rmakers.Talea(
        counts=([18, 2, 3, 2, 3, 2, 2, 2, 2, 2, 3, 2, 3, 2, 2, 2, 18]),
        denominator=4),
    silence_talea=rmakers.Talea(counts=([0]), denominator=8),
)

rhythm_timespan_list = rhythm_timespan_maker(
    music_specifiers=music_specifiers, target_timespan=rhythm_target_timespan)

# ######
# pitch#
# ######
pitch_target_timespan = abjad.Timespan(0, (9, 2))

pitch_timespan_maker = TaleaTimespanMaker(
    playing_talea=rmakers.Talea(counts=([9]), denominator=2),
    silence_talea=rmakers.Talea(counts=([0]), denominator=4),