def reverse(self): r'''Reverse output-burnished talea rhythm-maker: :: >>> reversed_maker = maker.reverse() :: >>> print reversed_maker.storage_format rhythmmakertools.OutputBurnishedTaleaRhythmMaker( talea=[3, 2, 1], talea_denominator=16, prolation_addenda=[2, 0], lefts=[-1], middles=[0], rights=[-1], left_lengths=[1], right_lengths=[1], secondary_divisions=[9], beam_each_cell=True, beam_cells_together=False, decrease_durations_monotonically=False, tie_split_notes=False, tie_rests=False ) :: >>> divisions = [(3, 8), (4, 8)] >>> music = reversed_maker(divisions) >>> music = sequencetools.flatten_sequence(music) >>> measures = \ ... measuretools.make_measures_with_full_measure_spacer_skips( ... divisions) >>> staff = stafftools.RhythmicStaff(measures) >>> measures = measuretools.replace_contents_of_measures_in_expr( ... staff, music) :: >>> show(staff) # doctest: +SKIP Returns new output-burnished talea rhythm-maker. ''' return BurnishedRhythmMaker.reverse(self)
def new(self, **kwargs): r'''Create new rhythm-maker with `kwargs`: :: >>> print maker.storage_format rhythmmakertools.DivisionBurnishedTaleaRhythmMaker( talea=[1, 1, 2, 4], talea_denominator=16, prolation_addenda=[0, 3], lefts=[-1], middles=[0], rights=[-1], left_lengths=[1], right_lengths=[1], secondary_divisions=[14], beam_each_cell=False, beam_cells_together=False, decrease_durations_monotonically=True, tie_split_notes=False, tie_rests=False ) :: >>> new_maker = maker.new(talea=[1, 1, 2]) :: >>> print new_maker.storage_format rhythmmakertools.DivisionBurnishedTaleaRhythmMaker( talea=[1, 1, 2], talea_denominator=16, prolation_addenda=[0, 3], lefts=[-1], middles=[0], rights=[-1], left_lengths=[1], right_lengths=[1], secondary_divisions=[14], beam_each_cell=False, beam_cells_together=False, decrease_durations_monotonically=True, tie_split_notes=False, tie_rests=False ) :: >>> divisions = [(5, 8), (5, 8)] >>> music = new_maker(divisions) >>> music = sequencetools.flatten_sequence(music) >>> measures = \ ... measuretools.make_measures_with_full_measure_spacer_skips( ... divisions) >>> staff = stafftools.RhythmicStaff(measures) >>> measures = measuretools.replace_contents_of_measures_in_expr( ... staff, music) :: >>> show(staff) # doctest: +SKIP Returns new division-burnished talea rhythm-maker. ''' return BurnishedRhythmMaker.new(self, **kwargs)