Abjad API

abjad.bind

abjad.bind.annotate(component, key, value)

Annotates component with key equal to value.

abjad.bind.attach(indicator, component, *[, ...])

Attaches indicator to component.

abjad.bind.detach(indicator, component, *[, ...])

Detaches indicators equals to indicator from component.

abjad.configuration

abjad.configuration.list_all_classes([...])

Lists all public classes defined in path.

abjad.configuration.list_all_functions([modules])

Lists all public functions defined in modules.

abjad.configuration.yield_all_modules([...])

Yields all submodules in the package named package_name.

abjad.configuration.Configuration()

Configuration.

abjad.contextmanagers

abjad.contextmanagers.ContextManager()

Context manager.

abjad.contextmanagers.FilesystemState([...])

Filesystem state context manager.

abjad.contextmanagers.ForbidUpdate(component, *)

Forbid update context manager.

abjad.contextmanagers.NullContextManager()

Null context manager.

abjad.contextmanagers.ProgressIndicator([...])

Progress indicator context manager.

abjad.contextmanagers.RedirectedStreams([...])

Redirected streams context manager.

abjad.contextmanagers.TemporaryDirectory([...])

Temporary directory context manager.

abjad.contextmanagers.TemporaryDirectoryChange([...])

Temporary directory change context manager.

abjad.contextmanagers.Timer([exit_message, ...])

Timer context manager.

abjad.contributions

abjad.contributions.ContributionsBySite(...)

LilyPond format contributions.

abjad.contributions.Sites(value[, names, ...])

Contribution sites.

abjad.contributions.Types(value[, names, ...])

Contribution types.

abjad.cyclictuple

abjad.cyclictuple.CyclicTuple([items])

Cyclic tuple.

abjad.duration

abjad.duration.add_pairs(pair_1, pair_2)

Adds pair_1 to pair_2.

abjad.duration.divide_pair(pair, n)

Divides pair by integer n.

abjad.duration.durations(durations)

Changes durations to durations.

abjad.duration.fraction_from_dot_count(dot_count)

Makes fraction from dot_count.

abjad.duration.pair(argument)

Changes argument to pair.

abjad.duration.with_denominator(duration, ...)

Spells duration as pair with denominator.

abjad.duration.Duration(*arguments)

Duration.

abjad.duration.Offset(*arguments, **keywords)

Offset.

abjad.duration.Ratio(numerator, denominator)

Ratio.

abjad.enumerate

abjad.enumerate.outer_product(argument)

Yields outer product of sequences in argument.

abjad.enumerate.yield_combinations(argument)

Yields combinations of sequence items in binary string order.

abjad.enumerate.yield_pairs(argument)

Yields pairs sequence items.

abjad.enumerate.yield_partitions(argument)

Yields partitions of sequence.

abjad.enumerate.yield_permutations(argument)

Yields permutations of sequence.

abjad.enumerate.yield_set_partitions(sequence)

Yields set partitions of sequence in order of restricted growth function.

abjad.enumerate.yield_subsequences(sequence)

Yields subsequences of sequence.

abjad.enums

abjad.enums.Comparison(value[, names, ...])

Enumeration of amount comparisons.

abjad.enums.Horizontal(value[, names, ...])

Enumeration of horizontal alignments.

abjad.enums.Vertical(value[, names, module, ...])

Enumeration of vertical alignments.

abjad.exceptions

abjad.exceptions.AssignabilityError

Duration can not be assigned to note, rest or chord.

abjad.exceptions.ImpreciseMetronomeMarkError

Metronome mark is imprecise.

abjad.exceptions.LilyPondParserError

Can not parse input.

abjad.exceptions.MissingContextError

No context found.

abjad.exceptions.MissingMetronomeMarkError

No metronome mark found.

abjad.exceptions.ParentageError

A parentage error.

abjad.exceptions.PersistentIndicatorError

Persistent indicator already attached at same context.

abjad.exceptions.SchemeParserFinishedError

Scheme parser has finished parsing.

abjad.exceptions.UnboundedTimeIntervalError

Time interval has no bounds.

abjad.exceptions.WellformednessError

Score not well formed.

abjad.format

abjad.format.format_component(component)

Formats component.

abjad.format.remove_site_comments(string)

Removes site comments from string.

abjad.get

abjad.get.after_grace_container(argument)

Gets after grace containers attached to component.

abjad.get.annotation(component, key[, default])

Gets annotation attached to component with key.

abjad.get.before_grace_container(argument)

Gets before-grace container attached to leaf.

abjad.get.contents(argument)

Gets contents.

abjad.get.descendants(argument)

Gets descendants.

abjad.get.duration(argument[, in_seconds, ...])

Gets duration.

abjad.get.effective(component, prototype, *)

Gets effective indicator.

abjad.get.effective_staff(component)

Gets effective staff.

abjad.get.effective_wrapper(component, ...)

Gets effective wrapper.

abjad.get.has_effective_indicator(argument)

Is true when argument has effective indicator.

abjad.get.has_indicator(argument[, ...])

Is true when argument has one or more indicators.

abjad.get.indicator(component[, prototype, ...])

Gets indicator that attaches to component and matches prototype.

abjad.get.indicators(component[, prototype, ...])

Gets indicators that attach to component and match prototype.

abjad.get.is_bar_line_crossing(argument)

Is true when argument crosses bar line.

abjad.get.is_grace_music(argument)

Is true when argument is grace music.

abjad.get.is_sustained(argument)

Is true when argument is sustained.

abjad.get.leaf(argument[, n])

Gets leaf n.

abjad.get.lineage(argument)

Gets lineage.

abjad.get.logical_tie(argument)

Gets logical tie.

abjad.get.markup(argument, *[, direction])

Gets markup.

abjad.get.measure_number(argument)

Gets measure number.

abjad.get.parentage(argument)

Gets parentage.

abjad.get.pitches(argument)

Gets pitches.

abjad.get.sounding_pitch(note)

Gets sounding pitch of note.

abjad.get.sounding_pitches(chord)

Gets sounding pitches of chord.

abjad.get.timespan(argument[, in_seconds])

Gets timespan of argument.

abjad.get.wrapper(component[, prototype, ...])

Gets wrapper.

abjad.get.wrappers(component[, prototype, ...])

Gets wrappers that attach to component and match prototype.

abjad.get.Lineage([component])

Lineage of a component.

abjad.illustrators

abjad.illustrators.attach_markup_struts(...)

LilyPond workaround.

abjad.illustrators.components(components[, ...])

Wraps components in LilyPond file for doc examples.

abjad.illustrators.components_to_score_markup_string(...)

Changes components to score markup string.

abjad.illustrators.illustrate(item, **keywords)

Illustrates item.

abjad.illustrators.lilypond(argument, *[, ...])

Gets LilyPond format of argument.

abjad.illustrators.make_piano_score([...])

Makes piano score from leaves.

abjad.indicators

abjad.indicators.Arpeggio([direction])

Arpeggio.

abjad.indicators.Articulation(name)

Articulation.

abjad.indicators.BarLine([abbreviation, site])

Bar line.

abjad.indicators.BeamCount([left, right])

LilyPond \setLeftBeamCount, \setRightBeamCount commands.

abjad.indicators.BendAfter([bend_amount])

Fall or doit.

abjad.indicators.BreathMark()

Breath mark.

abjad.indicators.Clef([name, hide])

Clef.

abjad.indicators.ColorFingering(number)

Color fingering.

abjad.indicators.Dynamic([name, command, ...])

Dynamic.

abjad.indicators.Fermata([command])

Fermata.

abjad.indicators.Glissando([zero_padding])

LilyPond \glissando command.

abjad.indicators.InstrumentName(markup, *[, ...])

LilyPond \instrumentName setting.

abjad.indicators.KeyCluster([...])

Key cluster.

abjad.indicators.KeySignature([tonic, mode])

Key signature.

abjad.indicators.LaissezVibrer()

Laissez vibrer.

abjad.indicators.LilyPondLiteral([argument, ...])

LilyPond literal.

abjad.indicators.Markup(string)

LilyPond markup.

abjad.indicators.MetronomeMark([...])

Metronome mark.

abjad.indicators.Mode([name])

Mode.

abjad.indicators.Ottava([n, site])

LilyPond \ottava command.

abjad.indicators.RehearsalMark([markup, ...])

LilyPond \mark command.

abjad.indicators.Repeat([repeat_count, ...])

Repeat.

abjad.indicators.RepeatTie()

LilyPond \repeatTie command.

abjad.indicators.ShortInstrumentName(markup, *)

LilyPond \shortInstrumentName command.

abjad.indicators.StaffChange(staff_name)

Staff change.

abjad.indicators.StartBeam()

LilyPond [ command.

abjad.indicators.StartGroup()

LilyPond \startGroup command.

abjad.indicators.StartHairpin([shape])

Hairpin indicator.

abjad.indicators.StartPhrasingSlur()

LilyPond ( command.

abjad.indicators.StartPianoPedal([kind])

LilyPond \sustainOn, \sostenutoOn, \unaCorda commands.

abjad.indicators.StartSlur()

LilyPond ( command.

abjad.indicators.StartTextSpan([command, ...])

LilyPond \startTextSpan command.

abjad.indicators.StartTrillSpan([interval, ...])

LilyPond \startTrillSpan command.

abjad.indicators.StemTremolo([tremolo_flags])

Stem tremolo.

abjad.indicators.StopBeam([leak])

LilyPond ] command.

abjad.indicators.StopGroup([leak])

LilyPond \stopGroup command.

abjad.indicators.StopHairpin([leak])

LilyPond \! command.

abjad.indicators.StopPhrasingSlur([leak])

LilyPond \) command.

abjad.indicators.StopPianoPedal([kind, leak])

LilyPond \sostenutoOff, \sustainOff, \treCorde commands.

abjad.indicators.StopSlur([leak])

LilyPond ) command.

abjad.indicators.StopTextSpan([command, leak])

LilyPond \stopTextSpan command.

abjad.indicators.StopTrillSpan([leak])

LilyPond \stopTrillSpan command.

abjad.indicators.TextMark(string, *[, site])

LilyPond \textMark, \textEndMark commands.

abjad.indicators.Tie()

LilyPond ~ command.

abjad.indicators.TimeSignature(pair[, hide, ...])

Time signature.

abjad.indicators.VoiceNumber([n, leak])

LilyPond \voiceOne, \voiceTwo, \voiceThree, \voiceFour, \oneVoice commands.

abjad.instruments

abjad.instruments.Accordion([clefs, ...])

Accordion.

abjad.instruments.AltoFlute([clefs, ...])

Alto flute.

abjad.instruments.AltoSaxophone([clefs, ...])

Alto saxophone.

abjad.instruments.AltoTrombone([clefs, ...])

Alto trombone.

abjad.instruments.AltoVoice([clefs, ...])

Alto voice.

abjad.instruments.BaritoneSaxophone([clefs, ...])

Baritone saxophone.

abjad.instruments.BaritoneVoice([clefs, ...])

Baritone voice.

abjad.instruments.BassClarinet([clefs, ...])

Bass clarinet.

abjad.instruments.BassFlute([clefs, ...])

Bass flute.

abjad.instruments.BassSaxophone([clefs, ...])

Bass saxophone.

abjad.instruments.BassTrombone([clefs, ...])

Bass trombone.

abjad.instruments.BassVoice([clefs, ...])

Bass voice.

abjad.instruments.Bassoon([clefs, context, ...])

Bassoon.

abjad.instruments.Cello([clefs, context, ...])

Cello.

abjad.instruments.ClarinetInA([clefs, ...])

Clarinet in A.

abjad.instruments.ClarinetInBFlat([clefs, ...])

Clarinet in B-flat.

abjad.instruments.ClarinetInEFlat([clefs, ...])

Clarinet in E-flat.

abjad.instruments.Contrabass([clefs, ...])

Contrabass.

abjad.instruments.ContrabassClarinet([...])

Contrabass clarinet.

abjad.instruments.ContrabassFlute([clefs, ...])

Contrabass flute.

abjad.instruments.ContrabassSaxophone([...])

Contrabass saxophone.

abjad.instruments.Contrabassoon([clefs, ...])

Contrabassoon.

abjad.instruments.EnglishHorn([clefs, ...])

English horn.

abjad.instruments.Flute([clefs, context, ...])

Flute.

abjad.instruments.FrenchHorn([clefs, ...])

French horn.

abjad.instruments.Glockenspiel([clefs, ...])

Glockenspiel.

abjad.instruments.Guitar([clefs, context, ...])

Guitar.

abjad.instruments.Harp([clefs, context, ...])

Harp.

abjad.instruments.Harpsichord([clefs, ...])

Harpsichord.

abjad.instruments.Instrument([clefs, ...])

Instrument.

abjad.instruments.Marimba([clefs, context, ...])

Marimba.

abjad.instruments.MezzoSopranoVoice([clefs, ...])

Mezzosoprano voice.

abjad.instruments.Oboe([clefs, context, ...])

Oboe.

abjad.instruments.Percussion([clefs, ...])

Percussion.

abjad.instruments.Piano([clefs, context, ...])

Piano.

abjad.instruments.Piccolo([clefs, context, ...])

Piccolo.

abjad.instruments.SopraninoSaxophone([...])

Sopranino saxophone.

abjad.instruments.SopranoSaxophone([clefs, ...])

Soprano saxophone.

abjad.instruments.SopranoVoice([clefs, ...])

Soprano voice.

abjad.instruments.StringNumber([numbers])

String number.

abjad.instruments.TenorSaxophone([clefs, ...])

Tenor saxophone.

abjad.instruments.TenorTrombone([clefs, ...])

Tenor trombone.

abjad.instruments.TenorVoice([clefs, ...])

Tenor voice.

abjad.instruments.Trumpet([clefs, context, ...])

Trumpet.

abjad.instruments.Tuba([clefs, context, ...])

Tuba.

abjad.instruments.Tuning([pitches])

Tuning.

abjad.instruments.Vibraphone([clefs, ...])

Vibraphone.

abjad.instruments.Viola([clefs, context, ...])

Viola.

abjad.instruments.Violin([clefs, context, ...])

Violin.

abjad.instruments.Xylophone([clefs, ...])

Xylophone.

abjad.io

abjad.io.compare_files(path_1, path_2)

Compares file path_1 to file path_2.

abjad.io.count_function_calls(argument, *[, ...])

Counts function calls required to execute argument.

abjad.io.execute_file([path, attribute_names])

Executes file path.

abjad.io.execute_string(string, *[, ...])

Executes string.

abjad.io.find_executable(name, *[, flags])

Finds executable name.

abjad.io.graph(graphable[, format_, layout, ...])

Graphs argument.

abjad.io.make_subprocess(command)

Makes Popen instance.

abjad.io.open_file(file_path, *[, ...])

Opens file_path.

abjad.io.open_last_log()

Opens LilyPond log file in operating system-specific text editor.

abjad.io.profile(string, *[, ...])

Profiles string.

abjad.io.run_command(command)

Runs command in subprocess.

abjad.io.run_lilypond(ly_path, *[, flags, ...])

Runs LilyPond on ly_path.

abjad.io.show(illustrable, *[, flags, ...])

Shows illustrable.

abjad.io.spawn_subprocess(command)

Spawns subprocess and runs command.

abjad.io.AbjadGrapher(graphable[, format_, ...])

Abjad grapher.

abjad.io.Illustrator(illustrable, *[, ...])

Illustrator.

abjad.io.LilyPondIO(illustrable, *[, flags, ...])

LilyPond IO.

abjad.io.Player(illustrable, *[, flags, ...])

Player.

abjad.iterate

abjad.iterate.components()

Iterates components in argument.

abjad.iterate.leaves(argument[, prototype, ...])

Iterates leaves in argument.

abjad.iterate.logical_ties(argument, *[, ...])

Iterates logical ties in argument.

abjad.iterate.pitches(argument)

Iterates pitches in argument.

abjad.iterate.timeline(argument[, ...])

Iterates leaves in argument in timeline order.

abjad.iterpitches

abjad.iterpitches.iterate_out_of_range(argument)

Iterates out-of-range notes and chords in argument.

abjad.iterpitches.respell_with_flats(argument)

Respells pitches in argument with flats.

abjad.iterpitches.respell_with_sharps(argument)

Respells pitches in argument with sharps.

abjad.iterpitches.sounding_pitches_are_in_range(...)

Returns true when all pitches in argument sound within pitch_range.

abjad.iterpitches.transpose_from_sounding_pitch(...)

Transpose notes and chords in argument from sounding pitch to written pitch.

abjad.iterpitches.transpose_from_written_pitch(...)

Transposes notes and chords in argument from sounding pitch to written pitch.

abjad.label

abjad.label.color_container(container[, color])

Colors contents of container.

abjad.label.color_leaves(argument[, color, ...])

Colors leaves in argument.

abjad.label.color_note_heads(argument[, ...])

Colors note note-heads.

abjad.label.remove_markup(argument)

Removes markup from leaves in argument.

abjad.label.vertical_moments(argument[, ...])

Labels vertical moments.

abjad.label.with_durations(argument, *[, ...])

Labels logical ties in argument with durations.

abjad.label.with_indices(argument[, ...])

Labels logical ties in argument with indices.

abjad.label.with_intervals(argument[, ...])

Labels consecutive notes in argument with intervals.

abjad.label.with_pitches(argument[, ...])

Labels logical ties in argument with pitches.

abjad.label.with_set_classes(argument[, ...])

Labels selections argument with set-classes.

abjad.label.with_start_offsets(argument[, ...])

Labels logical ties in argument with start offsets.

abjad.label.ColorMap([colors, pitch_iterables])

Color map.

abjad.lilypondfile

abjad.lilypondfile.Block(name, items)

LilyPond file block.

abjad.lilypondfile.LilyPondFile(items, ...)

LilyPond file.

abjad.lyproxy

abjad.lyproxy.LilyPondContext([name])

LilyPond context.

abjad.lyproxy.LilyPondEngraver([name])

LilyPond engraver.

abjad.lyproxy.LilyPondGrob([name])

LilyPond grob.

abjad.lyproxy.LilyPondGrobInterface([name])

LilyPond grob interface.

abjad.makers

abjad.makers.make_durations(items)

Changes list of arbitrary items to list of durations.

abjad.makers.make_leaves(pitch_lists, ...[, ...])

Makes leaves from pitch_lists and durations.

abjad.makers.make_notes(pitches, durations, *)

Makes notes from pitches and durations.

abjad.makers.make_pitch_lists(argument)

Changes list or string argument to list of pitch lists.

abjad.makers.make_pitches(argument)

Changes list or string argument to list of named pitches.

abjad.makers.make_tuplet(duration, proportion, *)

Makes tuplet from duration and proportion.

abjad.makers.tweak_tuplet_bracket_edge_height(...)

Tweaks tuplet bracket edge height of incomplete tuplets in argument.

abjad.math

abjad.math.all_are_equal(argument)

Is true when argument is an iterable collection of equal items.

abjad.math.all_are_integer_equivalent(argument)

Is true when argument is an iterable collection with integer-equivalent items.

abjad.math.all_are_integer_equivalent_numbers(...)

Is true when argument is an iterable collection with integer-equivalent items.

abjad.math.all_are_nonnegative_integer_equivalent_numbers(...)

Is true when argument is an iterable collection of nonnegative integer-equivalent numbers.

abjad.math.all_are_nonnegative_integer_powers_of_two(...)

Is true when argument is an iterable collection of nonnegative integer powers of two.

abjad.math.all_are_nonnegative_integers(argument)

Is true when argument is an iterable collection of nonnegative integers.

abjad.math.all_are_pairs_of_types(argument, ...)

Is true when argument is an iterable collection whose members are all of length 2, and where the first member of each pair is an instance of first_type and where the second member of each pair is an instance of second_type.

abjad.math.all_are_positive_integers(argument)

Is true when argument is an iterable collection of positive integers.

abjad.math.are_relatively_prime(argument)

Is true when argument is an iterable collection of relative primes.

abjad.math.arithmetic_mean(argument)

Gets arithmetic mean of argument.

abjad.math.binomial_coefficient(n, k)

Gets binomial coefficient of n choose k.

abjad.math.cumulative_products(argument)

Gets cumulative products of argument.

abjad.math.cumulative_sums(argument[, start])

Gets cumulative sums of argument.

abjad.math.difference_series(argument)

Gets difference series of argument.

abjad.math.divide_integer_by_ratio(n, ratio)

Divides integer n by tuple ratio.

abjad.math.divisors(n)

Gets positive divisors of n in increasing order.

abjad.math.factors(n)

Gets prime factors less than or equal to positive integer n .

abjad.math.fraction_to_proper_fraction(rational)

Changes rational to proper fraction.

abjad.math.greatest_common_divisor(*integers)

Calculates greatest common divisor of integers.

abjad.math.greatest_power_of_two_less_equal(n)

Gets greatest integer power of two less than or equal to positive n.

abjad.math.integer_equivalent_number_to_integer(number)

Changes integer-equivalent number to integer.

abjad.math.integer_to_base_k_tuple(n, k)

Changes nonnegative integer n to base-k tuple.

abjad.math.integer_to_binary_string(n)

Changes positive integer n to binary string.

abjad.math.is_assignable_integer(argument)

Is true when argument is equivalent to an integer that can be written without recourse to ties.

abjad.math.is_integer_equivalent(argument)

Is true when argument is an integer-equivalent number.

abjad.math.is_integer_equivalent_n_tuple(...)

Is true when argument is a tuple of n integer-equivalent items.

abjad.math.is_integer_equivalent_number(argument)

Is true when argument is a number and argument is equivalent to an integer.

abjad.math.is_nonnegative_integer(argument)

Is true when argument equals a nonnegative integer.

abjad.math.is_nonnegative_integer_equivalent_number(...)

Is true when argument is a nonnegative integer-equivalent number.

abjad.math.is_nonnegative_integer_power_of_two(...)

Is true when argument is a nonnegative integer power of 2.

abjad.math.is_positive_integer(argument)

Is true when argument equals a positive integer.

abjad.math.is_positive_integer_equivalent_number(...)

Is true when argument is a positive integer-equivalent number.

abjad.math.is_positive_integer_power_of_two(...)

Is true when argument is a positive integer power of 2.

abjad.math.least_common_multiple(*integers)

Gets least common multiple of positive integers.

abjad.math.partition_integer_by_ratio(n, ratio)

Partitions positive integer-equivalent n by ratio.

abjad.math.partition_integer_into_canonic_parts(n)

Partitions integer n into canonic parts.

abjad.math.sign(n)

Gets sign of n.

abjad.math.weight(argument)

Gets weight of argument.

abjad.math.yield_all_compositions_of_integer(n)

Yields all compositions of positive integer n.

abjad.math.Infinity()

Infinity.

abjad.math.NegativeInfinity()

Negative infinity.

abjad.meter

abjad.meter.illustrate_meter_list(meter_list)

Illustrates meters.

abjad.meter.make_best_guess_rtc(pair, *[, ...])

Makes best-guess rhythm-tree container.

abjad.meter.Meter(root_node)

Meter.

abjad.meter.MetricAccentKernel([kernel])

Metric accent kernel.

abjad.metricmodulation

abjad.metricmodulation.MetricModulation(...)

Metric modulation.

abjad.mutate

abjad.mutate.copy(argument[, n])

Copies argument.

abjad.mutate.eject_contents(container)

Ejects container contents.

abjad.mutate.extract(argument)

Extracts argument from score.

abjad.mutate.fuse(argument)

Fuses argument.

abjad.mutate.logical_tie_to_tuplet(argument, ...)

Changes logical tie to tuplet.

abjad.mutate.replace(argument, recipients, *)

Replaces argument (and contents of argument) with recipients.

abjad.mutate.scale(argument, multiplier)

Scales argument by multiplier.

abjad.mutate.split(argument, durations, *[, ...])

Splits argument by durations.

abjad.mutate.swap(argument, container)

Swaps argument for empty container.

abjad.mutate.transpose(argument, interval)

Transposes notes and chords in argument by interval.

abjad.mutate.wrap(argument, container)

Wraps argument in empty container.

abjad.obgc

abjad.obgc.on_beat_grace_container(...[, ...])

Wraps grace_leaves in on-beat grace container; wraps nongrace_leaves in voice ("nongrace voice"); wraps on-beat grace container and nongrace voice in container ("polyphony container").

abjad.obgc.OnBeatGraceContainer([...])

On-beat grace container.

abjad.overrides

abjad.overrides.override(argument)

Makes LilyPond grob override interface.

abjad.overrides.setting(argument)

Makes LilyPond setting name interface.

abjad.overrides.Interface()

Base class from which grob, setting and tweak interfaces inherit.

abjad.overrides.LilyPondOverride([...])

LilyPond grob override.

abjad.overrides.LilyPondSetting([...])

LilyPond context setting.

abjad.overrides.OverrideInterface()

Override interface.

abjad.overrides.SettingInterface()

LilyPond setting interface.

abjad.parentage

abjad.parentage.Parentage([component])

Parentage of a component.

abjad.parsers

abjad.parsers.parse.parse(string[, ...])

Parses LilyPond string.

abjad.parsers.reduced

abjad.parsers.reduced.parse_reduced_ly_syntax(string)

Parse the reduced LilyPond rhythmic syntax:

abjad.parsers.reduced.ReducedLyParser([debug])

Parses the "reduced-ly" syntax, a modified subset of LilyPond syntax.

abjad.pattern

abjad.pattern.Pattern([indices, inverted, ...])

Pattern.

abjad.pattern.PatternTuple([items])

Pattern tuple.

abjad.pcollections

abjad.pcollections.make_interval_class_vector(pitches)

Makes interval-class vector.

abjad.pcollections.voice_horizontally(pcs[, ...])

Voices named pcs with each pitch as close to the previous pitch as possible.

abjad.pcollections.voice_vertically(pcs[, ...])

Voices named pcs with each pitch not lower than the previous.

abjad.pcollections.PitchClassSegment([items])

Numbered pitch-class segment.

abjad.pcollections.PitchClassSet([argument])

Numbered pitch-class set.

abjad.pcollections.PitchRange([range_string])

Pitch range.

abjad.pcollections.PitchSegment([items])

Named pitch segment.

abjad.pcollections.PitchSet([argument])

Numbered pitch set.

abjad.pcollections.TwelveToneRow([items])

Twelve-tone row.

abjad.persist

abjad.persist.as_ly(argument, ly_file_path, *)

Persists argument as LilyPond file.

abjad.persist.as_midi(argument, ...[, flags])

Persists argument as MIDI file.

abjad.persist.as_pdf(argument, pdf_file_path, *)

Persists argument as PDF.

abjad.persist.as_png(argument, png_file_path, *)

Persists argument as PNG.

abjad.pitch

abjad.pitch.Accidental([name, arrow])

Accidental.

abjad.pitch.Interval(argument)

Abstract interval.

abjad.pitch.IntervalClass(argument)

Abstract interval-class.

abjad.pitch.NamedInterval([name])

Named interval.

abjad.pitch.NamedIntervalClass([name])

Named interval-class.

abjad.pitch.NamedInversionEquivalentIntervalClass([name])

Named inversion-equivalent interval-class.

abjad.pitch.NamedPitch([name, accidental, ...])

Named pitch.

abjad.pitch.NamedPitchClass([name, ...])

Named pitch-class.

abjad.pitch.NumberedInterval([number])

Numbered interval.

abjad.pitch.NumberedIntervalClass([number])

Numbered interval-class.

abjad.pitch.NumberedInversionEquivalentIntervalClass([...])

Numbered inversion-equivalent interval-class.

abjad.pitch.NumberedPitch([number, arrow, ...])

Numbered pitch.

abjad.pitch.NumberedPitchClass([number, arrow])

Numbered pitch-class.

abjad.pitch.Octave([number])

Octave.

abjad.pitch.Pitch(argument[, accidental, ...])

Abstract pitch.

abjad.pitch.PitchClass(argument)

Abstract pitch-class.

abjad.pitch.StaffPosition([number])

Staff position.

abjad.rhythmtrees

abjad.rhythmtrees.call(nodes[, duration])

Calls each node in nodes with duration.

abjad.rhythmtrees.extract_trivial_tuplets(...)

Extracts trivial tuplets from argument.

abjad.rhythmtrees.parse(string)

Parses RTM string.

abjad.rhythmtrees.RhythmTreeContainer(pair)

Rhythm-tree container.

abjad.rhythmtrees.RhythmTreeLeaf(pair, *[, ...])

Rhythm-tree leaf.

abjad.rhythmtrees.RhythmTreeNode(pair)

Rhythm-tree node.

abjad.rhythmtrees.RhythmTreeParser([debug])

Rhythm-tree parser.

abjad.score

abjad.score.AfterGraceContainer([...])

After grace container.

abjad.score.BeforeGraceContainer([...])

Grace container.

abjad.score.Chord(*arguments[, language, ...])

Chord.

abjad.score.Cluster([components, ...])

Cluster.

abjad.score.Component(*[, tag])

Component.

abjad.score.Container([components, ...])

Container.

abjad.score.Context([components, language, ...])

LilyPond context.

abjad.score.DrumNoteHead([written_pitch, ...])

Drum note-head.

abjad.score.IndependentAfterGraceContainer([...])

Independent after grace container.

abjad.score.Leaf(written_duration, *[, ...])

Leaf.

abjad.score.MultimeasureRest(*arguments[, ...])

Multimeasure rest.

abjad.score.Note(*arguments[, language, ...])

Note.

abjad.score.NoteHead([written_pitch, ...])

Note-head.

abjad.score.NoteHeadList([argument])

Note-head list.

abjad.score.Rest([written_duration, ...])

Rest.

abjad.score.Score([components, language, ...])

Score.

abjad.score.Skip(*arguments[, language, ...])

LilyPond skip.

abjad.score.Staff([components, language, ...])

Staff.

abjad.score.StaffGroup([components, ...])

Staff group.

abjad.score.TremoloContainer([count, ...])

Tremolo container.

abjad.score.Tuplet([ratio, components, ...])

Tuplet.

abjad.score.Voice([components, language, ...])

Voice.

abjad.select

abjad.select.chord(argument, n, *[, ...])

Selects chord n in argument.

abjad.select.chords(argument, *[, exclude, ...])

Selects chords in argument.

abjad.select.components(argument[, ...])

Selects components.

abjad.select.exclude(argument, indices[, period])

Excludes items at indices by period.

abjad.select.filter(argument[, predicate])

Filters argument by predicate.

abjad.select.flatten(argument[, depth])

Flattens argument.

abjad.select.get(argument, indices[, ...])

Gets items in argument at indices according to period.

abjad.select.group(argument)

Groups argument in selection.

abjad.select.group_by(argument[, predicate])

Groups items in argument by predicate.

abjad.select.group_by_contiguity(argument)

Groups items in argument by contiguity.

abjad.select.group_by_duration(argument)

Groups items in argument by duration.

abjad.select.group_by_length(argument)

Groups items in argument by length.

abjad.select.group_by_measure(argument)

Groups items in argument by measure.

abjad.select.group_by_pitch(argument)

Groups items in argument by pitch.

abjad.select.leaf(argument, n, *[, exclude, ...])

Selects leaf n in argument.

abjad.select.leaves()

Selects leaves in argument.

abjad.select.logical_tie(argument[, n, ...])

Selects logical tie n in argument.

abjad.select.logical_ties(argument, *[, ...])

Selects logical ties in argument.

abjad.select.nontrivial(argument)

Selects nontrivial items in argument.

abjad.select.note(argument, n, *[, exclude, ...])

Selects note n in argument.

abjad.select.notes(argument, *[, exclude, grace])

Selects notes in argument.

abjad.select.partition_by_counts(argument, ...)

Partitions items in argument by counts.

abjad.select.partition_by_durations(...[, ...])

Partitions items in argument by durations.

abjad.select.partition_by_ratio(argument, ratio)

Partitions items in argument by ratio.

abjad.select.rest(argument, n, *[, exclude, ...])

Selects rest n in argument.

abjad.select.rests(argument, *[, exclude, grace])

Selects rests in argument.

abjad.select.run(argument, n, *[, exclude])

Selects run n in argument.

abjad.select.runs(argument, *[, exclude, grace])

Selects runs in argument.

abjad.select.top(argument, *[, exclude])

Selects top components in argument.

abjad.select.tuplet(argument, n, *[, ...])

Selects tuplet n in argument.

abjad.select.tuplets(argument, *[, exclude, ...])

Selects tuplets in argument.

abjad.select.with_next_leaf(argument, *[, grace])

Extends argument with next leaf.

abjad.select.with_previous_leaf(argument)

Extends argument with previous leaf.

abjad.select.LogicalTie([items])

Logical tie of a component.

abjad.sequence

abjad.sequence.filter(sequence[, predicate])

Filters sequence by callable predicate.

abjad.sequence.flatten(sequence, *[, ...])

Flattens sequence.

abjad.sequence.group_by(sequence[, predicate])

Groups sequence items by value of items.

abjad.sequence.has_duplicates(sequence)

Is true when sequence has duplicates.

abjad.sequence.is_decreasing(sequence, *[, ...])

Is true when sequence is decreasing.

abjad.sequence.is_increasing(sequence, *[, ...])

Is true when sequence is increasing.

abjad.sequence.is_permutation(sequence)

Is true when sequence is a permutation.

abjad.sequence.is_repetition_free(sequence)

Is true when sequence is repetition-free.

abjad.sequence.join(sequence)

Join subsequences in sequence.

abjad.sequence.nwise(sequence[, n, cyclic, ...])

Iterates sequence n items at a time.

abjad.sequence.partition_by_counts(sequence, ...)

Partitions sequence by counts.

abjad.sequence.partition_by_ratio_of_lengths(...)

Partitions sequence by ratio of lengths.

abjad.sequence.partition_by_ratio_of_weights(...)

Partitions sequence by ratio of weights.

abjad.sequence.partition_by_weights(...[, ...])

Partitions sequence by weights exactly.

abjad.sequence.permute(sequence, permutation)

Permutes sequence by permutation.

abjad.sequence.remove(sequence, pattern)

Removes sequence items at indices specified by pattern.

abjad.sequence.remove_repeats(sequence)

Removes repeats from sequence.

abjad.sequence.repeat(sequence[, n])

Repeats sequence, to a total of n copies.

abjad.sequence.repeat_to_length(sequence[, ...])

Repeats sequence to length.

abjad.sequence.repeat_to_weight(sequence, ...)

Repeats sequence to weight.

abjad.sequence.replace(sequence, old, new)

Replaces every old-valued item in sequence with new.

abjad.sequence.replace_at(sequence, indices, ...)

Replaces items at indices with new_material.

abjad.sequence.retain_pattern(sequence, pattern)

Retains sequence items at indices matching pattern.

abjad.sequence.reverse(sequence, *[, recurse])

Reverses sequence.

abjad.sequence.rotate(sequence[, n])

Rotates sequence by index n.

abjad.sequence.split(sequence, weights, *[, ...])

Splits sequence by weights.

abjad.sequence.sum_by_sign(sequence, *[, sign])

Sums consecutive sequence items by sign.

abjad.sequence.truncate(sequence, *[, sum_, ...])

Truncates sequence.

abjad.sequence.weight(sequence)

Gets weight of sequence.

abjad.sequence.zip(sequences, *[, cyclic, ...])

Zips sequences.

abjad.setclass

abjad.setclass.SetClass([cardinality, rank, ...])

Set-class.

abjad.spanners

abjad.spanners.beam(argument, *[, ...])

Attaches beam indicators.

abjad.spanners.glissando(argument, *tweaks)

Attaches glissando indicators.

abjad.spanners.hairpin(descriptor, argument, *)

Attaches hairpin indicators.

abjad.spanners.horizontal_bracket(argument, *)

Attaches group indicators.

abjad.spanners.ottava(argument, *[, ...])

Attaches ottava indicators.

abjad.spanners.phrasing_slur(argument, *[, ...])

Attaches phrasing slur indicators.

abjad.spanners.piano_pedal(argument, *[, ...])

Attaches piano pedal indicators.

abjad.spanners.slur(argument, *[, ...])

Attaches slur indicators.

abjad.spanners.text_spanner(argument, *[, ...])

Attaches text span indicators.

abjad.spanners.tie(argument, *[, direction, ...])

Attaches tie indicators.

abjad.spanners.trill_spanner(argument, *[, ...])

Attaches trill spanner indicators.

abjad.string

abjad.string.capitalize_start(string)

Capitalizes start of string.

abjad.string.delimit_words(string[, ...])

Delimits words in string.

abjad.string.from_roman(string)

Changes string from Roman numeral to digits.

abjad.string.is_lilypond_identifier(string)

Is true when string starts with a letter and either 1.

abjad.string.is_roman(string)

Is true when string is Roman numeral.

abjad.string.is_shout_case(string)

Is true when string and is shoutcase.

abjad.string.normalize(argument[, indent])

Normalizes string.

abjad.string.pluralize(string[, count])

Pluralizes English string.

abjad.string.sort_roman(strings)

Sorts strings containing Roman numerals.

abjad.string.strip_roman(string)

Strips roman numerals from right of string.

abjad.string.to_shout_case(string)

Changes string to shout case.

abjad.string.to_tridirectional_lilypond_symbol(...)

Changes argument to tridirectional LilyPond symbol.

abjad.string.to_tridirectional_ordinal_constant(...)

Changes argument to tridirectional ordinal constant.

abjad.string.to_upper_camel_case(string)

Changes string to upper camel case.

abjad.tag

abjad.tag.activate(text, tag)

Activates tag in text.

abjad.tag.deactivate(text, tag[, ...])

Deactivates tag in text.

abjad.tag.double_tag(strings, tag_[, deactivate])

Double tags strings.

abjad.tag.left_shift_tags(text)

Left shifts tags in strings.

abjad.tag.remove_tags(string)

Removes all tags from string.

abjad.tag.Tag([string])

Tag.

abjad.timespan

abjad.timespan.OffsetCounter(items, item_class)

Offset counter.

abjad.timespan.Timespan([start_offset, ...])

Timespan.

abjad.timespan.TimespanList([argument])

Timespan list.

abjad.tweaks

abjad.tweaks.bundle(indicator, *tweaks[, ...])

Bundles indicator with tweaks.

abjad.tweaks.tweak(indicator, *tweaks[, ...])

Appends tweaks to indicator.

abjad.tweaks.Bundle(indicator[, tweaks, comment])

Bundled indicator.

abjad.tweaks.Tweak(string[, i, tag])

Tweak.

abjad.verticalmoment

abjad.verticalmoment.iterate_leaf_pairs(...)

Iterates leaf pairs.

abjad.verticalmoment.iterate_pitch_pairs(...)

Iterates pitch pairs.

abjad.verticalmoment.iterate_vertical_moments(...)

Iterates vertical moments.

abjad.verticalmoment.VerticalMoment([...])

Vertical moment.

abjad.wf

abjad.wf.check_beamed_lone_notes(argument)

Checks beamed lone notes.

abjad.wf.check_beamed_long_notes(argument)

Checks beamed long notes.

abjad.wf.check_duplicate_ids(argument)

Checks duplicate IDs.

abjad.wf.check_empty_containers(argument)

Checks empty containers.

abjad.wf.check_missing_parents(argument)

Checks missing parents.

abjad.wf.check_notes_on_wrong_clef(argument)

Checks notes and chords on wrong clef.

abjad.wf.check_orphaned_dependent_wrappers(...)

Checks orphaned dependent wrappers.

abjad.wf.check_out_of_range_pitches(argument, *)

Checks out-of-range notes.

abjad.wf.check_overlapping_beams(argument)

Checks overlapping beams.

abjad.wf.check_overlapping_text_spanners(...)

Checks overlapping text spanners.

abjad.wf.check_unmatched_stop_text_spans(...)

Checks unmatched stop text spans.

abjad.wf.check_unterminated_hairpins(argument)

Checks unterminated hairpins.

abjad.wf.check_unterminated_text_spanners(...)

Checks unterminated text spanners.

abjad.wf.is_wellformed(component[, ...])

Is true when component is wellformed.

abjad.wf.tabulate_wellformedness(component)

Tabulates wellformedness of component.

abjad.wrapper

abjad.wrapper.Wrapper([annotation, ...])

Wrapper.