def show_one_chunk(chunk, closure): score = make_chunk_score(chunk, closure) lilypond_file = lilypondfiletools.make_basic_lilypond_file(score) configure_lilypond_file(lilypond_file, chunk.region_string, chunk.chunk_number) file_name = 'rhythms-%s-%s' % (chunk.region_string.lower(), chunk.chunk_number) keep_ly(lilypond_file, file_name) keep_pdf(lilypond_file, file_name) print() return score
# -*- coding: utf-8 -*- import abjad from archipel.etc.implementation.data import archipel_pitch_classes_type_1 from archipel.etc.implementation.utilities import keep_pdf h_pcs = archipel_pitch_classes_type_1 staff = Staff(notetools.make_notes(h_pcs, [Fraction(1, 1)])) leaftools.label_leaves_in_expr_with_inversion_equivalent_chromatic_interval_classes(staff) keep_pdf(staff, 'archipel-pitch-classes-type-1')
markuptools.Markup(label, direction_string = 'down')(bass_leaf) numbers = [] for instrument_list in (flute, accordion, guitar, marimba): numbers.extend(range(1, len(instrument_list) + 1)) for bass_leaf, number in zip(bass_staff.leaves, numbers): markuptools.Markup(number, direction_string = 'down')(bass_leaf) score.override.bar_line.transparent = True score.override.rest.transparent = True score.override.span_bar.transparent = True score.override.text_script.staff_padding = 6 lilypond_file = lilypondfiletools.make_basic_lilypond_file(score) lilypond_file.global_staff_size = 14 lilypond_file.default_paper_size = 'letter', 'landscape' lilypond_file.header_block.title = markuptools.Markup("l'archipel ranges") lilypond_file.layout_block.indent = 0 lilypond_file.paper_block.top_margin = 12 paper = os.path.join(os.environ.get('ARCHIPEL'), 'etc', 'ranges-paper.ly') lilypond_file.file_initial_user_includes.append(paper) abjad.LilyPondCommand('bar "|."', 'after')(score.leaves[-1]) mark = abjad.LilyPondCommand("override Score.BarLine #'transparent = ##f", 'after') mark(score.leaves[-1]) mark = abjad.LilyPondCommand("override Score.SpanBar #'transparent = ##f", 'after') mark(score.leaves[-1]) keep_pdf(lilypond_file, 'archipel-instrument-ranges')
for bass_leaf, pair in zip(bass_staff.leaves, archipel_aggregate_id_pairs): label = '-'.join([str(x) for x in pair]) markuptools.Markup(label, 'down')(bass_leaf) score.set.proportional_notation_duration = schemetools.SchemeMoment(3, 8) del(score.override.bar_line) del(score.override.span_bar) score.override.bar_line.transparent = True score.override.span_bar.transparent = True score.override.text_script.staff_padding = 5 score.override.time_signature.stencil = False command = "override Score.BarLine #'transparent = ##f" abjad.LilyPondCommand(command, 'after')(score.leaves[-1]) command = "override Score.SpanBar #'transparent = ##f" abjad.LilyPondCommand(command, 'after')(score.leaves[-1]) abjad.LilyPondCommand('bar "|."', 'after')(score.leaves[-1]) lilypond_file = lilypondfiletools.make_basic_lilypond_file(score) lilypond_file.default_paper_size = 'letter', 'landscape' lilypond_file.global_staff_size = 16 include_file = os.path.join(os.environ.get('ARCHIPEL'), 'etc', 'ly', 'aggregates-misc.ly') lilypond_file.file_initial_user_includes.append(include_file) keep_pdf(lilypond_file, 'archipel-aggregates')
# -*- coding: utf-8 -*- import abjad from archipel.etc.implementation.utilities import get_pitches from archipel.etc.implementation.utilities import keep_pdf for type_of_pitch_material in (1, 2): for index_of_transposition in range(12): pitches = get_pitches(type_of_pitch_material, index_of_transposition) pitches = tuple(pitches) notes = notetools.make_notes(pitches, [(1, 4)]) score, t, b = scoretools.make_piano_sketch_score_from_leaves(notes) lilypond_file = lilypondfiletools.make_basic_lilypond_file(score) lilypond_file.global_staff_size = 16 lilypond_file.default_paper_size = 'letter', 'portrait' title = "l'archipel type %s pitches t%s" title %= (type_of_pitch_material, index_of_transposition) lilypond_file.header_block.title = title lilypond_file.layout_block.indent = 0 lilypond_file.paper_block.system_system_spacing = \ layouttools.make_spacing_vector(0, 0, 12, 0) lilypond_file.paper_block.markup_system_spacing = \ layouttools.make_spacing_vector(0, 0, 12, 0) lilypond_file.paper_block.top_margin = 12 score.override.stem.transparent = True score.override.rest.transparent = True name = 'archipel-type-%s-pitches-t%s' name %= (type_of_pitch_material, index_of_transposition) keep_pdf(lilypond_file, name)