def margin_markup(key, alert=None, context="Staff", selector=baca.selectors.leaf(0)): margin_markup = margin_markups[key] command = baca.margin_markup( margin_markup, alert=alert, context=context, selector=selector, ) command_ = baca.not_parts(command) command_ = baca.tag(abjad.Tag("ANIMALES"), command_) return command_
def margin_markup( key: str, alert: baca.IndicatorCommand = None, context: str = "Staff", selector: baca.typings.Selector = "baca.leaf(0)", ) -> typing.Union[baca.Command, baca.Suite]: """ Makes tagged margin markup indicator command. """ margin_markup = krummzeit.margin_markups[key] command = baca.margin_markup( margin_markup, alert=alert, context=context, selector=selector ) return baca.tag("-PARTS", command)
"{" r" c'4 \times 2/3 { c'8 r4 } r4" r" c'4 \times 2/3 { c'8 r4 } r4" r" c'4 c'8 r8 r4" r" c'4 c'8 r8 r4" " }", ), ) maker( ('rh', [9, 10]), baca.tag( # TODO: make +ARCH_A_SCORE work #'+ARCH_A_SCORE', '+SCORE', baca.literal( r'\once \override TupletNumber.font-size = -2', selector=baca.pleaf(1), ), ), ) maker( ('rh', (13, 15)), baca.rhythm("{ c'4 c'4 c'4 c'4 c'4 c'4 }"), ) maker( ('rh', (16, 18)), baca.rhythm( "{"
voice_names=voice_names, ) commands( "Global_Skips", baca.metronome_mark("76"), baca.rehearsal_mark( "F", baca.selectors.skip(1 - 1), abjad.tweak( (0, 6), tag=abjad.Tag("+TABLOID_SCORE"), ).extra_offset, ), baca.tag( abjad.Tag("+TABLOID_SCORE"), baca.text_spanner_left_padding(-9), ), baca.tag( abjad.Tag("+TABLOID_SCORE"), baca.text_spanner_y_offset(8), ), ) # clarinets commands( ("cl1", (1, 4)), library.margin_markup("Cl. 1"), library.parts("Clarinet", 1), baca.hairpin("mp < mf"), baca.make_repeat_tied_notes(),
voice_names=voice_names, ) commands( "Global_Skips", baca.metronome_mark("114"), baca.rehearsal_mark( "M", baca.selectors.skip(1 - 1), abjad.tweak( (0, 12), tag=abjad.Tag("+TABLOID_SCORE"), ).extra_offset, ), baca.tag( abjad.Tag("+TABLOID_SCORE"), baca.text_spanner_left_padding(-2), ), ) # flutes commands( "fl1", library.parts("Flute", 1), ) commands( "fl3", library.parts("Flute", 3), )
baca.text_spanner( '(trem. mod.) => più stretto => più largo => più stretto => mod.', abjad.tweak(6).staff_padding, pieces=baca.lparts([1, 1, 1, 1 + 1]), ), ) maker( ('rh', (18, 21)), # TODO: make +LEDGER_SCORE tag work #baca.tag( # '+LEDGER_SCORE', # baca.hairpin_to_barline(), # ), baca.tag( '+SCORE', baca.hairpin_to_barline(), ), ) maker( ('rh', (18, 23)), baca.make_monads('1/2 1/2 1/2 1/2 1/2 1/2'), baca.markup( r'\baca-ffz-markup', direction=abjad.Down, literal=True, ), baca.markup( r'\baca-fz-markup', direction=abjad.Down, literal=True,
library.margin_markup("Perc. 4 (slate)"), baca.dynamic('"mf"'), baca.make_tied_repeated_durations([(1, 4)]), baca.markup(r"\animales-stonecircle-markup"), baca.only_parts(baca.text_script_x_offset(3)), baca.staff_position(0), ) for voice in ( "perc4", "pf1", ): commands( (voice, 1), baca.tag( abjad.Tag("+TABLOID_SCORE"), baca.literal(r"\magnifyStaff #10/7"), ), ) commands( ("perc4", -1), baca.chunk( baca.mark(r"\animales-colophon-markup"), baca.rehearsal_mark_down(), baca.rehearsal_mark_padding(6), baca.rehearsal_mark_self_alignment_x(abjad.Right), selector=baca.selectors.rleaf(-1), ), ) if __name__ == "__main__":