rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea( counts=( [ 0, 0, 0, 0, ] ), denominator=4, ), playing_talea=rmakers.Talea( counts=( [ 4, 5, 6, 7, 8, 7, 6, 5, ] ), denominator=8, ), silence_talea=rmakers.Talea( counts=( [ 0, 1, 0, 0, 2, 0, 1, 1, ] ), denominator=4, ), reflect=True, )
rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea( counts=([ 0, ]), denominator=4, ), playing_talea=rmakers.Talea( counts=([ 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 30, ]), denominator=2, ), silence_talea=rmakers.Talea( counts=([ 0, ]), denominator=4, ), )
rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea( counts=([ 0, 0, 0, 0, ]), denominator=4, ), playing_talea=rmakers.Talea( counts=([ 3, 5, 2, 5, 3, 2, 4, 6, 7, 3, 4, 8, 4, 10, 6, 5, 9, 9, ]), denominator=4, ), silence_talea=rmakers.Talea( counts=([ 1, 0, 2, 1, 0, 3, 2, 1, 0, 4, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, ]), denominator=1, ), )
import abjad import tsmakers from abjadext import rmakers timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea(counts=(1, 4, 1), denominator=16), silence_talea=rmakers.Talea(counts=(0, 5), denominator=(32))) abjad.f(timespan_maker) music_specifiers = abjad.OrderedDict([ ('Violin', None), ('Viola', None), ]) target_timespan = abjad.Timespan(0, 10) timespan_list = timespan_maker( music_specifiers=music_specifiers, target_timespan=target_timespan, ) abjad.f(timespan_list) abjad.show(timespan_list)
rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea( counts=( [ 5, 2, 4, 0, ] ), denominator=4, ), playing_talea=rmakers.Talea( counts=( [ 5, 4, 3, 4, 5, 6, 5, 4, 3, 5, 4, 3, 4, 5, 6, 54, 2, ] ), denominator=8, ), silence_talea=rmakers.Talea( counts=( [ 2, 4, 5, 1, 2, 4, 5, 1, 2, 4, 5, 1, 0, ] ), denominator=4, ), )
import magnolia music_specifiers = OrderedDict( [(f"Voice {i+1}", None) for i, name in enumerate(magnolia.instruments)] ) # ####### # rhythm# # ####### rhythm_target_timespan = abjad.Timespan(0, 54) rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( playing_talea=rmakers.Talea( counts=([6, 2, 4, 4, 5, 2, 3, 3, 4, 5]), denominator=4, ), 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, 54) pitch_timespan_maker = tsmakers.TaleaTimespanMaker( playing_talea=rmakers.Talea(counts=([5, 4, 3, 2, 1, 2, 3, 4]), denominator=4),
rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea( counts=([ 9, 0, 0, 0, ]), denominator=4, ), playing_talea=rmakers.Talea( counts=([ 27, 16, 4, 4, 4, 4, 4, 4, 4, 4, 4, 16, 6, 6, 6, 6, 6, 6, 16, 5, 5, 5, 5, 5, 5, 5, 1, 16, ]), denominator=4, ), silence_talea=rmakers.Talea( counts=([ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, ]), denominator=1, ), )
rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea( counts=([ 7, 4, 0, 7, ]), denominator=4, ), playing_talea=rmakers.Talea( counts=([ 2, 3, 8, 8, 2, 5, 8, 6, 2, 7, 8, 5, 13, 16, 11, 8, 12, 8, ]), denominator=4, ), silence_talea=rmakers.Talea( counts=([ 19, 17, 4, 20, 15, 19, 8, 22, 17, 14, 9, 4, 10, 25, 19, ]), denominator=4, ), )
import evans import pathlib tsmakers.BoundaryTimespanMaker() # work with timespans to generate durations that will be filled by rhythm makers # voices names music_specifiers = abjad.OrderedDict([(f"Voice {i+1}", None) for i in range(9)]) # segment size target_timespan = abjad.Timespan(0, 16) # taleas timespan_maker = tsmakers.TaleaTimespanMaker( # initial_silence_talea=rmakers.Talea(counts=([13, 5, 1]), denominator=4), playing_talea=rmakers.Talea(counts=([4]), denominator=8), playing_groupings=([1, 2, 1, 2, 3]), silence_talea=rmakers.Talea(counts=([13, 5, 1]), denominator=4), ) # temporary list temp_list = timespan_maker( music_specifiers=music_specifiers, target_timespan=target_timespan ) # the same algorythm generates durations for different voices using the annotation # the list bellow contains all the timespans the_list = muda.timespan.TimespanList() # translate evans classes to abjad AnnotatedTimespan for span in temp_list: new_span = abjad.AnnotatedTimespan(
timespan_maker_01 = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea(counts=([0]), denominator=4), playing_talea=rmakers.Talea( counts=( [ 11, # vnI-1 15, 15, 3, 5, 12, 25, 26, # vnI-2 15, 3, 5, 12, 10, 15, 11, # vnII-1 15, 15, 3, 5, 12, 25, 26, # vnII-2 15, 3, 5, 12, 10, 15, 26, # va-1 15, 3, 5, 12, 25, 26, # va-2 15, 3, 5, 12, 10, 15, 8, # vc-1 18, 15, 3, 5, 12, 25, 26, # vc-2 15, 3, 5, 12, 10, 15, 19, # cb 7, 15, 3, 5, 12, 25, ] ), denominator=4, ), playing_groupings=([1]), silence_talea=rmakers.Talea(counts=([0]), denominator=4), )
("Voice 6", None), ("Voice 7", None), ("Voice 8", None), ("Voice 9", None), ("Voice 9+1", None), ]) target_timespan = abjad.Timespan(0, 8) timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea(counts=(0, 5, 3, 6, 2), 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=(5, 3, 1, 2, 6), denominator=4), playing_groupings=( 1, 2, 3, 2, ), # smashes timespans together without intermittent silence silence_talea=rmakers.Talea(counts=(2, 1, 1), denominator=4), # fuse_groups=False, #turns groups from multiple timespans into one large timespan ) timespan_list = timespan_maker(music_specifiers=music_specifiers, target_timespan=target_timespan) # abjad.show(timespan_list, scale=0.7, key='voice_name') timespan_list # offset_counter = abjad.OffsetCounter(timespan_list)
rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea( counts=( [ 5, 5, 0, 0, ] ), denominator=4, ), playing_talea=rmakers.Talea( counts=( [ 2, 7, # 1, 9, 4, 4, 10, 9, 9, 8, 5, 10, 9, 10, 5, 9, 5, 9, 3, ] ), denominator=4, ), silence_talea=rmakers.Talea( counts=( [ 1, 2, 0, 0, 10, 3, 1, 10, 0, 0, 0, 2, 10, 0, 3, 1, 2, 0, 3, 1, ] ), denominator=4, ), )
rhythm_timespan_maker = tsmakers.TaleaTimespanMaker( initial_silence_talea=rmakers.Talea( counts=( [ 3, 0, 12, 36, ] ), denominator=4, ), playing_talea=rmakers.Talea( counts=( [ 5, 26, 4, 5, 12, 4, ] ), denominator=4, ), silence_talea=rmakers.Talea( counts=( [ 27, 0, ] ), denominator=4, ), )