def test_systemtools_StorageFormatAgent_get_import_statements_04(): subject = rhythmmakertools.IncisedRhythmMaker( incise_specifier=rhythmmakertools.InciseSpecifier( prefix_talea=(1, ), prefix_counts=(0, ), suffix_talea=(1, ), suffix_counts=(1, ), talea_denominator=16, body_ratio=mathtools.Ratio((1, )), outer_divisions_only=True, ), beam_specifier=rhythmmakertools.BeamSpecifier( beam_each_division=False, beam_divisions_together=False, ), duration_spelling_specifier=rhythmmakertools.DurationSpellingSpecifier( decrease_durations_monotonically=True, forbidden_written_duration=durationtools.Duration(1, 2), ), tuplet_spelling_specifier=rhythmmakertools.TupletSpellingSpecifier( avoid_dots=True, is_diminution=True, simplify_redundant_tuplets=True, ), ) agent = systemtools.StorageFormatAgent(subject) assert agent.get_import_statements() == ( 'from abjad.tools import durationtools', 'from abjad.tools import mathtools', 'from abjad.tools import rhythmmakertools', )
forbid_repetitions=True, pitch_specifier=abbreviations.agitato_pitch_specifier, register_specifier=consort.RegisterSpecifier( base_pitch='G3', phrase_inflections=consort.RegisterInflection .zigzag(3) .reverse() .align(), segment_inflections=consort.RegisterInflection .descending(width=3) .align() ), ), rhythm_maker=consort.CompositeRhythmMaker( default=rhythmmakertools.TaleaRhythmMaker( extra_counts_per_division=[0, 0, 1], talea=rhythmmakertools.Talea( counts=[1, -1, 1, -2, 1, -3], denominator=16, ), ), last=rhythmmakertools.IncisedRhythmMaker( incise_specifier=rhythmmakertools.InciseSpecifier( fill_with_notes=False, prefix_counts=[1], prefix_talea=[1], talea_denominator=16, ), ), ), )
from abjad.tools import indicatortools from abjad.tools import rhythmmakertools from abjad.tools import scoretools from abjad.tools import selectortools from abjad.tools import spannertools right_hand_pizzicati_music_specifier = consort.MusicSpecifier( attachment_handler=consort.AttachmentHandler( bow_contact_points=consort.AttachmentExpression( attachments=(indicatortools.BowContactPoint(None), ), selector=selectortools.Selector().by_leaf().flatten(), ), bow_contact_spanner=spannertools.BowContactSpanner(), dynamic_expressions=consort.DynamicExpression(dynamic_tokens='mf', ), string_contact_points=consort.AttachmentExpression( attachments=indicatortools.StringContactPoint('pizzicato'), scope=scoretools.Voice, selector=selectortools.Selector().by_leaf()[0]), string_contact_spanner=consort.StringContactSpanner(), ), rhythm_maker=rhythmmakertools.IncisedRhythmMaker( incise_specifier=rhythmmakertools.InciseSpecifier( fill_with_notes=False, prefix_counts=(1, 1, 1, 1, 2, 1), prefix_talea=(1, ), suffix_talea=(1, ), suffix_counts=(0, ), talea_denominator=16, ), ), )
), scope=scoretools.Voice, selector=selectortools.Selector().append_callback( consort.PhrasedSelectorCallback()).by_counts( [1, -2, 1, -2, 1, -1], cyclic=True, nonempty=True, overhang=True, ).flatten()), string_contact_spanner=consort.StringContactSpanner(), ), rhythm_maker=consort.CompositeRhythmMaker( last=rhythmmakertools.IncisedRhythmMaker( incise_specifier=rhythmmakertools.InciseSpecifier( prefix_counts=[0], suffix_talea=[1], suffix_counts=[1], talea_denominator=16, ), ), default=rhythmmakertools.EvenDivisionRhythmMaker( denominators=(4, ), extra_counts_per_division=(0, 0, 0, 1, 0, 0, 1, 0, 1), duration_spelling_specifier=rhythmmakertools. DurationSpellingSpecifier( decrease_durations_monotonically=True, forbidden_written_duration=durationtools.Duration(1, 4), forbid_meter_rewriting=True, ), ), ), )
), color=None, labels=['pedaled'], pitch_handler=consort.AbsolutePitchHandler( forbid_repetitions=True, pitch_specifier="f c' g' c' f g' c' f c' g' f", ), rhythm_maker=consort.CompositeRhythmMaker( last=rhythmmakertools.IncisedRhythmMaker( incise_specifier=rhythmmakertools.InciseSpecifier( prefix_counts=[0], suffix_talea=[1], suffix_counts=[1], talea_denominator=16, ), duration_spelling_specifier=rhythmmakertools.DurationSpellingSpecifier( forbidden_written_duration=(1, 4), forbid_meter_rewriting=True, spell_metrically='unassignable', ), tie_specifier=rhythmmakertools.TieSpecifier( strip_ties=True, ), ), default=rhythmmakertools.EvenDivisionRhythmMaker( denominators=(4,), duration_spelling_specifier=rhythmmakertools.DurationSpellingSpecifier( forbidden_written_duration=(1, 4), forbid_meter_rewriting=True, spell_metrically='unassignable', ), ),