MCPcopy Create free account
hub / github.com/bspaans/python-mingus / _get_width

Function _get_width

mingus/extra/tablature.py:462–469  ·  view source on GitHub ↗

Return the width of a single bar, when width of the page is given.

(maxwidth)

Source from the content-addressed store, hash-verified

460
461
462def _get_width(maxwidth):
463 """Return the width of a single bar, when width of the page is given."""
464 width = maxwidth / 3
465 if maxwidth <= 60:
466 width = maxwidth
467 elif 60 < maxwidth <= 120:
468 width = maxwidth / 2
469 return width

Callers 2

from_TrackFunction · 0.85
from_CompositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected