Beispiel #1
0
     dynamic_expression=consort.DynamicExpression(
         division_period=2,
         start_dynamic_tokens='p fp',
         stop_dynamic_tokens='f',
         unsustained=True,
         ),
     staccato=consort.AttachmentExpression(
         attachments=indicatortools.Articulation('staccato'),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('<=', (1, 16), preprolated=True)
             [0],
         ),
     staff_lines_spanner=spannertools.StaffLinesSpanner([-4, -2, 0, 2, 4]),
     text_spanner=consort.AttachmentExpression(
         attachments=abbreviations.make_text_spanner('blocks'),
         selector=selectortools.select_pitched_runs(),
         ),
     tremolo=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
         ),
     ),
 color='magenta',
 pitch_handler=consort.AbsolutePitchHandler(
     #logical_tie_expressions=[
     #    ],
     pitch_specifier=pitchtools.PitchSegment([
         ersilia.Percussion.WOOD_BLOCK_5,

string_overpressure_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        accents=consort.AttachmentExpression(
            attachments=indicatortools.Articulation('accent'),
            selector=selectortools.Selector()
                .by_logical_tie(pitched=True)
                [0]
            ),
        dynamic_expressions=consort.DynamicExpression(
            start_dynamic_tokens='fff',
            only_first=True,
            ),
        text_spanner=consort.AttachmentExpression(
            attachments=abbreviations.make_text_spanner('overpressure'),
            selector=selectortools.Selector().by_leaf(),
            ),
        ),
    color=None,
    labels=[],
    pitch_handler=consort.AbsolutePitchHandler(
        deviations=[0, 1, 0, 0.5],
        logical_tie_expressions=[
            consort.ChordExpression(chord_expr=[0, 7]),
            ],
        pitch_application_rate='phrase',
        pitch_specifier='A3 B3 Bb3 C4',
        ),
    rhythm_maker=rhythmmakertools.EvenDivisionRhythmMaker(
        denominators=[8],
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
             .by_leaf()
             .by_length('==', 1)
             [0]
         ),
     swell=consort.AttachmentExpression(
         attachments=spannertools.Hairpin('niente < f'),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
             .by_leaf()
             .by_length('>', 1)
         ),
     text_spanner=consort.AttachmentExpression(
         attachments=abbreviations.make_text_spanner('snare'),
         selector=selectortools.select_pitched_runs(),
         ),
     tremolo=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
         ),
     ),
 color='yellow',
 labels=[],
 pitch_handler=consort.AbsolutePitchHandler(
     pitch_specifier=ersilia.Percussion.SNARE_DRUM,
     pitches_are_nonsemantic=True,
     ),
                 indicatortools.Articulation('accent'),
                 indicatortools.Dynamic('fp'),
             ],
         ],
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration(
                 '>', (1, 16),
                 preprolated=True).by_leaf().by_length('==', 1)[0]),
     swell=consort.AttachmentExpression(
         attachments=spannertools.Hairpin('niente < f'),
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration(
                 '>', (1, 16),
                 preprolated=True).by_leaf().by_length('>', 1)),
     text_spanner=consort.AttachmentExpression(
         attachments=abbreviations.make_text_spanner('snare'),
         selector=selectortools.select_pitched_runs(),
     ),
     tremolo=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration('>', (1, 16), preprolated=True)),
 ),
 color='yellow',
 labels=[],
 pitch_handler=consort.AbsolutePitchHandler(
     pitch_specifier=ersilia.Percussion.SNARE_DRUM,
     pitches_are_nonsemantic=True,
 ),
 rhythm_maker=consort.CompositeRhythmMaker(
     default=rhythmmakertools.NoteRhythmMaker(
     slur=consort.AttachmentExpression(
         attachments=spannertools.Slur(),
         selector=selectortools.Selector().by_logical_tie(
             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],
Beispiel #6
0
from abjad.tools import patterntools
from abjad.tools import rhythmmakertools
from abjad.tools import selectortools
from ersilia.materials import abbreviations

string_overpressure_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        accents=consort.AttachmentExpression(
            attachments=indicatortools.Articulation('accent'),
            selector=selectortools.Selector().by_logical_tie(pitched=True)[0]),
        dynamic_expressions=consort.DynamicExpression(
            start_dynamic_tokens='fff',
            only_first=True,
        ),
        text_spanner=consort.AttachmentExpression(
            attachments=abbreviations.make_text_spanner('overpressure'),
            selector=selectortools.Selector().by_leaf(),
        ),
    ),
    color=None,
    labels=[],
    pitch_handler=consort.AbsolutePitchHandler(
        deviations=[0, 1, 0, 0.5],
        logical_tie_expressions=[
            consort.ChordExpression(chord_expr=[0, 7]),
        ],
        pitch_application_rate='phrase',
        pitch_specifier='A3 B3 Bb3 C4',
    ),
    rhythm_maker=rhythmmakertools.EvenDivisionRhythmMaker(
        denominators=[8],
                 ]
             ],
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('==', (1, 16), preprolated=True)
             [0],
         ),
     piano=consort.AttachmentExpression(
         attachments=indicatortools.Dynamic('pp'),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
             [0]
         ),
     text_spanner=consort.AttachmentExpression(
         attachments=abbreviations.make_text_spanner('windchimes'),
         selector=selectortools.select_pitched_runs(),
         ),
     tremolo=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
         ),
     ),
 color='yellow',
 labels=['bamboo windchimes'],
 pitch_handler=consort.AbsolutePitchHandler(
     pitch_specifier=ersilia.Percussion.BAMBOO_WIND_CHIMES,
     pitches_are_nonsemantic=True,
     ),
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
             .by_leaf()
             .by_length('==', 1)
             [0]
         ),
     swell=consort.AttachmentExpression(
         attachments=spannertools.Hairpin('niente < f'),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
             .by_leaf()
             .by_length('>', 1)
         ),
     text_spanner=consort.AttachmentExpression(
         attachments=abbreviations.make_text_spanner('crotales'),
         selector=selectortools.select_pitched_runs(),
         ),
     tremolo=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
         ),
     ),
 color='yellow',
 labels=[],
 pitch_handler=consort.PitchClassPitchHandler(
     forbid_repetitions=True,
     pitch_specifier=abbreviations.agitato_pitch_specifier,
     register_specifier=consort.RegisterSpecifier(
         ),
     dynamic_expression=consort.DynamicExpression(
         start_dynamic_tokens='p fp',
         stop_dynamic_tokens='f',
         unsustained=True,
         ),
     staccato=consort.AttachmentExpression(
         attachments=indicatortools.Articulation('staccato'),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('<=', (1, 16), preprolated=True)
             [0],
         ),
     staff_lines_spanner=spannertools.StaffLinesSpanner([-4, -2, 0, 2, 4]),
     text_spanner=consort.AttachmentExpression(
         attachments=abbreviations.make_text_spanner('toms'),
         selector=selectortools.select_pitched_runs(),
         ),
     tremolo=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector()
             .by_logical_tie(pitched=True)
             .by_duration('>', (1, 16), preprolated=True)
         ),
     ),
 color='magenta',
 pitch_handler=consort.AbsolutePitchHandler(
     #logical_tie_expressions=[
     #    ],
     pitch_specifier=pitchtools.PitchSegment([
         ersilia.Percussion.TOM_4,
Beispiel #10
0
from ersilia.materials import abbreviations

shaker_sporadic_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        dynamic_expression=consort.DynamicExpression(
            dynamic_tokens='ppp',
            transitions=['constante'],
        ),
        percussion_staff=abbreviations.percussion_staff,
        staccati=consort.AttachmentExpression(
            attachments=indicatortools.Articulation('staccato'),
            selector=selectortools.Selector().by_logical_tie(
                pitched=True).by_duration('<=', (1, 16), preprolated=True)[0],
        ),
        text_spanner=consort.AttachmentExpression(
            attachments=abbreviations.make_text_spanner('shaker'),
            selector=selectortools.Selector().by_leaf(),
        ),
        tremolo=consort.AttachmentExpression(
            attachments=spannertools.StemTremoloSpanner(),
            selector=selectortools.Selector().by_logical_tie(
                pitched=True).by_duration('>', (1, 16), preprolated=True)),
    ),
    color='blue',
    labels=['shakers'],
    pitch_handler=consort.AbsolutePitchHandler(pitches_are_nonsemantic=True, ),
    rhythm_maker=rhythmmakertools.TaleaRhythmMaker(
        extra_counts_per_division=[0, 0, 1],
        division_masks=[
            rhythmmakertools.SustainMask(pattern=patterntools.Pattern(
                indices=[2],
                 indicatortools.Articulation('accent'),
                 indicatortools.Dynamic('fp'),
             ],
         ],
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration(
                 '>', (1, 16),
                 preprolated=True).by_leaf().by_length('==', 1)[0]),
     swell=consort.AttachmentExpression(
         attachments=spannertools.Hairpin('niente < f'),
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration(
                 '>', (1, 16),
                 preprolated=True).by_leaf().by_length('>', 1)),
     text_spanner=consort.AttachmentExpression(
         attachments=abbreviations.make_text_spanner('crotales'),
         selector=selectortools.select_pitched_runs(),
     ),
     tremolo=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration('>', (1, 16), preprolated=True)),
 ),
 color='yellow',
 labels=[],
 pitch_handler=consort.PitchClassPitchHandler(
     forbid_repetitions=True,
     pitch_specifier=abbreviations.agitato_pitch_specifier,
     register_specifier=consort.RegisterSpecifier(
         base_pitch="c'''",
         segment_inflections=consort.RegisterInflection.zigzag(6).align()),
shaker_tremolo_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        accents=consort.AttachmentExpression(
            attachments=indicatortools.Articulation('accent'),
            selector=selectortools.Selector()
                .by_leaf()
                .by_run(scoretools.Note)
                [0],
            ),
        dynamic_expression=consort.DynamicExpression(
            dynamic_tokens='fp',
            ),
        percussion_staff=abbreviations.percussion_staff,
        text_spanner=consort.AttachmentExpression(
            attachments=abbreviations.make_text_spanner('shaker'),
            selector=selectortools.Selector().by_leaf(),
            ),
        tremolo_spanner=spannertools.StemTremoloSpanner(),
        ),
    color='blue',
    labels=['shakers'],
    pitch_handler=consort.AbsolutePitchHandler(
        pitches_are_nonsemantic=True,
        ),
    rhythm_maker=rhythmmakertools.NoteRhythmMaker(
        tie_specifier=rhythmmakertools.TieSpecifier(
            tie_across_divisions=True,
            ),
        ),
    )
from abjad.tools import patterntools
from abjad.tools import pitchtools
from abjad.tools import rhythmmakertools
from abjad.tools import selectortools
from abjad.tools import spannertools
from ersilia.materials import abbreviations

percussion_low_pedal_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        accents=consort.AttachmentExpression(
            attachments=indicatortools.Articulation('accent'),
            selector=selectortools.Selector().by_logical_tie().get_slice(
                start=1, apply_to_each=False)[0]),
        bass_drum_indication=consort.AttachmentExpression(
            attachments=consort.AttachmentExpression(
                attachments=abbreviations.make_text_spanner('bass drum'),
                selector=selectortools.select_pitched_runs(),
            ),
            selector=selectortools.Selector().by_logical_tie().by_pitch(
                pitches=ersilia.Percussion.BASS_DRUM).by_contiguity().by_leaf(
                )),
        tam_tam_indication=consort.AttachmentExpression(
            attachments=consort.AttachmentExpression(
                attachments=abbreviations.make_text_spanner('tam'),
                selector=selectortools.select_pitched_runs(),
            ),
            selector=selectortools.Selector().by_logical_tie().by_pitch(
                pitches=ersilia.Percussion.TAM_TAM).by_contiguity().by_leaf()),
        dynamic_expressions=consort.DynamicExpression(
            division_period=2,
            dynamic_tokens='p ppp p ppp mf',
piano_string_glissando_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        clef_spanner=consort.ClefSpanner('percussion'),
        dynamic_expressions=consort.DynamicExpression(
            dynamic_tokens='p',
            only_first=True,
            ),
        glissando=consort.Glissando(),
        staff_lines_spanner=spannertools.StaffLinesSpanner(
            lines=[-4, 4],
            overrides={
                'note_head__style': 'cross',
                }
            ),
        text_spanner=abbreviations.make_text_spanner('inside'),
        ),
    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,
                ),
string_pointillist_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        mordents=consort.AttachmentExpression(
            attachments=indicatortools.Articulation('mordent'),
            selector=selectortools.Selector()
                .by_logical_tie(pitched=True)
                [0]
            ),
        dynamic_expressions=consort.DynamicExpression(
            start_dynamic_tokens='ppp',
            only_first=True,
            ),
        text_spanner=consort.AttachmentExpression(
            attachments=consort.AttachmentExpression(
                attachments=abbreviations.make_text_spanner('pizz.'),
                selector=selectortools.Selector().by_leaf(),
                ),
            selector=selectortools.Selector().by_leaf(),
            ),
        ),
    color='darkyellow',
    labels=[],
    pitch_handler=consort.PitchClassPitchHandler(
        forbid_repetitions=True,
        pitch_specifier=abbreviations.agitato_pitch_specifier,
        register_specifier=consort.RegisterSpecifier(
            base_pitch='G3',
            phrase_inflections=consort.RegisterInflection
                .zigzag(3)
                .reverse()
Beispiel #16
0
         attachments=indicatortools.Articulation('accent'),
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration('>', (1, 16), preprolated=True)[0]),
     dynamic_expression=consort.DynamicExpression(
         start_dynamic_tokens='p fp',
         stop_dynamic_tokens='f',
         unsustained=True,
     ),
     staccato=consort.AttachmentExpression(
         attachments=indicatortools.Articulation('staccato'),
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration('<=', (1, 16), preprolated=True)[0],
     ),
     staff_lines_spanner=spannertools.StaffLinesSpanner([-4, -2, 0, 2, 4]),
     text_spanner=consort.AttachmentExpression(
         attachments=abbreviations.make_text_spanner('toms'),
         selector=selectortools.select_pitched_runs(),
     ),
     tremolo=consort.AttachmentExpression(
         attachments=spannertools.StemTremoloSpanner(),
         selector=selectortools.Selector().by_logical_tie(
             pitched=True).by_duration('>', (1, 16), preprolated=True)),
 ),
 color='magenta',
 pitch_handler=consort.AbsolutePitchHandler(
     #logical_tie_expressions=[
     #    ],
     pitch_specifier=pitchtools.PitchSegment([
         ersilia.Percussion.TOM_4,
         ersilia.Percussion.TOM_3,
         ersilia.Percussion.TOM_2,
             .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],
percussion_bamboo_windchimes_music_specifier = consort.MusicSpecifier(
    attachment_handler=consort.AttachmentHandler(
        accents=consort.AttachmentExpression(
            attachments=[[
                indicatortools.Articulation('accent'),
                indicatortools.Dynamic('f'),
            ]],
            selector=selectortools.Selector().by_logical_tie(
                pitched=True).by_duration('==', (1, 16), preprolated=True)[0],
        ),
        piano=consort.AttachmentExpression(
            attachments=indicatortools.Dynamic('pp'),
            selector=selectortools.Selector().by_logical_tie(
                pitched=True).by_duration('>', (1, 16), preprolated=True)[0]),
        text_spanner=consort.AttachmentExpression(
            attachments=abbreviations.make_text_spanner('windchimes'),
            selector=selectortools.select_pitched_runs(),
        ),
        tremolo=consort.AttachmentExpression(
            attachments=spannertools.StemTremoloSpanner(),
            selector=selectortools.Selector().by_logical_tie(
                pitched=True).by_duration('>', (1, 16), preprolated=True)),
    ),
    color='yellow',
    labels=['bamboo windchimes'],
    pitch_handler=consort.AbsolutePitchHandler(
        pitch_specifier=ersilia.Percussion.BAMBOO_WIND_CHIMES,
        pitches_are_nonsemantic=True,
    ),
    rhythm_maker=consort.CompositeRhythmMaker(
        default=rhythmmakertools.NoteRhythmMaker(