How the notes were assigned. Every .py file in the Python standard library was parsed to
an abstract syntax tree — 504 files, 267,037 lines, 924,085 nodes, 100 distinct node types. Context markers
were dropped (Load and Store are metadata on a Name, not constructs of their own), as
were the operator singletons. The twelve most frequent remaining constructs were mapped in rank order onto the
chromatic run from G3. Nothing was placed by ear.
Why G is Name. Reference is the most frequent act in the language by a wide margin — 323 of every thousand nodes. Before a program computes anything it points at something that already exists. The root of the architect’s language is not a verb; it is the finger.
The triad fell out of the ranking. Scale degrees 1, 3 and 5 in G major are G, B and D, which land on ranks 1, 5 and 8: Name, Assign, If. Refer, bind, branch. That is the minimal set from which everything else in the compendium is constructed — and it arrived by counting, not by design.
What is in scale and what is not. The seven diatonic degrees are Name, Attribute, Assign, arg, If, FunctionDef, BinOp — structure. The five accidentals are Constant, Call, Expr, Compare, Return — value and control flow. That split is an artifact of rank order meeting the major scale, so it is AMBER: suggestive, not derived. Every count in the table is LIT.