Skip to main content

Module primitives

Module primitives 

Source
Expand description

The layout numbers music21’s graph primitives draw with: where the ticks of a count go, how big a weighted point is, and where a bar of a horizontal bar graph sits in its channel.

Structs§

Channel
A weighted horizontal bar’s channel and how it sits in it.
WeightedPoint
A weighted point as drawn: an ellipse, and where its count is written where it is written at all.

Functions§

bar_x_ticks
The x ticks a horizontal bar graph makes for itself when it is given none: music21’s GraphHorizontalBar.renderSubplot.
integer_ticks
Ticks for a count from nought to the most of data, about steps apart: music21’s Graph.setIntegerTicksFromData.
weighted_bar
Where a bar of a weighted horizontal bar graph starts and how tall it is, scale of a full bar, shifted up or down by shift from -1 to 1: music21’s GraphHorizontalBarWeighted.renderSubplot.
weighted_points
Each point of a weighted scatter graph, sized by its count between the two diameters and stretched so it draws round on unequal axes: music21’s GraphScatterWeighted.renderSubplot.