Load ATON format files (piano roll analysis data).
ATON (Artistic Text-based Object Notation) is a structured text format used by the Stanford SUPRA project for storing piano roll analysis data including hole punch positions and metadata.
The loader parses ROLLINFO metadata and HOLE blocks, providing access to both individual hole data and aggregate statistics.
Examples
>>> loader = ATONLoader()>>> loader.load("fd660zf8362_analysis.txt")>>> loader.rollinfo['MUSICAL_HOLES']30092>>>len(loader.holes) # Number of hole blocks parsed30094>>> loader.first_hole15343>>> loader.last_hole293119
Creates a graphical timeline (in pixels) spanning the full image height, with all parsed holes as InstantEvents at their absolute pixel coordinates.
This is the primary timeline for the piano roll image. To get a relative coordinate view (first hole = 0), create a child timeline at offset first_hole using parent.create_child().
Parameters
Name
Type
Description
Default
uid
str | None
Unique identifier for the timeline. Auto-generated if None.
None
name
str | None
Human-readable name. Uses source filename if None.
None
Returns
Name
Type
Description
'Timeline'
A DiscreteGraphicalTimeline with hole events at absolute coordinates.