tremoli=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>=', (1, 8), preprolated=True)
             .by_class(scoretools.Chord)
             [0],
         ),
     ),
 color='magenta',
 labels=[],
 pitch_handler=consort.PitchClassPitchHandler(
     forbid_repetitions=True,
     leap_constraint=12,
     logical_tie_expressions=[
         consort.ChordExpression([-6, -3, 3, 8]),
         None,
         consort.ChordExpression([0, 3]),
         None,
         None,
         consort.ChordExpression([0, 3]),
         consort.ChordExpression([-1, 2]),
         None,
         consort.KeyClusterExpression(
             include_black_keys=False,
             ),
         consort.ChordExpression([0, 3]),
         None,
         None,
         ],
     pitch_specifier=abbreviations.agitato_pitch_specifier,
        ),
        dynamic_expressions=consort.DynamicExpression(
            division_period=2,
            dynamic_tokens='pp mf p p mf mf pp',
            start_dynamic_tokens='fp niente',
            stop_dynamic_tokens='niente f',
        ),
        stem_tremolo_spanner=consort.AttachmentExpression(
            attachments=spannertools.StemTremoloSpanner(),
            selector=selectortools.select_pitched_runs(),
        ),
    ),
    color='red',
    pitch_handler=consort.AbsolutePitchHandler(
        logical_tie_expressions=[
            consort.ChordExpression(chord_expr=_, )
            for _ in abbreviations.guitar_chords
        ],
        pitch_specifier=consort.PitchSpecifier(
            pitch_segments=(
                'D3',
                'F3',
                'G2',
            ),
            ratio=(1, 1, 1),
        ),
    ),
    rhythm_maker=rhythmmakertools.NoteRhythmMaker(
        tie_specifier=rhythmmakertools.TieSpecifier(
            tie_across_divisions=True, ), ),
)
Beispiel #3
0

percussion_temple_block_fanfare_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        accent=consort.AttachmentExpression(
            attachments=indicatortools.Articulation('accent'),
            selector=selectortools.Selector()
                .by_logical_tie(pitched=True)
                .by_duration('>', (1, 16), preprolated=True)
                [0]
            ),
        chords=consort.AttachmentExpression(
            attachments=(
                consort.ChordExpression(
                    chord_expr=pitchtools.PitchSegment([
                        ersilia.Percussion.WOOD_BLOCK_5,
                        ersilia.Percussion.WOOD_BLOCK_4,
                        ]),
                    ),
                None,
                consort.ChordExpression(
                    chord_expr=pitchtools.PitchSegment([
                        ersilia.Percussion.WOOD_BLOCK_4,
                        ersilia.Percussion.WOOD_BLOCK_3,
                        ]),
                    ),
                consort.ChordExpression(
                    chord_expr=pitchtools.PitchSegment([
                        ersilia.Percussion.WOOD_BLOCK_3,
                        ersilia.Percussion.WOOD_BLOCK_2,
                        ]),
                    ),
Beispiel #4
0
     octavation=consort.OctavationExpression(),
     stem_tremolo_spanner=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.select_pitched_runs(),
         ),
     ),
 color='red',
 labels=[
     'pedaled',
     'piano tremolo',
     ],
 pitch_handler=consort.AbsolutePitchHandler(
     deviations=[0, -2, 0, 0, 2, 0, 3],
     logical_tie_expressions=(
         consort.ChordExpression(
             chord_expr=pitchtools.IntervalSegment([-7, -3, 0, 5, 6, 12]),
             ),
         consort.ChordExpression(
             chord_expr=pitchtools.IntervalSegment([-7, -3, 0, 1, 5, 12]),
             ),
         ),
     pitch_specifier=consort.PitchSpecifier(
         pitch_segments=["d'", "f'", "c'"],
         ),
     ),
 rhythm_maker=rhythmmakertools.NoteRhythmMaker(
     tie_specifier=rhythmmakertools.TieSpecifier(
         tie_across_divisions=True,
         ),
     ),
 )
Beispiel #5
0
# -*- encoding: utf-8 -*-
import consort
from abjad.tools import rhythmmakertools
from abjad.tools import selectortools

left_hand_dietro_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        clef_spanner=consort.AttachmentExpression(
            attachments=consort.ClefSpanner(
                clef='percussion',
                overrides={
                    'note_head__style': 'cross',
                },
            ),
            selector=selectortools.Selector().by_leaf(),
        ), ),
    pitch_handler=consort.AbsolutePitchHandler(logical_tie_expressions=(
        consort.ChordExpression("g b"),
        consort.ChordExpression("b d'"),
        consort.ChordExpression("d' f'"),
    ), ),
    rhythm_maker=rhythmmakertools.NoteRhythmMaker(
        tie_specifier=rhythmmakertools.TieSpecifier(
            tie_across_divisions=False, ), ),
)
         only_first=True,
     ),
     mordent=consort.AttachmentExpression(
         attachments=indicatortools.Articulation('mordent'),
         selector=selectortools.Selector().by_class(
             scoretools.Note).by_logical_tie()[0]),
     tenuti=consort.AttachmentExpression(
         attachments=indicatortools.Articulation('tenuto'),
         selector=selectortools.Selector().by_logical_tie(pitched=True)[0]),
 ),
 color='darkyellow',
 labels=['pedaled'],
 pitch_handler=consort.PitchClassPitchHandler(
     logical_tie_expressions=(
         None,
         consort.ChordExpression([-2, 3]),
         consort.ChordExpression([0, 3]),
         None,
         consort.ChordExpression([-4, 5]),
     ),
     pitch_specifier=abbreviations.agitato_pitch_specifier,
     register_specifier=consort.RegisterSpecifier(
         base_pitch='G3',
         phrase_inflections=consort.RegisterInflection.zigzag(
             12).reverse().align(),
         segment_inflections=consort.RegisterInflection.descending(
             width=12).align()),
     register_spread=6,
 ),
 rhythm_maker=consort.CompositeRhythmMaker(
     default=rhythmmakertools.TaleaRhythmMaker(
                pitched=True).by_duration(
                    '==', (1, 16),
                    preprolated=True).by_contiguity().by_length('>',
                                                                1).by_leaf()),
        staccati=consort.AttachmentExpression(
            attachments=indicatortools.Articulation('staccato'),
            selector=selectortools.Selector().by_logical_tie(
                pitched=True).by_duration(
                    '==', (1, 16), preprolated=True).by_contiguity().by_length(
                        '>', 1).by_leaf()[-1]),
        staff_lines_spanner=spannertools.StaffLinesSpanner([-4, -2, 0, 2, 4]),
        text_spanner=consort.AttachmentExpression(
            attachments=abbreviations.make_text_spanner('marimba'),
            selector=selectortools.select_pitched_runs(),
        ),
    ),
    color='darkyellow',
    pitch_handler=consort.AbsolutePitchHandler(
        forbid_repetitions=True,
        logical_tie_expressions=[
            consort.ChordExpression(chord_expr=[0, 5]),
        ],
        pitch_specifier="d' f'",
    ),
    rhythm_maker=rhythmmakertools.TaleaRhythmMaker(
        extra_counts_per_division=[0, 0, 1, 2, 0, 1],
        talea=rhythmmakertools.Talea(
            counts=[1, 1, -3],
            denominator=16,
        )),
)
Beispiel #8
0
         is_destructive=True,
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_contiguity()
             .by_length('>', 1)
             .by_leaf()
             [-1]
         ),
     dynamic_expressions=consort.DynamicExpression(
         dynamic_tokens='p ppp p ppp mf p',
         only_first=True,
         ),
     laissez_vibrer=abbreviations.laissez_vibrer,
     ),
 pitch_handler=consort.AbsolutePitchHandler(
     logical_tie_expressions=[
         consort.ChordExpression(
             chord_expr=_,
             arpeggio_direction=Center,
             ) for _ in abbreviations.guitar_chords
         ],
     ),
 rhythm_maker=rhythmmakertools.IncisedRhythmMaker(
     incise_specifier=rhythmmakertools.InciseSpecifier(
         fill_with_notes=False,
         prefix_counts=[1, 1, 1, 2, 1, 2, 3],
         prefix_talea=[1],
         talea_denominator=16,
         ),
     ),
 )
Beispiel #9
0
# -*- encoding: utf-8 -*-
import consort
from abjad.tools import pitchtools
from abjad.tools import rhythmmakertools


left_hand_diads_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(),
    pitch_handler=consort.AbsolutePitchHandler(
        deviations=(0, 0, 0, 0, 0.5, 0),
        forbid_repetitions=True,
        logical_tie_expressions=(
            consort.ChordExpression(chord_expr=(0, 8)),
            consort.ChordExpression(chord_expr=(0, 5)),
            consort.ChordExpression(chord_expr=(0, 8)),
            consort.ChordExpression(chord_expr=(0, 8)),
            consort.ChordExpression(chord_expr=(0, 5)),
            consort.ChordExpression(chord_expr=(0, 8)),
            consort.ChordExpression(chord_expr=(0, 5)),
            consort.ChordExpression(chord_expr=(0, 5)),
            consort.ChordExpression(chord_expr=(0, 10)),
            consort.ChordExpression(chord_expr=(0, 8)),
            consort.ChordExpression(chord_expr=(0, 8)),
            consort.ChordExpression(chord_expr=(0, 10)),
            ),
        pitch_specifier=consort.PitchSpecifier(
            pitch_segments=(
                "a c' c' a a c' a a g a c' c'",
                "a c' c' c' gs g c'",
                "a c' c' a a c' a g fs a a c' c'",
                ),
Beispiel #10
0
from abjad.tools import indicatortools
from abjad.tools import rhythmmakertools
from abjad.tools import selectortools


left_hand_pizzicati_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        arpeggio=indicatortools.Arpeggio(),
        clef_spanner=consort.AttachmentExpression(
            attachments=consort.ClefSpanner('treble'),
            selector=selectortools.Selector().by_leaf(),
            ),
        ),
    pitch_handler=consort.AbsolutePitchHandler(
        logical_tie_expressions=(
            consort.ChordExpression("cs' b' g'' ef'''"),
            consort.ChordExpression("fs e' c'' gs''"),
            consort.ChordExpression("f ef' b' g''"),
            consort.ChordExpression("fs e' c'' gs''"),
            consort.ChordExpression("c' bf' fs'' d'''"),
            consort.ChordExpression("cs' b' g'' ef'''"),
            consort.ChordExpression("f ef' b' g''"),
            consort.ChordExpression("fs e' c'' gs''"),
            consort.ChordExpression("d' c'' gs'' e'''"),
            ),
        ),
    rhythm_maker=rhythmmakertools.IncisedRhythmMaker(
        incise_specifier=rhythmmakertools.InciseSpecifier(
            fill_with_notes=False,
            prefix_counts=(1, 1, 1, 1, 2, 1),
            prefix_talea=(1,),
         attachments=indicatortools.Articulation('accent'),
         selector=selectortools.Selector().by_logical_tie().by_duration(
             '==', (1, 16), preprolated=True).with_next_leaf()),
     dynamic_expressions=consort.DynamicExpression(
         division_period=2,
         dynamic_tokens='p ppp mp',
         start_dynamic_tokens='niente fp',
     ),
     stem_tremolo=spannertools.StemTremoloSpanner(),
 ),
 color='red',
 labels=[],
 pitch_handler=consort.PitchClassPitchHandler(
     deviations=[0, 0.5, 0, -0.5],
     logical_tie_expressions=[
         consort.ChordExpression([0, 8]),
     ],
     pitch_application_rate='phrase',
     pitch_specifier=abbreviations.agitato_pitch_specifier,
     pitch_operation_specifier=abbreviations.pitch_operation_specifier,
     register_specifier=consort.RegisterSpecifier(base_pitch='G3', ),
 ),
 rhythm_maker=rhythmmakertools.EvenDivisionRhythmMaker(
     denominators=[16],
     extra_counts_per_division=[0, 1],
     division_masks=[
         rhythmmakertools.SustainMask(pattern=patterntools.Pattern(
             indices=[2],
             period=3,
         ), ),
         rhythmmakertools.SustainMask(pattern=patterntools.Pattern(