Skip to main content

Module axis

Module axis 

Source
Expand description

The ticks and labels of a graph’s axes: the numbers behind music21’s graph.axis classes.

An axis of music21’s reads its values from a stream and then says where its ticks go and what each says. The reading is the wheel’s, over whatever stream it is given; what the ticks are, given what was read, is here.

Structs§

MeasureMark
A measure an offset axis can tick: where it starts, its number, and whether it ends in a strong barline.
PitchLabels
How a pitch axis labels its ticks: music21’s PitchAxis attributes.

Enums§

MeasureSpan
Which of the measures an offset axis ticks: music21’s minMaxMeasureOnly.
Octaves
How a pitch axis writes octaves: music21’s showOctaves, which is False, 'few' or True.
Scale
Whether a quarter-length axis is scaled: music21’s useLogScale.
Tied
Whether a note carries a tie on to the next.

Constants§

STRONG_BARLINES
The barlines a measure tick is never left out at: music21’s bar.strongBarlineTypes.

Functions§

dynamics_max
The index of the last dynamic: the most a dynamics axis reaches.
dynamics_ticks
A tick for each dynamic from min to max, by its index in dynamics.shortNames, written in TeX italics: music21’s DynamicsAxis.ticks.
is_strong_barline
Whether a barline type is a strong one.
log_label_tag
What a quarter-length axis’s label gains for its scale: music21’s labelLogTag, given the base written, or none for a linear axis.
measure_ticks
The measure ticks of an offset axis, of the measures starting from min to max: music21’s OffsetAxis._measureTicks.
numeric_ticks
About ten ticks at a power of ten apart, covering min to max: music21’s Axis.ticks. A missing bound is 0 or 10.
octave_ticks
A tick at each octave of start from min to max: music21’s PitchSpaceOctaveAxis.ticks.
offset_end
Where a note’s bar starts and how long it is drawn, a little short of its length so untied notes stand apart: music21’s OffsetEndAxis.extractOneElement.
offset_ticks
Ticks every step from min to max, rounded outward: music21’s OffsetAxis.ticks where there are no measures.
pitch_ticks
A pitch axis’s ticks from min to max, one a whole number: music21’s PitchAxis._pitchTickHelper.
quarter_length_value
Where a quarter length stands on a quarter-length axis: music21’s dataFromQL. A grace note, of no length, stands at grace.